英文:
Openrefine - Extract the instance of
问题
我正在使用OpenRefine来协调一些数据,并且我有以下内容:
我成功地从WikiData中提取了实体ID,但现在我想通过查询WikiData API来提取有关该实体的一些信息。基本上,我想提取属性的实例,以便我现在是否是人类、音乐团体等。还有其他一些属性。有没有方法可以做到这一点?
英文:
I'm using OpenRefine to reconcile some data, and I have the following:
I succesfuly extracted the entity id from WikiData, but now I want to extract some information about the entity querying into WikiData API. Basically I want to extract the instance of property, so I can now if it is a human, a music band, etc. And some other properties. Any way to do this?
答案1
得分: 0
Reconciliation Service API 有一个名为 Data Extension 的概念。
Wikibase reconciliation endpoint 的实现实现了规范的这部分内容。因此,在协调您的数据之后,您可以将您协调的数据的属性作为新列添加(https://openrefine.org/docs/manual/reconciling#add-columns-from-reconciled-values)。
由于某种原因,此功能不在协调的子菜单中。您可以在"personality" => "Edit columns" => "Add columns from reconciled values..."
下找到它。
除了使用 Reconciliation API 进行数据扩展,您还可以使用 WikiData API。这在 OpenRefine 文档中被描述为通过获取 URL 添加列。但在可用的情况下,我认为在 Reconciliation API 的数据扩展部分更容易且更舒适。
英文:
The Reconciliation Service API has a concept called Data Extension.
The implementation of the Wikibase reconciliation endpoint implements this part of the specification. So after reconciling your data you can add properties of your reconciled data as new columns.
For some reason this functionality is not in the submenu for reconciliation. You can find it under "personality" => "Edit columns" => "Add columns from reconciled values..."
.
Instead of using the Reconciliation API for data extension you could also use the WikiData API. This is described in the OpenRefine documentation as Add columns by fetching URLs. But when available it is imho easier and more comfortable to stay with the data extension part of the Reconciliation API.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论