开发者

DBpedia SPARQL query that has a period in it

开发者 https://www.devze.com 2023-02-14 21:27 出处:网络
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,

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

精彩评论

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

关注公众号