解决DBpedia的两个关键字查询 [英] Work around to query DBpedia for two keywords
问题描述
我想在DBpedia中查询多个关键字,显然我必须搜索确切的子字符串,因此,如果我想要有关埃及金字塔
的页面,请搜索埃及金字塔
不起作用,但这正是我所需要的。。
I want to query DBpedia for multiple keywords, apparently I have to search for an exact substring, so if I want the page about Egyptian Pyramids
, searching for Egypt Pyramids
won't work, but that's exactly what I need..
所以我在想,也许我可以看看通过搜索关系,金字塔概念与埃及有任何关系,但是我发现很难提出为此所需的sparql查询
So I was thinking maybe I can see if the concept "Pyramids" has anything to do with "Egypt", by searching through the relations, but I am finding it difficult to come up with the sparql query needed for that
顺便说一句,我通过以下方式查询: http://dbpedia.org/sparql
BTW I query through: http://dbpedia.org/sparql
推荐答案
尝试构建如下所示的SPARQL查询可能会有用:
Trying to construct a SPARQL query like the following might be useful:
SELECT ?uri ?txt WHERE {
?uri rdfs:label ?txt .
?txt bif:contains "'Egypt' OR 'Pyramid'" .
}
还是您想要其他东西?
这篇关于解决DBpedia的两个关键字查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!