summaryrefslogtreecommitdiff
path: root/rdflib/plugin.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Conform to PEP8Graham Higgins2013-02-071-2/+2
|
* apply autopep8 standards.Graham Higgins2013-01-111-57/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | $ flake8 rdflib --exclude=pyRdfa,host,extras,transform,rdfs,pyMicrodata rdflib/graph.py:192: W801 redefinition of unused 'BytesIO' from line 189 rdflib/graph.py:194: W402 'BytesIO' imported but unused rdflib/graph.py:680:80: E501 line too long (80 > 79 characters) rdflib/graph.py:682:80: E501 line too long (80 > 79 characters) rdflib/graph.py:686:80: E501 line too long (83 > 79 characters) rdflib/graph.py:690:80: E501 line too long (83 > 79 characters) rdflib/graph.py:692:80: E501 line too long (83 > 79 characters) rdflib/graph.py:695:80: E501 line too long (83 > 79 characters) rdflib/graph.py:698:80: E501 line too long (83 > 79 characters) rdflib/parser.py:21: W801 redefinition of unused 'BytesIO' from line 19 rdflib/compat.py:12: W801 redefinition of unused 'defaultdict' from line 10 rdflib/py3compat.py:10: W801 redefinition of unused 'wraps' from line 7 rdflib/py3compat.py:81: W806 redefinition of function 'b' from line 44 rdflib/py3compat.py:87: W806 redefinition of function 'format_doctest_out' from line 50 rdflib/py3compat.py:97: W806 redefinition of function 'type_cmp' from line 61 rdflib/term.py:54: W801 redefinition of unused 'md5' from line 52 rdflib/store.py:73: W801 redefinition of unused 'BytesIO' from line 71 rdflib/query.py:10: W801 redefinition of unused 'BytesIO' from line 8 rdflib/__init__.py:73: W402 'plugin' imported but unused rdflib/__init__.py:74: W402 'query' imported but unused rdflib/util.py:43: W806 redefinition of function 'sign' from line 50 rdflib/plugins/parsers/hturtle.py:25: W801 redefinition of unused 'html5lib' from line 24 rdflib/plugins/parsers/ntriples.py:141: W402 'BytesIO' imported but unused rdflib/plugins/parsers/structureddata.py:23: W801 redefinition of unused 'html5lib' from line 22
* Adapted the top level plugin level to include the latest changes on the parserIvan Herman2012-10-081-10/+13
|
* Added the updated RDFa 1.1 parser, the microdata parser, and a common, ↵Ivan Herman2012-08-311-6/+14
| | | | 'structured data' parser as a separate branch. The code is, hopefully, prepared for Python 3, too, though no proper testing can be done due to the missing Python 3 version of the html5 parser.
* fixes #214. Made turtle parser that does not require context-aware store. ↵Gunnar Aastrand Grimnes2012-07-221-1/+1
| | | | Test fixes.
* Pull-by-hand from mammadori's repos commit ↵Graham Higgins2012-06-071-21/+31
| | | | https://github.com/mammadori/rdflib/commit/494429bfad09532b33eee49d197cba997b59f277
* added trig serializergromgull2011-08-191-1/+3
|
* query result cleanup patchgromgull2011-03-301-2/+5
|
* Fixes issue 141.ed.summers2010-09-191-0/+2
|
* Tweaking docstrings, some PEP8ing.gjhiggins2010-08-061-21/+33
|
* updated query method to use rdflib.query.Processor and rdflib.query.Result ↵eikeon2010-02-161-5/+0
| | | | as plugin points
* Update issue 120eikeon2010-02-131-12/+12
| | | | Moving parsers and serializer implementations into rdflib.plugins package
* Update issue 120eikeon2010-02-131-8/+7
|
* Update issue 116eikeon2010-02-091-5/+5
| | | | Moving to rdfextra for the time being
* removed more non core bits; run_tests now runs all tests but those marked ↵eikeon2010-02-051-6/+1
| | | | with known_issue and sparql
* Update issue 43eikeon2010-02-051-1/+1
|
* Update issue 43eikeon2010-02-051-1/+1
|
* Update issue 43eikeon2010-02-041-6/+6
|
* Update issue 43eikeon2010-02-041-2/+2
|
* Update issue 43eikeon2010-02-041-3/+3
|
* Updating issue 43eikeon2010-02-031-2/+2
| | | | moved rdfxml parser bits into module of that name
* Update issue 43eikeon2010-02-031-1/+1
|
* Added SQLite store to plugin.py.gsf7472009-09-251-0/+1
| | | | Fixes issue 59
* Fairly big revision of the Turtle and N3 serializers, including:lindstream2009-09-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | - only generate prefixes for predicates (thus much less gratuitous); - use prefix if bound uri is used as subject or object (common in ontologies); - prefixes are used for datatypes (if bound in the graph); - integer and float literals are outputted as is (as supported by turtle and n3); - prepared to use plain boolean literals in place (not active since the n3 parser doesn't yet support those..); - for "rdf:nil" (the empty list), "()" is used; - for n3 only, "=" is used for "owl:sameAs", and "=>" for log:implies; - 4 space indents (not 5) and no spurious trailing spaces; - space before periods; - no newline before @prefix declarations, one after; - added serializer flag "spacious" (defaults to False); if True: - use two newlines after prefix declarations - one extra newline at end of document - top-level bnodes as "[]" instead of surrounding statements; - nested bnodes start with "[ ", ends with " ]"; - some space/indent tweaks for n3 graph literals . Changes to other parts: - Added some more n3 test files and altered some n3 test code. - The "n3()" method of "term.Literal" now uses the new "_literal_n3" method, which takes some optional parameters and is used directly by the turtle+n3 serializers. - Added a bunch of doctests in Literal's "n3" and "_literal_n3". - Registered "turtle" as a serialization format (due to the tokens ("=", "=>") supported by N3 but not by Turtle).
* The RDFa Parser has been replaced by integrated pyRdfa code (we have ↵lindstream2009-08-061-17/+19
| | | | | | | | | | | | | | | | | | | | | | | permission to do so by Ivan Herman). The changes in short are: * Removed "rdflib/syntax/parsers/RDFaParser.py". * Added new new "rdflib/syntax/parsers/rdfa/" *package* (new RDFaParser in "__init__.py"). * Adapted "rdflib/plugin.py" to use new parser. Code is mainly copied verbatim from pyRdfa, with some minor cleanup and documentation adaptation. Tests have been adapted: * Removed old "test/test_rdfa.py" and "test/{ntriples,rdfdiff}.py" (only used by old test). * Removed old files in "test/rdfa" and added a new test module along with a subdir containing a copy the W3C RDFa testsuite. Furthermore: the class "IsomorphicTestableGraph" has been moved from "test_sparql/BisonSPARQLParser/test.py" to a new module "rdflib.graphutils", and renamed to "IsomorphicGraph". (.. Note: IsomorphicGraph is currently used to make up for sparql bugs which cause some tests to fail where they should not. As of this change, all rdfa tests pass.) (.. Also note that the "BisonSPARQLParser/test.py" didn't work before and still doesn't.)
* Fix alignment problems with bulk loading and query with the PostgreSQLJohn.L.Clark2009-04-231-0/+1
| | | | backend.
* Refactor SPARQL implementation and test cases to match the new moduleJohn.L.Clark2009-04-021-0/+6
| | | | layout.
* updating module names so that they get picked up by nose; made a few small ↵eikeon2009-04-021-0/+4
| | | | fixes along the way
* fixes issue #53eikeon2009-03-241-1/+1
|