Re: getting the query from an SXP expression

In the previous example I made a mistake it is `parse` instead of `for`
(the question is the same).

Daniel Hernandez <daniel@degu.cl> writes:

> 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 14:36:12 UTC