walidazizi / rdflib

Automatically exported from code.google.com/p/rdflib
Other
0 stars 0 forks source link

query() behaves differently whether i ask for named variables or for * #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
see http://paste.lisp.org/display/92767

I get answers with 

res = g.query("SELECT ?g ?s ?p ?o WHERE { GRAPH ?g { ?s ?p ?o } } ")

... but if I use "SELECT * WHERE (etc...)" it fails - ValueError: need more
than 0 values to unpack

Original issue reported on code.google.com by danbrick...@gmail.com on 29 Dec 2009 at 2:33

GoogleCodeExporter commented 8 years ago
http://www.w3.org/TR/rdf-sparql-query/#select 

"The SELECT form of results returns variables and their bindings directly. The 
syntax
SELECT * is an abbreviation that selects all of the variables in a query."

Original comment by danbrick...@gmail.com on 29 Dec 2009 at 2:37

GoogleCodeExporter commented 8 years ago

Original comment by eik...@gmail.com on 1 Feb 2010 at 7:24

GoogleCodeExporter commented 8 years ago

Original comment by eik...@gmail.com on 1 Feb 2010 at 8:03

GoogleCodeExporter commented 8 years ago
These issues involve bits that have been moved out of rdflib proper for now. We 
will re-open them 
or move them to rdfextas as appropriate.

Original comment by eik...@gmail.com on 11 Feb 2010 at 6:06