简体   繁体   English

从dbpedia Virtuoso返回属性

[英]Returning properties from dbpedia Virtuoso

When I look at the HTML page: http://dbpedia.org/page/Bill_Nye I can see a lot of properties that are not returned in the following simple query from the Virtuoso page (http://pt.dbpedia.org/sparql): 当我查看HTML页面时: http//dbpedia.org/page/Bill_Nye我可以在Virtuoso页面(http://pt.dbpedia.org/)中看到以下简单查询中未返回的大量属性SPARQL):

prefix foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?s ?p  WHERE {
 ?e foaf:name "Bill Nye"@en .
 ?e ?s ?p.
}

No results return when I try to access one of the properties I can see on this page- say foaf:depiction: 当我尝试访问此页面上可以看到的其中一个属性时,没有结果返回 - 例如foaf:描述:

prefix foaf: <http://xmlns.com/foaf/0.1/>
SELECT $depiction WHERE { 
?s foaf:name "Bill Nye"@en. 
?e foaf:depiction ?depiction 
}

When I run them via the sparql endpoint at http://dbpedia.org/sparql , after encoding 当我通过http://dbpedia.org/sparql上的sparql端点运行它们时,编码后

SELECT ?s ?p WHERE { ?e foaf:name "Bill Nye"@en.?e ?s ?p. }

I get 我明白了

http://dbpedia.org/sparql?query=SELECT%20%3Fs%20%3Fp%20WHERE%20%7B%20%3Fe%20foaf%3Aname%20%22Bill%20Nye%22@en.%3Fe%20%3Fs%20%3Fp.%20%7D&format=json

And a result of what looks like all the properties shown at http://dbpedia.org/page/Bill_Nye . 看起来像http://dbpedia.org/page/Bill_Nye上显示的所有属性的结果。 I would love an explaniation of the difference, is it simply the Virtuoso interface or something more? 我想要解释这种差异,它只是简单的Virtuoso界面还是更多的东西? I'm pretty fresh at this semantic web, so please be gentle. 我对这个语义网很新鲜,所以请保持温柔。

Please note that you are sending the queries to two different Virtuoso installations: 请注意,您要将查询发送到两个不同的Virtuoso安装:

  • pt.dbpedia.org/sparql : is the international chapter for Portuguese language (PT stands for DBpedia Portuguese) pt.dbpedia.org/sparql:是葡萄牙语的国际章节(PT代表DBpedia葡萄牙语)
  • dbpedia.org/sparql : is the main SPARQL endpoint for DBpedia, containing data from multiple languages, but in an English-centric way. dbpedia.org/sparql:是DBpedia的主要SPARQL端点,包含来自多种语言的数据,但是以英语为中心。

You will also have different experiences with es.dbpedia.org, it.dbpedia.org, el.dbpedia.org, etc. 您还可以通过es.dbpedia.org,it.dbpedia.org,el.dbpedia.org等获得不同的体验。

I18n chapters do not load exactly the same data sets as the main DBpedia. I18n章节不会加载与主DBpedia完全相同的数据集。 Please see: http://mappings.dbpedia.org/index.php/DBpedia_datasets 请参阅: http//mappings.dbpedia.org/index.php/DBpedia_datasets

I believe the following query (ordered) will enable you to more easily identify the missing results -- 我相信以下查询(已订购)将使您能够更轻松地识别缺失的结果 -

prefix foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?s ?p ?o  WHERE
{
 ?s foaf:name "Bill Nye"@en .
 ?s ?p ?o.
}
order by 2

here you can easily identify that all the missing results have predicates of the form - 在这里,您可以轻松识别所有缺失的结果都具有表单的谓词 -

is ********** of

Basically, these are just eye candy in the human viewable Html view - and represent additional relationships wherever the object of some other subject is http://dbpedia.org/resource/Bill_Nye 基本上,这些只是人类可见的Html视图中的视觉效果 - 并代表其他任何主题的对象的任何地方的其他关系http://dbpedia.org/resource/Bill_Nye

That is - 那是 -

<something else> ?p <http://dbpedia.org/resource/Bill_Nye>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM