getting the query from an SXP expression

Hi all,

I am trying to get the SPARQL query of a sse expression.
For instance, if I have

exp = SPARQL::Algebra::Expression.for "(project (?x) (bgp (triple ?s ?p ?x)))"

then I want the string "SELECT ?x WHERE {?s ?p ?x}".

Thanks,
Daniel

Received on Wednesday, 1 December 2021 13:09:55 UTC