Thanks, that works!
(I do wonder what the chance of collision is though... looks low, but
still...)

On Wed, Oct 14, 2015 at 6:18 PM Thiemo Mättig <[email protected]>
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