I'm trying to get the abstract of the Manchester United soccer team, problem is the wiki link has periods in it. When I tried this,
开发者_JAVA百科PREFIX dbp: <http://dbpedia.org/resource/>
PREFIX dbp2: <http://dbpedia.org/ontology/>
SELECT ?abstract
WHERE {
dbp:Manchester_United_F.C.
dbp2:abstract ?abstract .
FILTER langMatches(lang(?abstract), 'en')
}
It returned an error because of the period after F.C.
Any ideas on how to fix this?
From what I've seen in the SPARQL grammar, you might need to expand the prefix to get <http://dbpedia.org/resource/Manchester_United_F.C.>
as your reference.
精彩评论