使用SPARQL查询DBpedia-Live与DBpedia给出的答案不同 [英] Querying DBpedia-Live with SPARQL does not give same answer as DBpedia

查看:130
本文介绍了使用SPARQL查询DBpedia-Live与DBpedia给出的答案不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 DBpedia Live端点来查询DBpedia。

I want to query DBpedia with DBpedia Live endpoint.

我有此查询:

SELECT *
WHERE {
?x a dbo:Person .
?x rdfs:label "Usain Bolt"@en .
}

此查询给出了我尝试过的大多数名称的正确答案(例如泰迪·里纳 @en ),但是在Usain Bolt和Rachid Badouri失败了。

This query gives the correct answer with most names I tried (for example "Teddy Riner"@en) but it fails with Usain Bolt and Rachid Badouri.

我不知道为什么他们的DBpedia页面( Teddy Riner Usain Bolt )的构造方式相同:它们都具有 rdfs:label ,其编写方式与我的写法完全相同

I don’t get why as their DBpedia pages (Teddy Riner, Usain Bolt) are constructed the same way: they both have a rdfs:label, which is written exactly like I did.

在我看来,端点与DBpedia之间存在不一致的地方,但是我不认为这是因为端点尚未实现。

It seems to me that there is an incoherence between the endpoint and DBpedia. But I don’t think that it's because the endpoint is not to date.

更令人惊讶的是,此查询给出了正确的答案:

Even more surprising, this query gives the correct answer:

SELECT *
WHERE {
?x rdfs:label "Usain Bolt"@en .
}

但Usain Bolt是 a dbo:Person !对于Rachid Badouri也是如此。

However, Usain Bolt is a dbo:Person! Same thing for Rachid Badouri.

有人可以解释一下为什么第一个查询没有给出答案吗?

Could someone explain me why the first query does not give answer?

任何帮助将不胜感激!谢谢

Any help would be appreciated! Thanks

推荐答案

根据DBpedia-Live,在撰写本文时,带有 rdfs:label Usain Bolt @en 的实体具有多种类型,但不是。与带有 rdfs:label Rachid的实体 Badouri @en

According to DBpedia-Live, at the time of writing, the entity with rdfs:label "Usain Bolt"@en has many types, but is not a dbo:Person. Similar for the entity with rdfs:label "Rachid Badouri"@en.

相反,带有 rdfs:label Teddy Riner @en 的实体是 a dbo:Person

注意: DBpedia-Live内容为移动目标,随Wikipedia内容的变化,模板的调整以及其他变量而变化。当您阅读本文时,我在上面所做的声明可能不再正确。

Note: DBpedia-Live content is a moving target, varying with Wikipedia content changes, adjustments in the templates, and other variables. The statements I made above may no longer be true when you read this.

这篇关于使用SPARQL查询DBpedia-Live与DBpedia给出的答案不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆