I wanted to play around with the new title (https://www.wikidata.org/wiki/Property:P1476) but I noticed we haven't implemented "Monolingual text" yet. The other datatypes at https://www.wikidata.org/wiki/Special:ListDatatypes seem to be implemented.
The data type has two parts:
* a string
* the language code (mandatory)
See for example https://www.wikidata.org/w/index.php?title=Q62&diff=prev&oldid=184166426
Or in json:
"P1476": [
{
"snaktype": "value",
"property": "P1476",
"datatype": "monolingualtext",
"datavalue": {
"value": {
"text": "List of United States counties and county equivalents",
"language": "en"
},
"type": "monolingualtext"
}
}
]
(from https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q62&props=claims )
We should probably create pywikibot.WbMonolingualtext for this.