The only clue that I get that there is a problem is that the mediawiki-api-error field says "failed-modify" ?
Here's my Request URL shown in the GET just before the POST :
https://www.wikidata.org/w/api.php?action=wbgetentities&format=json&...
and here's the screenshot of the Response:
[image: image.png]
Hello Thad, Thanks for sharing this issue. It may happen because you're trying to merge two Lexemes having different lexical categories (verb and noun). Could you add the content of the response body (“response” tab in the dev tools view) so we can learn more about the error?
FYI, you can see the details of the merge features for Lexemes in this ticket https://phabricator.wikimedia.org/T198105. Cheers, Léa
On Mon, 27 Apr 2020 at 09:47, Thad Guidry thadguidry@gmail.com wrote:
The only clue that I get that there is a problem is that the mediawiki-api-error field says "failed-modify" ?
Here's my Request URL shown in the GET just before the POST :
https://www.wikidata.org/w/api.php?action=wbgetentities&format=json&...
and here's the screenshot of the Response:
[image: image.png]
Thad https://www.linkedin.com/in/thadguidry/ _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Sure Léa !
GET Response:
{"JSON":{"entities":{"L184508":{"pageid":68161624,"ns":146,"title":"Lexeme:L184508","lastrevid":1019399562,"modified":"2019-09-24T20:01:21Z","type":"lexeme","id":"L184508","lemmas":{"en":{"language":"en","value":"bow"}},"lexicalCategory":"Q1084","language":"Q1860","claims":{},"forms":[{"id":"L184508-F1","representations":{"en":{"language":"en","value":"bow"}},"grammaticalFeatures":["Q110786"],"claims":[]},{"id":"L184508-F2","representations":{"en":{"language":"en","value":"bows"}},"grammaticalFeatures":["Q146786"],"claims":[]}],"senses":[{"id":"L184508-S1","glosses":{"en":{"language":"en","value":"forward part of the hull of a ship"}},"claims":{"P5137":[{"mainsnak":{"snaktype":"value","property":"P5137","hash":"9a7cdeaf3f9b9a8ebeadb262d9fe90c94fab6f15","datavalue":{"value":{"entity-type":"item","numeric-id":301897,"id":"Q301897"},"type":"wikibase-entityid"}},"type":"statement","id":"L184508-S1$2697ab0f-4a9a-24bf-b7fe-1df5b1eabead","rank":"normal"}]}},{"id":"L184508-S2","glosses":{"en":{"language":"en","value":"act of bending at the hip to show respect or thanks"}},"claims":[]}]},"L14699":{"pageid":56171930,"ns":146,"title":"Lexeme:L14699","lastrevid":1118806304,"modified":"2020-02-20T00:00:17Z","type":"lexeme","id":"L14699","lemmas":{"en":{"language":"en","value":"bow"}},"lexicalCategory":"Q24905","language":"Q1860","claims":{},"forms":[{"id":"L14699-F1","representations":{"en":{"language":"en","value":"bow"}},"grammaticalFeatures":["Q3910936"],"claims":[]},{"id":"L14699-F2","representations":{"en":{"language":"en","value":"bows"}},"grammaticalFeatures":["Q3910936","Q51929447"],"claims":[]},{"id":"L14699-F3","representations":{"en":{"language":"en","value":"bowed"}},"grammaticalFeatures":["Q1230649","Q1392475"],"claims":[]},{"id":"L14699-F4","representations":{"en":{"language":"en","value":"bowing"}},"grammaticalFeatures":["Q10345583"],"claims":[]}],"senses":[{"id":"L14699-S1","glosses":{"en":{"language":"en","value":"forward part of the hull of a ship"}},"claims":{"P5137":[{"mainsnak":{"snaktype":"value","property":"P5137","hash":"9a7cdeaf3f9b9a8ebeadb262d9fe90c94fab6f15","datavalue":{"value":{"entity-type":"item","numeric-id":301897,"id":"Q301897"},"type":"wikibase-entityid"}},"type":"statement","id":"L14699-S1$49FE7361-CF41-45E4-875B-1763CD0C4256","rank":"normal"}]}},{"id":"L14699-S2","glosses":{"en":{"language":"en","value":"ranged weapon system consisting of an elastic launching device and long-shafted projectiles"}},"claims":{"P5137":[{"mainsnak":{"snaktype":"value","property":"P5137","hash":"a1b79b0ad43924054fc0deac67d874ebb0438b5d","datavalue":{"value":{"entity-type":"item","numeric-id":46311,"id":"Q46311"},"type":"wikibase-entityid"}},"type":"statement","id":"L14699-S2$A4029C71-574A-461A-B6A2-0C21906FA2BF","rank":"normal"}]}}]}},"success":1},"Response Payload":{"EDITOR_CONFIG":{"text":"{"entities":{"L184508":{"pageid":68161624,"ns":146,"title":"Lexeme:L184508","lastrevid":1019399562,"modified":"2019-09-24T20:01:21Z","type":"lexeme","id":"L184508","lemmas":{"en":{"language":"en","value":"bow"}},"lexicalCategory":"Q1084","language":"Q1860","claims":{},"forms":[{"id":"L184508-F1","representations":{"en":{"language":"en","value":"bow"}},"grammaticalFeatures":["Q110786"],"claims":[]},{"id":"L184508-F2","representations":{"en":{"language":"en","value":"bows"}},"grammaticalFeatures":["Q146786"],"claims":[]}],"senses":[{"id":"L184508-S1","glosses":{"en":{"language":"en","value":"forward part of the hull of a ship"}},"claims":{"P5137":[{"mainsnak":{"snaktype":"value","property":"P5137","hash":"9a7cdeaf3f9b9a8ebeadb262d9fe90c94fab6f15","datavalue":{"value":{"entity-type":"item","numeric-id":301897,"id":"Q301897"},"type":"wikibase-entityid"}},"type":"statement","id":"L184508-S1$2697ab0f-4a9a-24bf-b7fe-1df5b1eabead","rank":"normal"}]}},{"id":"L184508-S2","glosses":{"en":{"language":"en","value":"act of bending at the hip to show respect or thanks"}},"claims":[]}]},"L14699":{"pageid":56171930,"ns":146,"title":"Lexeme:L14699","lastrevid":1118806304,"modified":"2020-02-20T00:00:17Z","type":"lexeme","id":"L14699","lemmas":{"en":{"language":"en","value":"bow"}},"lexicalCategory":"Q24905","language":"Q1860","claims":{},"forms":[{"id":"L14699-F1","representations":{"en":{"language":"en","value":"bow"}},"grammaticalFeatures":["Q3910936"],"claims":[]},{"id":"L14699-F2","representations":{"en":{"language":"en","value":"bows"}},"grammaticalFeatures":["Q3910936","Q51929447"],"claims":[]},{"id":"L14699-F3","representations":{"en":{"language":"en","value":"bowed"}},"grammaticalFeatures":["Q1230649","Q1392475"],"claims":[]},{"id":"L14699-F4","representations":{"en":{"language":"en","value":"bowing"}},"grammaticalFeatures":["Q10345583"],"claims":[]}],"senses":[{"id":"L14699-S1","glosses":{"en":{"language":"en","value":"forward part of the hull of a ship"}},"claims":{"P5137":[{"mainsnak":{"snaktype":"value","property":"P5137","hash":"9a7cdeaf3f9b9a8ebeadb262d9fe90c94fab6f15","datavalue":{"value":{"entity-type":"item","numeric-id":301897,"id":"Q301897"},"type":"wikibase-entityid"}},"type":"statement","id":"L14699-S1$49FE7361-CF41-45E4-875B-1763CD0C4256","rank":"normal"}]}},{"id":"L14699-S2","glosses":{"en":{"language":"en","value":"ranged weapon system consisting of an elastic launching device and long-shafted projectiles"}},"claims":{"P5137":[{"mainsnak":{"snaktype":"value","property":"P5137","hash":"a1b79b0ad43924054fc0deac67d874ebb0438b5d","datavalue":{"value":{"entity-type":"item","numeric-id":46311,"id":"Q46311"},"type":"wikibase-entityid"}},"type":"statement","id":"L14699-S2$A4029C71-574A-461A-B6A2-0C21906FA2BF","rank":"normal"}]}}]}},"success":1}","mode":"application/json"}}}
POST Response:
{"JSON":{"error":{"code":"failed-modify","info":"Attempted modification of the Item failed.","messages":[{"name":"wikibase-api-failed-modify","parameters":[],"html":{"*":"Attempted modification of the Item failed."}}],"*":"See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at < https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce%3E; for notice of API deprecations and breaking changes."},"servedby":"mw1290"},"Response Payload":{"EDITOR_CONFIG":{"text":"{"error":{"code":"failed-modify","info":"Attempted modification of the Item failed.","messages":[{"name":"wikibase-api-failed-modify","parameters":[],"html":{"*":"Attempted modification of the Item failed."}}],"*":"See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at < https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce%3E; for notice of API deprecations and breaking changes."},"servedby":"mw1290"}","mode":"application/json"}}}
wikidata-tech@lists.wikimedia.org