daniel added a comment.
Proposed representation in JSON:
"mainsnak": {
"snaktype": "value",
"property": "P214",
"datatype": "string",
"datavalue": {
"value": "294687716",
"type": "string"
},
"datavalue-uri": {
"value": "https://viaf.org/viaf/294687716/",
"type": "string"
}
}
That is, next to the "datavalue" field of the snak, we introduce
"datavalue-uri". Doing this on the snak level makes sense since expansion
depends on the data type (rather than the value type). This conventiently
allows the expansion to takle place in the snak serializer, and keeps knowledge
about this out of the data value serializer.
TASK DETAIL
https://phabricator.wikimedia.org/T73992
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign
<username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: daniel
Cc: Wikidata-bugs, Lydia_Pintscher, daniel, aude
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs