Commit f2440e57 authored by Peter Waher's avatar Peter Waher

Shortening namespace.

parent 750cd999
<?xml version="1.0" encoding="utf-8"?>
<nd id="Node1" xmlns="urn:ieee:iot:sensordata">
<nd id="Node1" xmlns="urn:ieee:iot:sd">
<ts v="2017-09-22T15:22:33Z">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
......
<?xml version="1.0" encoding="utf-8"?>
<req xmlns="urn:ieee:iot:sensordata" id="00000001" all="true"/>
<req xmlns="urn:ieee:iot:sd" id="00000001" all="true"/>
<?xml version="1.0" encoding="utf-8"?>
<resp xmlns="urn:ieee:iot:sensordata" id="00000001">
<resp xmlns="urn:ieee:iot:sd" id="00000001">
<ts v="2017-09-22T15:22:33Z">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
......
......@@ -6,7 +6,7 @@ an annotated XML Schema:
| Sensor Data ||
| ------------|----------------------------------|
| Namespace: | urn:ieee:iot:sensordata |
| Namespace: | urn:ieee:iot:sd |
| Schema: | [SensorData.xsd](SensorData.xsd) |
Motivation and design goal
......@@ -215,7 +215,7 @@ Examples
A simple example containing sensor data from a temperature sensor.
```xml
<ts v="2017-09-22T15:22:33Z" xmlns="urn:ieee:iot:sensordata">
<ts v="2017-09-22T15:22:33Z" xmlns="urn:ieee:iot:sd">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
</ts>
......@@ -224,7 +224,7 @@ A simple example containing sensor data from a temperature sensor.
If this temperature sensor would be a node inside a concentrator, the same data would be represented as:
```xml
<nd id="Node1" xmlns="urn:ieee:iot:sensordata">
<nd id="Node1" xmlns="urn:ieee:iot:sd">
<ts v="2017-09-22T15:22:33Z">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
......
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:ieee:iot:sensordata'
xmlns='urn:ieee:iot:sensordata'
targetNamespace='urn:ieee:iot:sd'
xmlns='urn:ieee:iot:sd'
elementFormDefault='qualified'>
<xs:element name='nd'>
......
......@@ -179,7 +179,7 @@ Request:
```xml
<iq type='get' from='client@example.org/1234' to='device@example.org/abcd' id='R0001'>
  <req xmlns="urn:ieee:iot:sensordata" id="00000001" all="true"/>
  <req xmlns="urn:ieee:iot:sd" id="00000001" all="true"/>
</iq>
```
......@@ -187,7 +187,7 @@ Response:
```xml
<iq type='result' from='device@example.org/abcd' to='client@example.org/1234' id='R0001'>
<resp xmlns="urn:ieee:iot:sensordata" id="00000001">
<resp xmlns="urn:ieee:iot:sd" id="00000001">
<ts v="2017-09-22T15:22:33Z">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment