Apache Fuseki: invoke str function

112 Views Asked by At

I would run this query:
SELECT DISTINCT ?id str(?name)
but Fuseki give me this error: This line is invalid.Expected ( VAR1...
I would need a string value of ?name.

1

There are 1 best solutions below

5
Stanislav Kralin On BEST ANSWER

I suppose you are talking about something like this.

YASQE

This message is a warning produced by Fuseki component called YASGUI (or rather YASQE).

You have two options:

  • Use more conformant syntax, i. e. SELECT DISTINCT ?id (str(?name) AS ?str_name) etc.

  • Ignore this warning and run your query, Jena ARQ should accept it and return a result.