Revision for “Searching for IoTResources” created on December 15, 2014 @ 08:34:25
Title | Searching for IoTResources |
---|---|
Content | The IoT Resource Catalogue provides a Query language for finding IoTResources. The Query language is based on xpath for querying Xml documents. The IoTResource Catalogue takes an xpath expression and applies it to the SCPD document of the IoTResources. The IoTResources that matches the xpath expression is then returned.
The xpath querying can be used directly in the REST-Url:
http://<catalogueendpoint>/<xpathexpression
Some example expressions:
http://<catalogueendpoint>//IoT:gateway - returns all IoTResource that has a gateway-element
http://<catalogueendpoint>//IoT:gateway[.='ARMSTRONG'] - returns all IoTResource that at gateway "ARMSTRONG"
<h3>Namespaces</h3>
The following namespaces can be used in the xpath expressions:
<ul>
<li>upnp</li>
<li>IoT</li>
<li>IoTObservation</li>
</ul> |
Excerpt |