summaryrefslogtreecommitdiffstats
path: root/schemas/data-model.xsd
diff options
context:
space:
mode:
Diffstat (limited to 'schemas/data-model.xsd')
-rw-r--r--schemas/data-model.xsd51
1 files changed, 51 insertions, 0 deletions
diff --git a/schemas/data-model.xsd b/schemas/data-model.xsd
new file mode 100644
index 0000000..6091aa0
--- /dev/null
+++ b/schemas/data-model.xsd
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <xs:schema targetNamespace="urn:ietf:params:xml:ns:pidf:data-model"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns="urn:ietf:params:xml:ns:pidf:data-model"
+ elementFormDefault="qualified" attributeFormDefault="unqualified">
+ <xs:include schemaLocation="common-schema.xsd"/>
+ <xs:element name="deviceID" type="deviceID_t">
+ <xs:annotation>
+ <xs:documentation>Device ID, a URN</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="device">
+ <xs:annotation>
+ <xs:documentation>Contains information about the
+ device</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any namespace="##other" processContents="lax"
+ minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="deviceID"/>
+ <xs:element name="note" type="Note_t" minOccurs="0"
+ maxOccurs="unbounded"/>
+ <xs:element name="timestamp" type="Timestamp_t" minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:ID" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="person">
+ <xs:annotation>
+ <xs:documentation>Contains information about the human
+ user</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any namespace="##other" processContents="lax"
+ minOccurs="0" maxOccurs="unbounded">
+ <xs:annotation>
+ <xs:documentation>Characteristic and status
+ information</xs:documentation>
+ </xs:annotation>
+ </xs:any>
+ <xs:element name="note" type="Note_t" minOccurs="0"
+ maxOccurs="unbounded"/>
+ <xs:element name="timestamp" type="Timestamp_t" minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:ID" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:schema>
+
OpenPOWER on IntegriCloud