开发者

DBpedia SPARQL query that has a period in it

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜