Page MenuHomeDevCentral

D1008.id2574.diff
No OneTemporary

D1008.id2574.diff

diff --git a/create_given_name b/create_given_name
--- a/create_given_name
+++ b/create_given_name
@@ -82,11 +82,22 @@
labels = {lang: givenname for lang in labels_languages}
item.editLabels(labels, summary='Adding given name labels')
-item.editDescriptions(descriptions, summary='Adding given name descriptions')
claim = pywikibot.Claim(repo, 'P31')
target = pywikibot.ItemPage(repo, genre_items[genre])
claim.setTarget(target)
item.addClaim(claim)
+claim = pywikibot.Claim(repo, 'P1705')
+target = pywikibot.WbMonolingualText(text=givenname, language='mul')
+claim.setTarget(target)
+item.addClaim(claim)
+
+claim = pywikibot.Claim(repo, 'P282')
+target = pywikibot.ItemPage(repo, 'Q8229')
+claim.setTarget(target)
+item.addClaim(claim)
+
+item.editDescriptions(descriptions, summary='Adding given name descriptions')
+
print(title)
diff --git a/create_surname b/create_surname
--- a/create_surname
+++ b/create_surname
@@ -51,11 +51,22 @@
labels = {lang: surname for lang in latin_languages}
item.editLabels(labels, summary='Adding surname labels')
-item.editDescriptions(descriptions, summary='Adding surname descriptions')
claim = pywikibot.Claim(repo, 'P31')
target = pywikibot.ItemPage(repo, 'Q101352')
claim.setTarget(target)
item.addClaim(claim)
+claim = pywikibot.Claim(repo, 'P1705')
+target = pywikibot.WbMonolingualText(text=surname, language='mul')
+claim.setTarget(target)
+item.addClaim(claim)
+
+claim = pywikibot.Claim(repo, 'P282')
+target = pywikibot.ItemPage(repo, 'Q8229')
+claim.setTarget(target)
+item.addClaim(claim)
+
+item.editDescriptions(descriptions, summary='Adding surname descriptions')
+
print(title)

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 19:48 (19 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2265040
Default Alt Text
D1008.id2574.diff (1 KB)

Event Timeline