summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* made Dataset.graphs an alias of Dataset.contextsissue-495-graphs-methodJoern Hees2015-08-021-8/+4
|
* Added a 'graphs' method to the Dataset object (the documentation already had ↵Ivan Herman2015-08-011-1/+7
| | | | it...)
* Merge pull request #501 from joernhees/fix_hashJörn Hees2015-07-281-3/+9
|\ | | | | make Identifier.__hash__ consistent with str.__hash__ stability over runs, fixes #500
| * make Identifier.__hash__ stable wrt. multi processes, fixes #500Joern Hees2015-07-211-3/+9
| |
* | Merge pull request #503 from joernhees/fix_from_n3Jörn Hees2015-07-282-14/+33
|\ \ | |/ |/| fix util.from_n3() parsing Literals with datatypes and Namespace support, fixes #502
| * fixed broken tests for util.from_n3()Joern Hees2015-07-271-6/+7
| |
| * util.from_n3() allows to specify a NamespaceManager to parse CURIEsJoern Hees2015-07-271-8/+24
| |
| * util.from_n3() now correctly parses literals with datatypes, see #502Joern Hees2015-07-271-1/+3
|/
* Merge pull request #499 from joernhees/fix_no_content_typeJörn Hees2015-07-201-1/+2
|\ | | | | fix handling URLInputSource without content-type, closes #498
| * fix handling URLInputSource without content-type, closes #498Joern Hees2015-07-201-1/+2
|/
* no relative import in when run as a scriptcliff xuan2015-07-171-1/+1
|
* Removed duplicate option from armstrong theme configGunnar Aastrand Grimnes2015-07-011-1/+0
| | | Fixes #491
* Merge pull request #488 from joernhees/fix_variable_reprJörn Hees2015-06-221-1/+6
|\ | | | | Variable.__repr__ should return a python representation string, not n3
| * Variable.__repr__ returns a python representation string, not n3Joern Hees2015-06-221-1/+6
|/ | | | | | | | | | | | | | | | | | | | | | | | | | For other terms like `URIRef`, `Literal` and `BNodes` we return a `repr` string that is a string representation of the term and allows re-creating the object when passed to `eval`. Variable isn't that consistent it seems: ```python In [1]: import rdflib INFO:rdflib:RDFLib Version: 4.2.1-dev In [2]: eval(repr(rdflib.term.URIRef('foo'))) Out[2]: rdflib.term.URIRef(u'foo') In [3]: eval(repr(rdflib.term.Variable('foo'))) File "<string>", line 1 ?foo ^ SyntaxError: invalid syntax ``` https://docs.python.org/2/library/functions.html#func-repr doesn't really enforce this, but it's nice to have for debugging for example. This commit returns a repr like `rdflib.term.Variable('foo')`.
* Merge pull request #482 from ggstuart/patch-1Jörn Hees2015-04-231-1/+1
|\ | | | | fix broken doc example, thanks @ggstuart
| * fix broken exampleGraeme Stuart2015-04-221-1/+1
|/ | | The example updates age but should be updating FOAF.age in order to produce the required output
* Merge pull request #480 from drewp/masterJörn Hees2015-04-013-18/+45
|\ | | | | trig output fixes
| * don't use assertIn; not supported in py2.6Drew Perttula2015-03-311-4/+4
| |
| * serialize bnode graph ids in trig correctlyDrew Perttula2015-03-312-19/+23
| |
| * run_tests_py3.sh shouldn't lose cmdline argsDrew Perttula2015-03-311-1/+1
| |
| * fix string types for py3Drew Perttula2015-03-311-4/+4
| |
| * trig serializer corrections to graph label outputDrew Perttula2015-03-292-1/+24
| | | | | | | | | | Before: "<short:name> {...}" and "<None> {...}" After: "short:name {...}" and "<http://actual/uri/here> {...}"
| * trig serializer wasn't including a @prefix line for the first graph's prefixDrew Perttula2015-03-292-16/+16
|/
* Merge pull request #473 from joernhees/graphtoolJörn Hees2015-03-183-5/+199
|\ | | | | code to convert an rdflib.Graph into a graph_tool.Graph
| * remove double exclude line as py3 configparser complains otherwiseJoern Hees2015-03-181-2/+1
| |
| * make external_graph_libs tests optional (only run if ext lib is installed)Joern Hees2015-03-183-4/+98
| | | | | | | | | | | | | | | | networkx shouldn't be a dependency of rdflib just to run tests. Also graph_tool heavily depends on C libs and can't easily be installed via pip (or via apt-get on travis). Hence, the doctests are duplicated into proper tests that auto skip if networkx or graph_tool can't be imported.
| * code to convert an rdflib.Graph into a graph_tool.GraphJoern Hees2015-03-151-0/+101
| |
* | Merge pull request #477 from joernhees/test_rdfpipe_fix_envJörn Hees2015-03-181-2/+7
|\ \ | |/ |/| set PYTHONPATH to make rdfpipe tests use the right rdflib version
| * set PYTHONPATH to make rdfpipe tests use the right rdflib versionJoern Hees2015-03-181-2/+7
|/ | | | | | | before this fix, the invocation of rdflib/tools/rdfpipe.py from a subprocess didn't have the current version of rdflib in its path but the one from the virtualenv, which is the one installed as dependency for SPARQLWrapper!
* Merge pull request #476 from joernhees/travis_fuseki_failsafeJörn Hees2015-03-152-10/+20
|\ | | | | | | | | make travis fuseki install more failsafe, fixes #475 [no cci]
| * make travis fuseki install more failsafe, fixes #475Joern Hees2015-03-152-10/+20
|/
* Merge pull request #474 from joernhees/quickfix_fuseki_testsJörn Hees2015-03-151-3/+3
|\ | | | | quickfix: update fuseki version for testing
| * update fuseki version for testingJoern Hees2015-03-151-3/+3
|/
* edge attributes as callables, transformation functions and refactoringJoern Hees2015-03-101-49/+110
|
* Merge pull request #471 from joernhees/networkx_extraJörn Hees2015-03-104-4/+188
|\ | | | | Networkx connector
| * exclude some `def main():` functions from test coverage analysisJoern Hees2015-03-092-3/+3
| |
| * add networkx as test requirementJoern Hees2015-03-092-2/+3
| |
| * code to convert an rdflib.Graph into networkx.((Multi)Di)GraphJoern Hees2015-03-091-0/+183
|/
* Merge pull request #470 from joernhees/rdf_xml_rdf_default_namespaceJörn Hees2015-03-072-9/+24
|\ | | | | fixes #468 RDF/XML problem with unqualified use of rdf:about
| * fixed and improved main rdflib docstring test (4 instead of wrong 9 triples)Joern Hees2015-03-061-6/+21
| |
| * minor: docstring typoJoern Hees2015-03-061-1/+1
| |
| * lookup for unqualified namespace 'about' fixed. fixes #468Kris Maglione2015-03-061-2/+2
| |
* | Merge pull request #466 from joernhees/travis_fusekiJörn Hees2015-03-067-43/+98
|\ \ | | | | | | Running a local fuseki server on travis, closes #460
| * | updated SPARQL(Update)Store's docstrings with recommendations to use Dataset ↵Joern Hees2015-03-061-7/+11
| | | | | | | | | | | | instead of ConjunctiveGraph
| * | run two fuseki servers with different default graph behaviorsJoern Hees2015-03-043-22/+49
| | | | | | | | | | | | | | | | | | On a SPARQLUpdateStore we need two different behaviors for: - Dataset tests: need empty default graph. - ConjunctiveGraph tests: need default graph to be union of all graphs.
| * | updated test comments & added fuseki config parameter unionDefaultGraph=trueJoern Hees2015-03-012-5/+18
| | |
| * | install and run Fuseki, enable sparqlupdate testsGraham Higgins2015-02-263-2/+11
| | |
| * | Update requirementsGraham Higgins2015-02-263-14/+16
| | |
* | | Merge pull request #469 from bcroq/AuditableStore-try-removeJörn Hees2015-03-061-19/+15
|\ \ \ | |_|/ |/| | Don't check for ops in reverseOps before removing it, just try it.
| * | Don't check if an op is in reverseOps before removing it, just try to remove it.Bertrand Croq2015-03-051-19/+15
|/ /