| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Add type hints to `rdflib.query` and result format implementations, also
add/adjust ignores and type hints in other modules to accommodate the
changes.
This does not include any runtime changes.
|
|
|
|
|
|
|
|
|
| |
system (#2096)
This is so that it is simpler and easier to do something with all plugins without treating different plugins in different ways.
Also remove test code that tries to accommodate the plugin being present but not usable.
Fixes #1816
|
|
|
| |
Handful of fixes for PEP8 naming convention violations.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable nitpicky mode for Sphinx and fix all warnings and errors
that occur when running with nitpicky enabled.
Other changes:
- Add a tox environment for building docs (-docs). This is so we can
test building docs on various versions of python as there seems to be
some differences in warnings between different versions. This tox
environment is enabled for linux CI builds.
- Change readthedocs to use python 3.9 as earlier versions do not handle
`@typing.overload` with type aliases.
- Fixes https://github.com/RDFLib/rdflib/issues/1878
|
|
|
|
| |
for more information, see https://pre-commit.ci
|
|
|
|
|
|
|
|
|
|
|
|
| |
Plugin loading in `rdflib.plugins.sparql` will now happen similar to
what is being done for `rdflib.plugins`.
This also eliminates a warning that occurs `rdflib.plugins.sparql` and
makes it possible to enable `warn_unused_ignores` without any exceptions
or workarounds.
Also:
- Removed unused `type: ignore` statements.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This commit only adds type hints and comments and does not make any changes that
should affect runtime.
The type hints added here derive from work done for #1418.
|
|\
| |
| | |
replace pkg_resources with importlib.metadata
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This will eliminate these errors:
```
+ mypy --show-error-context --show-error-codes rdflib
rdflib/plugin.py:114: error: Module "importlib.metadata" has no attribute "entry_points" [attr-defined]
rdflib/plugins/sparql/__init__.py:44: error: Module "importlib.metadata" has no attribute "entry_points" [attr-defined]
Found 2 errors in 2 files (checked 110 source files)
```
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
# Conflicts:
# docs/intro_to_sparql.rst
# examples/conjunctive_graphs.py
# examples/simple_example.py
# examples/sleepycat_example.py
# tox.ini
|
| | |
|
|/ |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
# Conflicts:
# rdflib/namespace.py
# rdflib/parser.py
# rdflib/plugins/memory.py
# rdflib/plugins/parsers/ntriples.py
# test/test_iomemory.py
|
| |\
| | |
| | | |
Discussion around new dict-based store implementation
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Renamed Memory2 to Memory
Renamed Memory1 to SimpleMemory
Set default store to new Memory
Fixed tests
Fixed docs
|
| | | |
|
| |/
| |
| |
| |
| |
| |
| | |
Changed name of NTriplesParser to W3CNTriplesParser, it is the legacy parser
Populate CharacterStream attr on several types of rdflib InputSource, to provide unicode text stream, in addition to ByteStream
Add support to N3, Trig, NTriples, NQuads parsers to use the CharacterStream instead of the ByteStream where possible
Reduces many useless string->bytes->string conversions in parsers.
|
|/
|
|
| |
Signed-off-by: t0b3 <thomas.bettler@gmail.com>
|
| |
|
|
|
|
|
|
| |
This mirrors the similar parser registrations below in the same file.
With this commit, an Accept header can be used directly to serialize a
response, making putting up a SPARQL compatible endpoint trivial.
|
|
|
|
|
| |
also unskips an old test on travis tha otherwise failed locally due
to now unresolved SPARQLWrapper exception ref
|
|
|
|
|
|
|
|
| |
opinions is mainly: no to long lines, but not at any cost.
notation3.py crashses autopep :D
Also rdflib/__init__.py gets completely broken
|
|\
| |
| | |
remove rdfa and microdata parsers from core RDFLib
|
| |
| |
| |
| |
| |
| |
| | |
They were unteasted and falling behind their individual repos on
github.
They remain installable as plugins.
|
|/
|
|
| |
and a single parser for graph-based results
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
NTriples in RDF1.1 are utf8 encoded.
This is backwards compatible, but you can have nicer output if you
know the consumer will support nt11/utf-8
Fixes #695
|
|
|
|
|
|
|
| |
Also cleaned up N3 parser a bit, and added a Turtle flag, so that
special N3 features are not accepted when parsing as turtle.
Fixes #273 - now we should add some tests :)
|
| |
|
|
|
|
| |
related to #277
|
|\
| |
| | |
Register parsers and serializers with mime-type
|
| |
| |
| |
| |
| | |
Like this it is now possible to use mime-types for the format argument
of Graph.parse and Graph.serialize.
|
|/ |
|
| |
|
| |
|
| |
|