Open Data Format (O-DF), an Open Group Internet of Things (IoT) Standard – Inheritance Mechanism for Domain-Specific Data Models

 

At the time of publication, a domain-specific data model extension exists only for product and product lifecycle-related information. That data model is specified in a separate XML Schema file. Such domain-specific schema SHALL include the O-DF schema by the following line:

“<xs:include schemaLocation="odf.xsd"/>”.

The following lines define that a new type called omiPhysicalProduct is an extension of Object and can be used in the same way as Object:

<xs:element name="omiPhysicalProduct" type="PhysicalProduct" substitutionGroup="Object"/> <xs:complexType name="PhysicalProduct">     <xs:complexContent>     <xs:extension base="ObjectType"> …

This signifies that omiPhysicalProduct elements can be used interchangeably with Object elements and that they inherit all the attributes and sub-elements of Object. Other attributes and sub-elements can then be defined for the PhysicalProduct type, which are particular for that domain. Similar extensions can be created for all other data types defined in the root data model schema.

The same extension mechanism SHALL be used for all other O-DF-compliant specifications. It is currently foreseen that such specifications will be defined at least for the healthcare domain.