mhgrove/cp-openrdf-utils — Issue #9: scoping SPARL rendering bugs 
Author: mhgrove
Created: 2012-02-21 13:31:27+00:00
State: open
Labels: bug

we can lose some scoping information for some corner case sparql queries. for example:

select * where { ?s ?p ?o . { filter (?s) } }

will render as

select * where { ?s ?p ?o . filter (?s) }

Which is not the same query. Similar for optionals:

select * where { ?s ?p ?o . { ?s ?p2 ?o2 optional {?a ?b ?c} } }

We'll end up with the similar, but not correct query:

select * where { ?s ?p ?o . ?s ?p2 ?o2 optional {?a ?b ?c} }