I am trying to lookup information regarding someone on Dbpedia but their name contains parenthesis in this case ending with _(musician) which leads to an error.
SELECT ?birthPlace
WHERE {
dbpedia:Tom_Johnston_(musician) dbpprop:birthPlace ?birthPlace
}
Parentheses aren't legal in prefixed names, but you can just use the full URI instead:
It's also possible to escape them using
\
: