{"mainsnak":{"snaktype":"value","property":"P56","datavalue":{"value":"ExampleString","type":"string"}},"type":"statement","rank":"normal"}
in wbeditentity I have to enter:
{"claims":[{"mainsnak":{"snaktype":"value","property":"P56","datavalue":{"value":"ExampleString","type":"string"}},"type":"statement","rank":"normal"}]}
I am sure people could cope with that..?This would also mean getting rid of 200 lines of codes and 299 lines of tests that in my eyes are not really needed.Addshore
Hey,* we introduce a new optional parameter "id"* if a guid is set inside the claim serialization, change that claim if it exists and return an error if that claim is unknown.* if no guid is set in the claim serialization, create a new claim for the entity identified by the new parameter "id". if "id" is not set, return an error.This is fine for me - barring naming nitpicks and whatnot.
_______________________________________________
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech