Mahir256 added a comment.
I would like to assemble a JSON string with which to generate a lexeme using
a single wbeditentity call.
JSON strings of the following form did work prior to this change (with no
statements on forms or senses):
{"lexicalCategory": "Q34698", "language": "Q9610", "type": "lexeme",
"lemmas": {"bn": {"value": "\u09a6\u09cd\u09b0\u09c1\u09a4", "language":
"bn"}},
"forms": [{"representations": {"bn": {"value":
"\u09a6\u09cd\u09b0\u09c1\u09a4", "language": "bn"}}, "grammaticalFeatures":
["Q3482678"], "add": ""}],
"senses": [{"glosses": {"bn": {"value": "\u09aa\u09cd\u09b0\u09a5\u09ae
\u0985\u09b0\u09cd\u09a5", "language": "bn"}}, "add": ""}]}
After the deployment of wmf.35 to Wikidata I tried to add statements (with
qualifiers, if that matters) to a similar JSON string:
{"lexicalCategory": "Q34698", "language": "Q33173", "type": "lexeme",
"lemmas": {"ctg": {"value": "\u0985\u0993\u09a1\u09cd\u09af\u09be",
"language": "ctg"}},
"forms": [{"representations": {"ctg": {"value":
"\u0985\u0993\u09a1\u09cd\u09af\u09be", "language": "ctg"}},
"grammaticalFeatures": ["Q3482678"], "add": ""}],
"senses": [{"glosses": {"bn": {"value": "\u098f\u09a4 \u09ac\u09a1\u09bc",
"language": "bn"}}, "add": "",
"claims": [{"type": "statement", "mainsnak": {"snaktype": "value",
"property": "P1343", "datatype": "wikibase-item", "datavalue": {"value":
{"entity-type": "item", "numeric-id": 25586900, "id": "Q25586900"}, "type":
"wikibase-entityid"}}, "rank": "normal",
"qualifiers": [{"snaktype": "value", "property": "P304", "datatype":
"string", "datavalue": {"value": "1", "type": "string"}}]}, "qualifiers-order":
["P304"]}]}]}
but am being greeted with "Statement GUID can not be parsed". After some
tinkering around to try to make something happen, a lexeme did get created as
L447292 (albeit without the sense); trying to add just the sense to that lexeme
using wbeditentity is greeting me with the same message.
It is clearly possible to assemble entire items in a single go (that's at
least what QuickStatements is able to do); here's hoping this will soon be
entirely possible with lexemes.
TASK DETAIL
https://phabricator.wikimedia.org/T199896
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Jakob_WMDE, Mahir256
Cc: Mahir256, amy_rc, Lea_Lacroix_WMDE, Scott_WUaS, robertvazan, Tpt,
Lydia_Pintscher, WMDE-leszek, Addshore, Lucas_Werkmeister_WMDE, maantietaja,
Akuckartz, Iflorez, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden,
LawExplorer, _jensen, rosalieper, Bodhisattwa, Jonas, abian, Wikidata-bugs,
aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs