SPARQL.js icon indicating copy to clipboard operation
SPARQL.js copied to clipboard

Generating shorthand list syntax

Open tpluscode opened this issue 1 year ago • 0 comments

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?

tpluscode avatar Dec 31 '24 10:12 tpluscode