Endpoint: symbols Image Matters Semantic Portrayal Service

Copyright © 2015 Open Geospatial Consortium. 85 http:ows.usersmarts.comportrayalapisymbols?symbolSetURI=http3A2F2Fww w.opengis.net2Ftestbed2F112Fcci2Fems2Fsymbols23EMSSymbolSet A sample of the response in TTL follows: prefix rdfs: http:www.w3.org200001rdf-schema . prefix symbol: http:www.opengis.netontportrayalsymbol . prefix dct: http:purl.orgdcterms . prefix skos: http:www.w3.org200402skoscore . http:www.opengis.nettestbed11cciemssymbolsems.incident.airQual ity-symbol a symbol:Symbol ; rdfs:label airQuality ; dct:identifier ems.incident.airQuality ; symbol:definition http:www.opengis.nettestbed11cciemssymbolsems.incident.airQual ity-symbolDefinition ; symbol:denotes http:www.opengis.nettaxonomyemsems.incident.airQuality ; symbol:specification https:cms.masas- x.ca.s3.amazonaws.comEMS_Symbology_v1.0.pdf ; symbol:symbolSet http:www.opengis.nettestbed11cciemssymbolsEMSSymbolSet ; skos:notation ems.incident.airQualityhttp:www.opengis.nettestbed11cciemss ymbolsemsNotation . http:www.opengis.nettestbed11cciemssymbolsems.incident.animalH ealth-symbol a symbol:Symbol ; rdfs:label animalHealth ; dct:identifier ems.incident.animalHealth ; symbol:definition http:www.opengis.nettestbed11cciemssymbolsems.incident.animalH ealth-symbolDefinition ; symbol:denotes http:www.opengis.nettaxonomyemsems.incident.animalHealth ; symbol:specification https:cms.masas- x.ca.s3.amazonaws.comEMS_Symbology_v1.0.pdf ; symbol:symbolSet http:www.opengis.nettestbed11cciemssymbolsEMSSymbolSet ; skos:notation ems.incident.animalHealthhttp:www.opengis.nettestbed11cciems symbolsemsNotation . http:www.opengis.nettestbed11cciemssymbolsems.incident.animalH ealth.animalDieOff-symbol a symbol:Symbol ; rdfs:label animalDieOff ; dct:identifier ems.incident.animalHealth.animalDieOff ; 86 Copyright © 2015 Open Geospatial Consortium. symbol:definition http:www.opengis.nettestbed11cciemssymbolsems.incident.animalH ealth.animalDieOff-symbolDefinition ; symbol:denotes http:www.opengis.nettaxonomyemsems.incident.animalHealth.animalDi eOff ; symbol:specification https:cms.masas- x.ca.s3.amazonaws.comEMS_Symbology_v1.0.pdf ; symbol:symbolSet http:www.opengis.nettestbed11cciemssymbolsEMSSymbolSet ; skos:notation ems.incident.animalHealth.animalDieOffhttp:www.opengis.nettestb ed11cciemssymbolsemsNotation . ….. Here an example to fetch two symbols descriptions http:ows.usersmarts.comportrayalapisymbols?uri=http3A2F2Fwww.opengis.ne t2Ftestbed2F112Fcci2Fems2Fsymbols23ems.incident.airQuality- symboluri=http3A2F2Fwww.opengis.net2Ftestbed2F112Fcci2Fems2F symbols23ems.incident.animalHealth-symbol The response in TTL is the following: prefix rdfs: http:www.w3.org200001rdf-schema . prefix symbol: http:www.opengis.netontportrayalsymbol . prefix dct: http:purl.orgdcterms . prefix skos: http:www.w3.org200402skoscore . http:www.opengis.nettestbed11cciemssymbolsems.incident.airQual ity-symbol a symbol:Symbol ; rdfs:label airQuality ; dct:identifier ems.incident.airQuality ; symbol:definition http:www.opengis.nettestbed11cciemssymbolsems.incident.airQual ity-symbolDefinition ; symbol:denotes http:www.opengis.nettaxonomyemsems.incident.airQuality ; symbol:specification https:cms.masas- x.ca.s3.amazonaws.comEMS_Symbology_v1.0.pdf ; symbol:symbolSet http:www.opengis.nettestbed11cciemssymbolsEMSSymbolSet ; skos:notation ems.incident.airQualityhttp:www.opengis.nettestbed11cciemss ymbolsemsNotation . http:www.opengis.nettestbed11cciemssymbolsems.incident.animalH ealth-symbol a symbol:Symbol ; rdfs:label animalHealth ; Copyright © 2015 Open Geospatial Consortium. 87 dct:identifier ems.incident.animalHealth ; symbol:definition http:www.opengis.nettestbed11cciemssymbolsems.incident.animalH ealth-symbolDefinition ; symbol:denotes http:www.opengis.nettaxonomyemsems.incident.animalHealth ; symbol:specification https:cms.masas- x.ca.s3.amazonaws.comEMS_Symbology_v1.0.pdf ; symbol:symbolSet http:www.opengis.nettestbed11cciemssymbolsEMSSymbolSet ; skos:notation ems.incident.animalHealthhttp:www.opengis.nettestbed11cciems symbolsemsNotation .

12.2.5 Endpoint: sparql

Description: The service provides a standard SPARQL endpoint based on W3C SPARQL protocol to query the model containing all the portrayal information managed by the server.

12.2.5.1 Request

HTTP Method: GET The query parameters for the endpoint are summarized in Table 33. They are aligned with standard SPARQL protocol. The SPARQL query is executed against the alignment model. Table 33 Query parameters for sparql endpoint Name Definition Type Multiplicity query SPARQL query to execute against the portrayal service model string 1

12.2.5.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.2.5.3 Examples

A SPARQL client was provided at http:ows.usersmarts.comportrayalapisparql to test different queries. The endpoint was used programmatically by the Geomatys WPS to generate SLD documents from a given Style. Queries were sent under the following form: 88 Copyright © 2015 Open Geospatial Consortium. http:ows.usersmarts.comportrayalapisparql?query=your encoded sparql query Here some sample queries that could be sent to the server: The following query describes the list of SymbolSets available in the knowledge base PREFIX symbol:http:www.opengis.netontportrayalsymbol DESCRIBE ?symbolSet WHERE { ?symbolSet a symbol:SymbolSet. } The following query lists the symbols from EMS with label and notation PREFIX symbol:http:www.opengis.netontportrayalsymbol PREFIX dct: http:purl.orgdcterms PREFIX rdfs: http:www.w3.org200001rdf-schema PREFIX skos: http:www.w3.org200402skoscore SELECT ?symbol ?label ?notation WHERE { ?symbol a symbol:Symbol; rdfs:label ?label; skos:notation ?notation; symbol:symbolSet http:www.opengis.nettestbed11cciemssymbolsEMSSymbolSet. } Figure 13 SPARQL Client response shows the response in the SPARQL client.