Given a dataset with URIs of the format
I get the error
Clearly, the problem is the character
Thanks for any hint,
asked 12 Nov '12, 07:45
In SPARQL 1.1 you can write:
Note in front of the /. Multiple colons are allowed in prefixed names, only the first separates the prefix from the local part. These changes were in a later last call draft, and are in the final publication, to align SPARQL and the standardisation of Turtle, which is work-in-progress by the RDF working group. Virtuoso coverage will vary.
The SPARQL validator at http://www.sparql.org/query-validator.html is up to date with these changes.
answered 12 Nov '12, 08:51
You can escape such characters using a backslash:
If for some reason your SPARQL engine does not accept this (escaping chars like this is a SPARQL 1.1 feature, not all engines will have implemented it), you can either choose to just use the entire URI in the query for such cases:
...or you can of course modify your data (if it's your own data to edit) so that you don't use such chars in URIs.