wiki:SOSexample

Version 14 (modified by Wuaast, 3 years ago) (diff)

--

Semantic annotations on SOS capabilities

Concept Map

The following figure illustrates the various parts of the SOS capabilities where you can add semantic annotations:

Annotated SOS Capabilites (example)

<?xml version="1.0" encoding="UTF-8"?>
<sos:Capabilities version="1.0.0" updateSequence="2005-12-14T10:12:39+01" xsi:schemaLocation="http://www.opengis.net/sos/1.0 http://schemas.opengis.net/sos/1.0.0/sosAll.xsd" xmlns:sos="http://www.opengis.net/sos/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink">
  <ows:ServiceIdentification xmlns:ogc="http://www.opengis.net/ogc" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:om="http://www.opengis.net/om/1.0" xmlns:swe="http://www.opengis.net/swe/1.0">
    <ows:Title>IFGI UBA SOS</ows:Title>
    <ows:Abstract>SOS for UBA air quality and meteorological measurements IFGI, Muenster, Germany</ows:Abstract>

    <!-- Annotations in the keywords section-->
    <ows:Keywords>
      <ows:Keyword>PM10</ows:Keyword>
      <ows:Keyword>NO2</ows:Keyword>
      <ows:Keyword>NO</ows:Keyword>
      <ows:Keyword>CO</ows:Keyword>
      <ows:Keyword>SO2</ows:Keyword>
      <ows:Keyword>windspeed</ows:Keyword>
      <ows:Keyword>winddirection</ows:Keyword>
      <ows:Keyword>temperature</ows:Keyword>
      <ows:Type codeSpace="http://purl.org/net/concepts/">ontology</ows:Type>
    </ows:Keywords>
    <!-- End of annotations in the keywords section-->

    <ows:ServiceType codeSpace="http://opengeospatial.net">OGC:SOS</ows:ServiceType>
    <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
    <ows:Fees>NONE</ows:Fees>
    <ows:AccessConstraints>NONE</ows:AccessConstraints>
  </ows:ServiceIdentification>
  <!-- ... -->
  <!-- <ows:ServiceProvider> -->
  <!-- ... -->
  <!-- ... -->
  <!-- <ows:OperationsMetadata> -->
  <!-- ... -->
  <!-- ... -->
  <!-- <sos:Filter_Capabilities> -->
  <!-- ... -->
  <sos:Contents>
    <sos:ObservationOfferingList>
      <!-- ObservationOffering annotation -->
      <sos:ObservationOffering gml:id="AIR_QUALITY" xlink:href="http://www.example.com/web-services/sos421983012">
        <gml:name>Gaseous and particulate air pollution parameters</gml:name>
        <gml:boundedBy>
          <gml:Envelope srsName="urn:ogc:def:crs:EPSG:4326">
            <gml:lowerCorner>6.093923 47.476392</gml:lowerCorner>
            <gml:upperCorner>14.973958 54.924967</gml:upperCorner>
          </gml:Envelope>
        </gml:boundedBy>
        <sos:time>
          <gml:TimePeriod xsi:type="gml:TimePeriodType">
            <gml:beginPosition>2008-07-01T00:30:00+02:00</gml:beginPosition>
            <gml:endPosition>2010-02-24T09:00:00+01:00</gml:endPosition>
          </gml:TimePeriod>
        </sos:time>

        <!-- Procedure annotations, not injected -->
        <sos:procedure xlink:href="urn:ogc:object:feature:Sensor:UBA:rural-background-DEBB053"/>
        <sos:procedure xlink:href="http://purl.org/net/concepts/airQualitySensor"/>
        <!-- End of procedure annotations -->

        <!-- ObservedProperty annotations, not injected -->
        <sos:observedProperty xlink:href="urn:ogc:def:phenomenon:OGC:1.0.30:no" /> 
        <sos:observedProperty xlink:href="http://purl.org/net/concepts/NO2" />
        <sos:observedProperty xlink:href="http://purl.org/net/concepts/SO2" />
        <sos:observedProperty xlink:href="http://purl.org/net/concepts/PM10" />
        <sos:observedProperty xlink:href="http://purl.org/net/concepts/PM2_5" />
        <sos:observedProperty xlink:href="http://purl.org/net/concepts/O3" />
        <sos:observedProperty xlink:href="http://purl.org/net/concepts/CO" />
        <!-- End of observedProperty annotations -->

        <!-- FeatureOfInterest annotations, not injected -->
        <sos:featureOfInterest xlink:href="http://purl.org/net/concepts/river"/>
        <sos:featureOfInterest xlink:href="http://purl.org/net/concepts/weatherStation"/>
        <!-- End of featureOfInterest annotations -->

        <sos:responseFormat>text/xml;subtype="om/1.0.0"</sos:responseFormat>
        <sos:responseFormat>application/zip</sos:responseFormat>
        <sos:resultModel xmlns:ns="http://www.opengis.net/om/1.0">ns:Measurement</sos:resultModel>
        <sos:resultModel xmlns:ns="http://www.opengis.net/om/1.0">ns:Observation</sos:resultModel>
        <sos:responseMode>inline</sos:responseMode>
        <sos:responseMode>resultTemplate</sos:responseMode>
      </sos:ObservationOffering>
    </sos:ObservationOfferingList>
  </sos:Contents>
</sos:Capabilities>