InsertSensor SOS 2.0 Transactional Interface

22

5.4.3 SOS 2.0 Transactional Interface

For inserting the gathered data into the SOS 2.0 for Social Media the transactional interface of the SOS 2.0 interface standard was used. This way the implementation of harvesting and the storage is connected via interoperable and well-established methods. This section provides a brief overview on the required interface interactions.

5.4.3.1 InsertSensor

Prior to the insertion of actual observations knowledge of the procedure to the SOS service needs to be provided. The user who posted the social media entry has been mapped to the procedure in the Social Media model see section 5.3.1. The following request illustrates an exemplary InsertSensor request for providing these metadata. Listing 2 - InsertSensor Example ?xml version=1.0 encoding=UTF-8? env:Envelope xmlns:env = http:www.w3.org200305soap-envelope xmlns:xsi = http:www.w3.org2001XMLSchema-instance xsi:schemaLocation = http:www.w3.org200305soap-envelope http:www.w3.org200305soap-envelopesoap-envelope.xsd env:Body swes:InsertSensor service = SOS version = 2.0.0 xmlns:swes = http:www.opengis.netswes2.0 xmlns:sos = http:www.opengis.netsos2.0 xmlns:swe = http:www.opengis.netswe1.0.1 xmlns:sml = http:www.opengis.netsensorML 1.0.1 xmlns:gml = http:www.opengis.netgml xmlns:xlink = http:www.w3.org1999xlink xmlns:xsi = http:www.w3.org2001XMLSchema- instance xsi:schemaLocation = http:www.opengis.net sos2.0 http:schemas.opengis.netsos2.0 sosInsertSensor.xsd http:www.opengis.netswes2.0 http:schemas.opengis.netswes2.0 swes.xsd swes:procedureDescriptionFormat http:www.opengis.netsensorML1.0.1 swes:procedureDescriptionFormat swes:procedureDescription sml:SensorML version = 1.0.1 sml:member sml:System sml:identification sml:IdentifierList sml:identifier name = uniqueID sml:Term definition = urn:ogc:def: identifier:OGC:1.0:uniqueID sml:value {procedure} sml:value sml:Term 23 sml:identifier sml:identifier name = longName sml:Term definition = urn:ogc:def: identifier:OGC:1.0:longName sml:value Procedure {procedure} sml:value sml:Term sml:identifier sml:identifier name = shortName sml:Term definition = urn:ogc:def: identifier:OGC:1.0:shortName sml:value Procedure {procedure} sml:value sml:Term sml:identifier sml:IdentifierList sml:identification sml:capabilities name = offerings swe:SimpleDataRecord swe:field name = Offering for {offering} swe:Text definition = urn:ogc:def: identifier:OGC:offeringID gml:name Offering for {offering} gml:name swe:value {offering} swe:value swe:Text swe:field swe:SimpleDataRecord sml:capabilities sml:capabilities name = featuresOfInterest swe:SimpleDataRecord swe:field name = featureOfInterestID swe:Text swe:value http:www.52north.orgsos featureOfInterestworldusca san_francisco swe:value swe:Text swe:field swe:SimpleDataRecord sml:capabilities sml:inputs sml:InputList sml:input name = test_observable _property_9 swe:ObservableProperty definition = http:www.opengis.netdef propertyhumanVisualPerception sml:input sml:InputList sml:inputs sml:outputs 24 sml:OutputList sml:output name = humanVisualPerception swe:Category definition = http:www.opengis.netdef propertyhumanVisualPerception swe:codeSpace xlink:href = NOT_DEFINED swe:Category sml:output sml:OutputList sml:outputs sml:System sml:member sml:SensorML swes:procedureDescription swes:observableProperty http:www.opengis.netdefpropertyhumanVisualPerception swes:observableProperty swes:metadata sos:SosInsertionMetadata sos:observationType http:www.opengis.netdefobservationTypeOGC- OM2.0OM_CategoryObservation sos:observationType sos:featureOfInterestType http:www.opengis.netdefsamplingFeatureTypeOGC- OM2.0SF_SamplingPoint sos:featureOfInterestType sos:SosInsertionMetadata swes:metadata swes:InsertSensor env:Body env:Envelope In the case of Social Media the offering was defined as the overall Social Media platform e.g. Twitter, Instagram or Flickr.

5.4.3.2 InsertObservation