5.1 UUID and the AbstractObject
|For Standard||EID v4.0|
Earlier revisions of Energistics schemas specified the use of a unique identifier, but were not specific in requiring the use of a UUID, and often allowed a form of compound identity for some data objects, particularly in WITSML. From the release of Energistics common (shared common schema elements) forward, all Energistics XML data objects inherit from AbstractObject, which specifies a required UUID as an attribute of the data object. The following XML snippet demonstrates this, with the yellow highlighted text. Note that this UUID is assigned by the agent or system that generates the document and is assumed to be the identity as understood by that system.
<?xml version="1.0" encoding="UTF-8"?> <resqml:WellboreFeature
xmlns=” http://www.energistics.org/energyml/data/commonv2 ”
xmlns:xsi=” http://www.w3.org/2001/XMLSchema-instance” xmlns:resqml=” http://www.energistics.org/energyml/data/resqmlv2 ”
schemaVersion="v2.0" uuid="F2889E68-3DB3-459C-ABDD-1FBB5C1DC5BF"> <Citation> <Title>Wellbore A-2</Title> <Originator>William McKenzie</Originator> <Creation>2001-12-17T09:30:47Z</Creation> <Format>companyA/MyStructuralModeler</Format> </Citation> <!-- other elements --> </resqml:WellboreFeature>