Package org.wikidata.wdtk.wikibaseapi
Interface GuidGenerator
- All Known Implementing Classes:
RandomGuidGenerator
public interface GuidGenerator
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfreshStatementId
(String entityId) Generates a fresh statement id.
-
Field Details
-
STATEMENT_GUID_SEPARATOR
- See Also:
-
-
Method Details
-
freshStatementId
Generates a fresh statement id. This consists of a first part with the entity id of the item the statement belongs to, the separator $, plus a random hash of the form /^\{?[A-Z\d]{8}-[A-Z\d]{4}-[A-Z\d]{4}-[A-Z\d]{4}-[A-Z\d]{12}\}?\z/- Parameters:
entityId
- the entity the statement belongs to- Returns:
- a fresh UUID in the required format.
-