本文介绍了Wikidata转储-长QID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在玩转储时,我遇到了许多类似以下的条目:

While playing with the dump, I came across many entries like the following:

http://www.wikidata.org/entity/Q12258SCD97A47E- A0CA-453F-B01A-DEE8829139BF http://www.wikidata.org/entity/P646v "/m/021821".

http://www.wikidata.org/entity/Q12258SCD97A47E-A0CA-453F-B01A-DEE8829139BFhttp://www.wikidata.org/entity/P646v "/m/021821" .

  • Q12258SCD97A47E-A0CA-453F-B01A-DEE8829139BF代表什么?似乎是一个QID,然后是其他内容.
  • P646v代表什么性质,似乎无效?
  • what does the Q12258SCD97A47E-A0CA-453F-B01A-DEE8829139BF stand for? it seems to be a QID followed by something else.
  • What does the property: P646v stands for, it doesn't seem to be valid?

推荐答案

每个Wikidata 项目具有声明,并且每个语句均由声明属性和一个或多个声明值.每个语句值都有一个和其他限定符(属性加值)和引用(一个或多个属性和值的组).

Each Wikidata item has statements, and each statement consists of a statement property and one or more statement values. Each statement value has a value and additional qualifiers (property plus value) and references (group of one or more properties and values).

一个语句的属性-值对形成声明.每个声明都有唯一的标识符,该标识符由商品ID $(S)和 UUID组成(用连字符分隔的五个组中显示的32个十六进制数字,格式为8-4-4-4-12,总共36个字符".).

One statement property-value pair form a claim. Each claim has unique identifier which is formed from the item id, $ (S) and an UUID ("32 hexadecimal digits displayed in five groups separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters").

因此,在您的情况下,项目 Q12258 具有属性 P646 的值为/m/021821,并使用UUID构成具有唯一标识符的声明: CD97A47E-A0CA-453F-B01A-DEE8829139BF .

So, in your case the item Q12258 has property P646 with value /m/021821 and form a claim with unique identifier with UUID: CD97A47E-A0CA-453F-B01A-DEE8829139BF.

<property id="P646">
    <claim type="statement" id="Q12258$CD97A47E-A0CA-453F-B01A-DEE8829139BF"></claim>
</property>

如果该项目的属性P646具有多个值,则将为每个值形成唯一的ID.

If the item has property P646 with more than one value, unique id for each one of the values will be formed.

Wikidata中的属性不直接对应于RDF中的属性. P646v是 RDF属性,其中后缀 v 表示此属性用于链接到. Postfix s 用于链接到声明,用于限定符引用用于 q r .

Properties in Wikidata do not directly correspond to properties in RDF. P646v is RDF property where postfix v means that this property is used for link to the value. Postfix s is used for link to the statement, and for qualifiers and references is used q and r respectively.

示例,其中P26的Q42具有一个值,两个限定符(P580和P582)以及参考:

An example with Q42 for P26 which has one value, two qualifiers (P580 and P582) and reference:

对于更简单的RDF导出,仍然存在一个带有后缀 c 的RDF属性.您可以在将Wikidata引入链接数据网站( p.6,Ch.3.在RDF中表示Wikidata内容.

For simpler RDF exports there is still one RDF property with postfix c. You can find more information in Introducing Wikidata to the Linked Data Web (p.6, Ch.3. Representing Wikidata Content in RDF).

这篇关于Wikidata转储-长QID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-07 18:56