summaryrefslogtreecommitdiff
path: root/rdflib/plugin.py
Commit message (Collapse)AuthorAgeFilesLines
* feat: add type hints to `rdflib.query` and related (#2097)Iwan Aucamp2022-08-241-1/+1
| | | | | | | 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.
* fix: Don't register berkelydb as a store if it is not available on the ↵Clay G2022-08-231-6/+11
| | | | | | | | | 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
* Toplevel n80x (#2046)Graham Higgins2022-07-281-2/+2
| | | Handful of fixes for PEP8 naming convention violations.
* docs: fix sphinx nitpicky issues (#2036)Iwan Aucamp2022-07-181-1/+10
| | | | | | | | | | | | | 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
* [pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]2022-04-151-13/+14
| | | | for more information, see https://pre-commit.ci
* Unify plugin loadingIwan Aucamp2022-01-301-8/+7
| | | | | | | | | | | | 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.
* first version of parsernicholascar2021-12-061-0/+6
|
* basic hextuples serializernicholascar2021-12-031-0/+6
|
* rename turtle2 longturtle; update parser & plubing docconicholascar2021-12-031-6/+6
|
* tidy plugin.py file formattingnicholascar2021-12-031-52/+283
|
* Add type hintsIwan Aucamp2021-10-241-16/+46
| | | | | | | 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.
* Merge pull request #1445 from Panaetius/masterNicholas Car2021-10-181-8/+15
|\ | | | | replace pkg_resources with importlib.metadata
| * Use version conditional imports to accomodate mypyIwan Aucamp2021-10-171-4/+5
| | | | | | | | | | | | | | | | | | | | | | 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) ```
| * replace pkg_resources with importlib.metadataRalf Grubenmann2021-10-141-6/+12
| |
* | complete turtle2 serializer with testsNicholas Car2021-10-021-0/+1
|/
* fix: use correct name for json-ldStig B. Dørmænen2021-08-091-1/+1
|
* blacked everything6.0.0Nicholas Car2021-07-201-1/+4
|
* integrate jsonld code into rdflib coreAshley Sommer2021-07-071-0/+7
|
* Merge branch 'master' of https://github.com/RDFLib/rdflib into berkeleydbNicholas Car2021-06-281-2/+6
|\ | | | | | | | | | | | | | | | | # Conflicts: # docs/intro_to_sparql.rst # examples/conjunctive_graphs.py # examples/simple_example.py # examples/sleepycat_example.py # tox.ini
| * Add mypy to CI pipelines and fix errors it raisesIwan Aucamp2021-05-301-2/+6
| |
* | Sleepycat -> BerkeleyDBname change; incomplete code updateNicholas Car2021-05-081-1/+1
|/
* Reorder plugins and add commentsNatanael Arndt2021-01-281-19/+20
|
* Fix #1236. Add TriG mimetype for registering Parsers and Serializers.Natanael Arndt2021-01-281-0/+4
|
* Merge remote-tracking branch 'origin/master' into t0b3_masterAshley Sommer2020-08-271-8/+9
|\ | | | | | | | | | | | | | | | | # Conflicts: # rdflib/namespace.py # rdflib/parser.py # rdflib/plugins/memory.py # rdflib/plugins/parsers/ntriples.py # test/test_iomemory.py
| * Merge pull request #1133 from ashleysommer/in_memory_storeNicholas Car2020-08-271-3/+4
| |\ | | | | | | Discussion around new dict-based store implementation
| | * Removed IOMemory storeAshley Sommer2020-08-191-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | Renamed Memory2 to Memory Renamed Memory1 to SimpleMemory Set default store to new Memory Fixed tests Fixed docs
| | * New full-featured In-Memory-Store taking advantage of Python3 dict performanceAshley Sommer2020-07-191-1/+3
| | |
| * | Merged two Ntriples parser filesAshley Sommer2020-08-191-5/+5
| |/ | | | | | | | | | | | | 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.
* | 2to3 whole sourcebaset0b32020-06-221-3/+0
|/ | | | Signed-off-by: t0b3 <thomas.bettler@gmail.com>
* blacked all python filesNicholas Car2020-05-161-209/+191
|
* Register additional serializer plugins for SPARQL mime types.Darren Garvey2020-03-281-0/+9
| | | | | | 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.
* make SPARQLconnector work with DBpediaJoern Hees2019-10-301-0/+3
| | | | | also unskips an old test on travis tha otherwise failed locally due to now unresolved SPARQLWrapper exception ref
* a slightly opinionated autopep8 runGunnar Aastrand Grimnes2018-10-301-1/+1
| | | | | | | | opinions is mainly: no to long lines, but not at any cost. notation3.py crashses autopep :D Also rdflib/__init__.py gets completely broken
* Merge pull request #828 from gromgull/remove_rdfaGunnar Aastrand Grimnes2018-10-271-39/+0
|\ | | | | remove rdfa and microdata parsers from core RDFLib
| * remove rdfa and microdata parsers from core RDFLibGunnar Aastrand Grimnes2018-10-271-39/+0
| | | | | | | | | | | | | | They were unteasted and falling behind their individual repos on github. They remain installable as plugins.
* | also register sparql result parsers by content-typeGunnar Aastrand Grimnes2018-05-151-0/+20
|/ | | | and a single parser for graph-based results
* six: plugin.py: headers, handling of iteritemsJoern Hees2017-01-301-1/+4
|
* quote cleanup OCDJoern Hees2017-01-251-2/+2
|
* serializer/parser alias for 'ntriples'Joern Hees2017-01-251-0/+6
|
* serializer/parser alias for 'ttl'Joern Hees2017-01-251-0/+6
|
* add a NTSerializer sub-class for nt11 (#700)Gunnar Aastrand Grimnes2017-01-241-0/+7
| | | | | | | 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
* Added a TriG parserGunnar Aastrand Grimnes2013-07-291-0/+3
| | | | | | | 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 :)
* made query res pprinter into a serializerGunnar Aastrand Grimnes2013-05-091-0/+3
|
* mimetype for trix, dont double-test parsers/serializers registered twice - ↵gromgull2013-05-081-0/+6
| | | | related to #277
* Merge pull request #277 from uholzer/register_with_mimetypeGunnar Aastrand Grimnes2013-05-081-0/+27
|\ | | | | Register parsers and serializers with mime-type
| * Register parsers and serializers with mime-typeUrs Holzer2013-05-071-0/+27
| | | | | | | | | | Like this it is now possible to use mime-types for the format argument of Graph.parse and Graph.serialize.
* | py3 test fix - again. rdflib.paths doc updategromgull2013-05-081-2/+1
|/
* added plugin infrastructure for sparql-update plugins and a graph.update methodGunnar Aastrand Grimnes2013-05-021-2/+9
|
* removed last traces of sqliteGunnar Aastrand Grimnes2013-05-011-3/+0
|
* Add some storage conveniencesGraham Higgins2013-03-211-0/+46
|