Apache Fuseki: invoke str function

2019-07-23 02:42发布

问题:

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:

I suppose you are talking about something like this.

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.