|This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.|
pywikibot - setRank/changeRank
first of all I want to thank you for your help with my pywikibot / claim issue - thanks! It works fine and I made good progress with my bot. Unfortunately I ran into another issue when trying to set the rank of a given claim (in my case I want to set the latest value to "preferred") which I could not resolve so far - maybe you have an idea.
I checked the API doc of pywikibot (https://doc.wikimedia.org/pywikibot/api_ref/pywikibot.html) and found two approaches, namely
My first appraoch is to set the rank of the claim before adding it to the item
claim = pywikibot.Claim(repo, _ALEXA_RANKING_PROPERTY_IDENTIFIER) target = pywikibot.WbQuantity(alexa_ranking,site=site) claim.setTarget(target) claim.setRank("preferred") item.addClaim(alexa_ranking_claim, summary=u'Updating Alexa ranking')
While the claim itselfs gets added and shows up on the respective Wikidata Object page the desired rank of "preferred" is not taken into account, instead the "normal" (I guess the default or fallback) rank is shown.
My second approach is to change the rank of the claim after it has been added to the item, using
item.addClaim(alexa_ranking_claim, summary=u'Updating Alexa ranking') alexa_ranking_claim.changeRank(u'deprecated')
This way the claim itself gets added, however the call to
results in an Exception with an empty Excpetion message
print(exception) -> ""
I am running out of ideas and therefore would like to ask you if you have a hint where my error is or how to set the rank of a certain claim to "preferred". Thanks for your input! --Tozibb (talk) 19:31, 12 October 2017 (UTC)
Rijksmonumenten onterecht verwijderd op Wikidata
Hi Multichill, Zou je willen meekijken? Zojuist heb ik vijf rijksmonumenten teruggeplaatst nadat ze verwijderd waren op Wikidata. De items waren verwijderd omdat ze linkten naar een redirectpagina op Commons. Zie bijvoorbeeld Q17291497. Enig idee wat we hieraan kunnen doen? Romaine (talk) 10:25, 22 October 2017 (UTC)
F.P. 't Hooft = Ernee Pauline 't Hooft
F.P. 't Hooft (Q29553810) is the same person than Ernee Pauline 't Hooft (Q28070875) winner of the Prize de Rome in 1936
I think the reason is that E.P 't Hooft is similar to F.P 't Hooft