142 | | The lookup for resource descriptions requires sending the following request HTTP POST http://hostname:port/sqr/requestResDesc . |
143 | | |
144 | | For the simple case. |
145 | | |
146 | | |
147 | | For the selector-based queries, the body of the message contains the following XML: |
| 142 | The lookup for resource descriptions requires sending the following request HTTP POST http://hostname:port/sqr/requestResDesc with the XML in the body: |
| 143 | |
| 144 | {{{ |
| 145 | <requestResource> |
| 146 | <resourceSpecification> |
| 147 | <tag>bus</tag> |
| 148 | </resourceSpecification> |
| 149 | <AdvancedSpecification> |
| 150 | <![CDATA[ |
| 151 | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 152 | PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> |
| 153 | PREFIX ard: <http://www.ict-sensei.org/AdvancedResourceDescription#> |
| 154 | PREFIX om: <http://www.ict-sensei.org/ObservationAndMeasurement#> |
| 155 | SELECT ?description |
| 156 | WHERE { |
| 157 | ?description ard:hasSemanticOperationDescription ?operation . |
| 158 | ?operation ard:hasOutput ?output . |
| 159 | ?output ard:hasInformationType ?out_infoType . |
| 160 | ?out_infoType rdfs:subClassOf om:HumanPresence . } |
| 161 | ]]> |
| 162 | </AdvancedSpecification> |
| 163 | </requestResource> |
| 164 | }}} |