Hi all,

I have also done this using wbeditentity without having to make any GUID.

Cheers,

Markus


On 14.10.2015 19:18, Thiemo Mättig wrote:
Hi Magnus,

Yes, you can create your own statement GUIDs. They are, in essence,
nothing but the entity ID and a random number.

$guid = $entityId->getSerialization() . '$' . trim( com_create_guid(),
'{}' );

https://github.com/wmde/WikibaseDataModelServices/blob/master/src/Statement/GuidGenerator.php#L37
https://github.com/wmde/WikibaseDataModelServices/blob/master/src/Statement/V4GuidGenerator.php#L26

I hope that helps. Sorry, no guarantee, Editing via action=wbeditentity
should always work, but you will probably run into the same issue.

Best
Thiemo


_______________________________________________
Wikidata-tech mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech



_______________________________________________
Wikidata-tech mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech

Reply via email to