Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3781343
D1008.id2574.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1008.id2574.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D1008: Add native label and writing system claims to names
Attached
Detach File
Event Timeline
Log In to Comment