Different encoding for RDF-star queries as S-Expressions with Jena

Hi all,

The SPARQL parsers in Ruby RDF and Jena produce different S-Expressions
for queries with RDF-star. For instance, consider the following query:

SELECT *
WHERE { { ?s ?p ?o BIND (<< ?s ?p ?o >> AS ?t) } }

Ruby RDF generates:

(extend ((?t (triple ?s ?p ?o))) (bgp (triple ?s ?p ?o)))

Jena generates:

(extend ((?t << ?s ?p ?o >>)) (bgp (triple ?s ?p ?o))) 

In my opinion, it is better to have and standard representation for all tools that
generate S-Expressions. The problem here is that the result of parsing a
SPARQL query with Ruby RDF cannot be interpreted by Jena (and vice versa).

Daniel

Received on Thursday, 20 January 2022 07:43:25 UTC