Open RawStewage opened 6 years ago
Some details:
dbc:Victoria,_British_Columbia
is a CURIE, but it is not a safeCURIEns:id\=123
). SPARQL local names have more syntactic restrictions than CURIEs. (from https://www.w3.org/TR/sparql11-query/#prefNames)dc:Victoria\,\_British\_Columbia
is a valid SPARQL local name according to specification and SPARQL validator http://www.sparql.org/query-validator.htmldc:Victoria\,\_British\_Columbia
is not valid in Virtuoso web frontend (version 07.20.3224) and AllegroGraph WebView 4.11 (agrovoc public endpoint)Please retitle this issue, from "Issue with coma in relation" to "Issue with comma in SPARQL Prefixed Name in Virtuoso"
Parentheses, coma, or any non-alphanumeric characters aren't legal in prefixed names, but you can just use the full URI instead:
SELECT ?birthPlace
WHERE {
<http://dbpedia.org/resource/Tom_Johnston_(musician)> dbpprop:birthPlace ?birthPlace
}
It's also possible to escape them using \
:
SPARQL local names also allow the non-alphanumeric characters allowed in IRIs via backslash character escapes (e.g. ns:id\=123).
SELECT ?birthPlace
WHERE {
dbpedia:Tom_Johnston_\(musician\) dbpprop:birthPlace ?birthPlace
}
Hi so I've been trying to run the following query
Which results in the following error
I'm not sure how to proced as just leaving the coma unquoted also results in an error of.
Any advice would be very much appreciated