Skip to content

How to modify an existing wikibase/wikidata item? #328

Answered by LeMyst
WolfgangFahl asked this question in Q&A
Discussion options

You must be logged in to vote

If you use v0.11, you can check the /test/ folder in the "master" branch.
Like in https://github.com/LeMyst/WikibaseIntegrator/blob/master/test/test_wbi_core.py (line 36 per exemple)

instance_of_append = wbi_datatype.ItemID(prop_nr='P31', value='Q1234', if_exists='APPEND')
item = wbi_core.ItemEngine(item_id="Q2", data=[instance_of_append])
item.write()

I didn't use v0.11 since months ago, I maybe forgot some parameters

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@JeongYunLee
Comment options

@LeMyst
Comment options

@LeMyst
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LeMyst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #327 on May 03, 2022 14:11.