使用特定类型的值在维基数据上创建声明

我正在尝试将数据提取到本地 Wikibase,我按照 https://docs.docker.com/compose/install/ 中描述的步骤安装了该数据库。我正在使用 API of wikibase/wikidata 进行摄取,它按预期工作。例如,我可以创建三元组 Q1,P1,"200"here:

/api.php?action=wbcreateclaim&entity=Q1&property=P1&snaktype=value&value="200"

所以,我需要根据xsd指定值的类型,即如下

Q1 P1 "200"^^xsd:integer

我知道我们可以在创建属性时通过 datavalue.type 字段(参见 API)指定属性的范围(参见 documentation)。但是,在这种情况下,节点始终为 string,并且该值的类型是我想要设置的 (integer)。

我知道这应该是可能的,只需在 Wikidata 上以海龟格式查看一个标识符(例如 Q27036482 )。接下来,一个真实的例子

v:67929068efe9dbc374bc4dc78d86121d a wikibase:TimeValue ;
    wikibase:timeValue "2015-09-23T00:00:00Z"^^xsd:dateTime ;
    wikibase:timePrecision "11"^^xsd:integer ;
    wikibase:timeTimezone "0"^^xsd:integer ;
    wikibase:timeCalendarModel <http://www.wikidata.org/entity/Q1985727> .

谁能给我一个线索?非常感谢您考虑我的请求。

w459537795 回答:使用特定类型的值在维基数据上创建声明

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/613424.html

大家都在问