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
.
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.