SPARQL.js
SPARQL.js copied to clipboard
Generating shorthand list syntax
I have a query generated using the Generator which should contains pattern like this:
?resource2 <http://jena.apache.org/text#query> ( schema:name "L'Abb*" )
The list, however, is produced with labeled blank nodes
?resource2 <http://jena.apache.org/text#query> _:b416 .
_:b416 rdf:first schema:name;
rdf:rest _:b417.
_:b417 rdf:first "L'Abb*";
rdf:rest rdf:nil.
Because same patterns are used multiple times in subselects, that fails with Parse error: Blank node label reuse not allowed at this point: _:b416. Is it possible to force shorthand syntax?