RDFLib / sparqlwrapper

A wrapper for a remote SPARQL endpoint
https://sparqlwrapper.readthedocs.io/
Other
513 stars 121 forks source link

Refuse format `rdf` in CLI #189

Closed eggplants closed 2 years ago

eggplants commented 2 years ago

ref: #176

eggplants commented 2 years ago
$ rqw -Q 'select ?x where {?x ?y ?z} limit 1' -e 'https://ja.dbpedia.org/sparql' -F rdf
...
rdflib.exceptions.ParserError: None:6:153: Repeat node-elements inside property elements: http://www.w3.org/2005/sparql-results#binding

$ rqw -Q 'ask {select ?x where {?x ?y ?z} limit 1}' -e 'https://ja.dbpedia.org/sparql' -F rdf -q
b'true'

$ rqw -Q 'describe <http://www.openlinksw.com/virtrdf-data-formats#sql-numeric-uri-fn>' -e 'https://ja.dbpedia.org/sparql' -F rdf -q
[a rdflib:ConjunctiveGraph;rdflib:storage [a rdflib:Store;rdfs:label 'Memory']]