74
Copyright © 2015 Open Geospatial Consortium.
query SPARQL query to execute
against the model string
1
12.1.6.2 Response
The response format depends of the types of query. SPARQL-Results in XML and JSON format , CSV, TSV, RDF,TTL, N3,JSON-LD are supported.
12.1.6.3 Example
http:ows.usersmarts.commediatoralignmentssparql
12.1.7 Endpoint: alignmentsinstances
Description: List the instances of the alignment available at present only one for HSWG to EMS
12.1.7.1 Request
HTTP Method: GET
Table 29 summarizes the query parameters supported by the endpoint.
Table 29 Query Parameters for alignmentsinstances endpoint
Name Definition
Type Multiplicity
srcOntology The url of the source ontology
url encoded 0..1
targetOntology The url of the target ontology
url encoded 0..1
name name of the alignment to search
String 0..1
12.1.7.2 Response
The response returns instances of mediation:Alignment in RDFXML, TTL, N3 and JSON-LD format.
12.1.7.3 Examples
The following query returns all the alignment instances supported by the service.
http:ows.usersmarts.commediatoralignmentsinstances
Copyright © 2015 Open Geospatial Consortium.
75 The following query finds the alignments from the HSWG Incident ontology to the target
EMS Incident ontology. The URLs of the ontologies are URL encoded in the query.
http:ows.usersmarts.commediatoralignmentsinstances?srcOntology=http3A2F2Fwww.opengi s.net2Ftestbed112Font2Fincident2Fhswg23targetOntology=http3A2F2Fwww.opengi
s.net2Ftestbed112Font2Fincident2Fems23
The following query finds the alignment with the name equals to HSWG2EMS.
http:ows.usersmarts.commediatoralignmentsinstances?name=HSWG2EMS
The response of all three requests returns the same representation in TTL format as only one alignment was implemented for the testbed.
base http:www.opengis.nettaxonomyems . prefix ogc-map:
http:www.opengis.nettestbed11ontgeosparqlmappingcore . prefix sd: http:www.w3.orgnssparql-service-description .
prefix natural-events: http:www.fgdc.govHSWGtaxonomynatural- events .
prefix vcard: http:www.w3.org2006vcardns . prefix ems: http:www.opengis.nettaxonomyems .
prefix lda: http:www.knowledgesmarts.comontologieslda . prefix incidents: http:www.fgdc.govHSWGtaxonomyincidents .
prefix geosparql-fn: http:www.opengis.nettestbed11deffunctiongeosparql .
prefix rdfs: http:www.w3.org200001rdf-schema . prefix geosparql: http:www.opengis.netontgeosparql .
prefix dct: http:purl.orgdcterms . prefix mediation:
http:www.opengis.nettestbed11ontgeosparqlmediation . prefix owl: http:www.w3.org200207owl .
prefix xsd: http:www.w3.org2001XMLSchema . prefix rdf: http:www.w3.org19990222-rdf-syntax-ns .
prefix wgs84: http:www.w3.org200301geowgs84_pos . prefix spin: http:spinrdf.orgspin .
prefix sparql-ext: http:www.opengis.nettestbed11ontgeosparqlextensions .
prefix fn: http:www.opengis.nettestbed11ontgeosparqlextfunctionscore .
prefix skos: http:www.w3.org200402skoscore . prefix incident: http:www.opengis.netontemergencyincident .
http:ows.usersmarts.commediatormappingsHSWG2EMSMappingHSWG-EMS- Alignment
a mediation:Alignment ; rdfs:comment Alignment between HSWG Incident and
EMS Incident ; rdfs:label Alignment between HSWG Incident and
EMS Incident ; mediation:alignmentName HSWG2EMS ;
mediation:hasMapping http:ows.usersmarts.commediatormappingsHSWG2EMSMappingcity-
mapping , http:ows.usersmarts.commediatormappingsHSWG2EMSMappingasWKT-