Alignment Semantic Mediation Ontology

58 Copyright © 2015 Open Geospatial Consortium. :incidentId-mapping, :date-mapping, :time-mapping, :label-title-mapping, :description-mapping, :incidentType-mapping, :hasAddress-mapping, :AddressMapping, :city-mapping, :fullAddress-mapping, :state-mapping, :hasPosition-mapping, :PointMapping, :latitude-mapping, :longitude-mapping, :asWKT-mapping. :HSWG-EMS-IncidentMapping a ogc-map:ClassMapping , sparql-ext:Mapping ; ogc-map:sourceType hswg:HSWGIncident ; ogc-map:targetType ems:EMSIncident ; ogc-map:expression [ a fn:ChangeNamespace ; fn:targetNamespace http:ows.usersmarts.comtestbed11dataems ] . :date-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :HSWG-EMS-IncidentMapping ; ogc-map:sourcePredicate hswg:incidentDate ; ogc-map:targetPredicate ems:incidentDate . :time-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :HSWG-EMS-IncidentMapping ; ogc-map:sourcePredicate hswg:incidentTime ; ogc-map:targetPredicate ems:incidentTime . :label-title-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :HSWG-EMS-IncidentMapping ; ogc-map:sourcePredicate hswg:title ; ogc-map:targetPredicate rdfs:label . :incidentId-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; Copyright © 2015 Open Geospatial Consortium. 59 ogc-map:context :HSWG-EMS-IncidentMapping ; ogc-map:sourcePredicate hswg:incidentNumber ; ogc-map:targetPredicate ems:incidentId . :description-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :HSWG-EMS-IncidentMapping ; ogc-map:sourcePredicate hswg:summary ; ogc-map:targetPredicate ems:description . :incidentType-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :HSWG-EMS-IncidentMapping ; ogc-map:sourcePredicate hswg:incidentType ; ogc-map:targetPredicate ems:incidentType ; ogc-map:expression [ a fn:skosMatch ; sparql-ext:arg2 http:www.opengis.nettaxonomyemsEMSIncidentTaxonomy ] . :hasAddress-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :HSWG-EMS-IncidentMapping ; ogc-map:sourcePredicate hswg:hasAddress ; ogc-map:targetPredicate ems:address . :AddressMapping a ogc-map:ClassMapping , sparql-ext:Mapping ; ogc-map:sourceType hswg:Address ; ogc-map:targetType vcard:Address. :city-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :AddressMapping ; ogc-map:sourcePredicate hswg:city ; ogc-map:targetPredicate vcard:locality . :fullAddress-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :AddressMapping ; ogc-map:sourcePredicate hswg:fullAddress ; ogc-map:targetPredicate vcard:street-address . 60 Copyright © 2015 Open Geospatial Consortium. :state-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :AddressMapping ; ogc-map:sourcePredicate hswg:state ; ogc-map:targetPredicate vcard:region . :hasPosition-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :HSWG-EMS-IncidentMapping ; ogc-map:sourcePredicate hswg:location ; ogc-map:targetPredicate ems:position . :PointMapping a ogc-map:ClassMapping , sparql-ext:Mapping ; ogc-map:sourceType geosparql:Point; ogc-map:targetType geosparql:Point. :latitude-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :PointMapping ; ogc-map:sourcePredicate wgs84:lat ; ogc-map:targetPredicate wgs84:lat . :longitude-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :PointMapping ; ogc-map:sourcePredicate wgs84:long ; ogc-map:targetPredicate wgs84:long . :asWKT-mapping a ogc-map:PropertyMapping-1-1 , sparql-ext:Mapping; ogc-map:context :PointMapping ; ogc-map:sourcePredicate geosparql:asWKT ; ogc-map:targetPredicate geosparql:asWKT .

11.6 Extensions functions to SPARQL

During this testbed, we implemented a number of function extensions to support the SPARQL extension vocabulary and the semantic mediation for SKOS taxonomy. Copyright © 2015 Open Geospatial Consortium. 61

11.6.1 geosparql:skosMatch

To support semantic mediation for SKOS taxonomies, we define a new function skosMatch that could be leveraged by a SPARQL endpoint. The function is defined in the following namespace http:www.opengis.nettestbed11deffunctiongeosparql extension of SPARQL for testbed 11. The function is defined as: skosMatchsrcConceptURI, targetConceptSchemeURI and returns the best match for the source concept in the target concept scheme. The function first check if there is an exactMatch, if not check if there is closeMatch. If not check if there is a broadMatch, if not returns null. This function allows to do multiple tests into one single query, simplifying the client implementations.

11.6.1.1 Examples

Here some example of queries you can test under the following endpoint: http:ows.usersmarts.comportrayalapisparql which provides a SPARQL client UI. Example1: Find the matching concept from EMS portClosure in HSWG Taxonomy. PREFIX symbol: http:www.opengis.netontportrayalsymbol PREFIX style: http:www.opengis.netontportrayalstyle PREFIX geosparql-ext: http:www.opengis.nettestbed11deffunctiongeosparql PREFIX ems: http:www.opengis.nettaxonomyems PREFIX hswg: http:www.fgdc.govHSWGtaxonomyincidents PREFIX geosparql: http:www.opengis.netontgeosparql DESCRIBE ? match WHERE { BIND geosparql-ext: skosMatch ems:ems.incident.marine.portClosure, hswg:Incident AS ? match } The following result is returned: prefix geosparql: http:www.opengis.netontgeosparql . prefix rdfs: http:www.w3.org200001rdf-schema . prefix symbol: http:www.opengis.netontportrayalsymbol . prefix style: http:www.opengis.netontportrayalstyle . prefix hswg: http:www.fgdc.govHSWGtaxonomyincidents . prefix dct: http:purl.orgdcterms .