使用Python更新WikiData属性

2024-10-02 02:23:47 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用Python以编程方式更新现有的wikidata属性。目前我正在使用wikidataintegrator,下面是示例代码:

# obtaining the wikidata item directly from WikiData
item = wdi_core.WDItemEngine(wd_item_id=<some_id_here>)

# I can create a property via the wikidataintegrator python api
#create property
prop = wdi_core.WDString(value="some_string_value", prop_nr=<property_id>)

因此,我这里的问题是如何更新当前项中的特定属性


Tags: thecoreid属性value编程create方式

热门问题