我在http://dbpedia.org/page/Sachin_Tendulkar浏览了可用数据的示例。我希望这些属性作为列,所以我从http://wiki.dbpedia.org/DBpediaAsTables下载了 CSV 文件。
现在,当我浏览同一实体“Sachin_Tendulkar”的数据时,我发现许多属性不可用。例如,属性“dbpprop:bestBowling”不存在。
如何通过直接资源页面获取我可以浏览的所有属性。
我在http://dbpedia.org/page/Sachin_Tendulkar浏览了可用数据的示例。我希望这些属性作为列,所以我从http://wiki.dbpedia.org/DBpediaAsTables下载了 CSV 文件。
现在,当我浏览同一实体“Sachin_Tendulkar”的数据时,我发现许多属性不可用。例如,属性“dbpprop:bestBowling”不存在。
如何通过直接资源页面获取我可以浏览的所有属性。
Daniel 已经在 DBpedia-discussion 邮件列表中回答了这个问题:
嗨,阿贝,
DBpediaAsTables 数据集仅包含 dbpedia-owl 命名空间(基于映射的信息框数据)中的属性,而不包含 dbpprop(原始信息框属性)命名空间中的属性(关于差异,请参见 [1])。
但是,由于您只对特定实体的数据感兴趣,请查看实体描述页面底部的 CSV 链接,例如,对于您的示例,此链接为 [2]。
干杯,丹尼尔
[1] wiki.dbpedia.org/Datasets#h434-10
[2] dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=DESCRIBE+%3Chttp://dbpedia.org/resource/Sachin_Tendulkar%3E&format=text%2Fcsv
在DBpediaAsTables 网页上,您可以找到用于生成表格的数据集:instance_types_en、labels、short_abstracts_en、mappingbased_properties_en、geo_coordinates_en。另外,我想澄清一下 DBpediaAsTables 包含来自 DBpedia 2014 的所有实例,并且“我们提供了一些核心 DBpedia 数据”我们想说并非所有数据集都包含在表中(但只有我之前提到的 5 个)
如果您想生成您自己的包含自定义属性的表,请参阅生成您自己的自定义表一节。
干杯,
佩塔尔
官方回答:
Date: Sun, 23 Nov 2014 03:08:19 +0100
From: Petar Ristoski <petar.ristoski@informatik.uni-mannheim.de>
To: 'Barry Carter' <carter.barry@gmail.com>
Subject: RE: CSV tables don't have all properties?
Hi Carter,
The question was already answered on the DBpedia mailing list, but I will
try to clarify it again. On the DBpedia as Tables web page says that "For
each class in the DBpedia ontology (such as Person, Radio Station, Ice
Hockey Player, or Band) we provide a single CSV/JSON file which contains all
instances of this class. Each instance is described by its URI, an English
label and a short abstract, the MAPPING-BASED INFOBOX data describing the
instance (extracted from the English edition of Wikipedia), geo-coordinates,
and external links." As you can see we only provide the mapping-based
infobox properties (dbpedia-owl namespace), while the properties from the
dbpprop (raw infobox properties) namespace are completely ignored.
Therefore, dbpprop:bestBowling is missing from the file.
Also, there is a section "Generating your own Custom Tables" [1], where we
explain how to generate your own tables that will contain the properties you
need.
Regards,
Petar
[1] http://wiki.dbpedia.org/DBpediaAsTables#h347-4