walidazizi / rdflib

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

assert in SPARQL query when two OPTIONAL are followed by non-OPTIONAL #90

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
from rdflib.Graph import *
# This code generate an assert
Graph().query("""select * {
optional  { ?a ?b ?c }
optional { ?d ?e ?f }
?x ?y ?z
}""")

# This is OK
Graph().query("""select * {
?x ?y ?z
optional  { ?a ?b ?c }
optional { ?d ?e ?f }
}""")

# This is OK
Graph().query("""select * {
optional  { ?a ?b ?c }
?x ?y ?z
optional { ?d ?e ?f }
}""")

Original issue reported on code.google.com by udi.benr...@gmail.com on 5 Nov 2009 at 2:13

GoogleCodeExporter commented 8 years ago
rdflib 2.4.2
python 2.6.4

Original comment by udi.benr...@gmail.com on 5 Nov 2009 at 2:14

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago

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

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