Architecture REST API Overview

66 Copyright © 2015 Open Geospatial Consortium. functions GET Get all the functions currently registered with the service. RDF,TTL, N3,JSON- LD mappingstypes GET Get all the mappings types available in the service RDF,TTL, N3,JSON- LD alignmentsmodel GET Get the model containing all the alignments, mappings and supporting taxonomies RDF,TTL, N3,JSON- LD alignmentssparql GET SPARQL endpoint to query the alignment model RDF,XML ,JSON- LD, CSV, TSV, SPARQL- RESULTS XML and JSON alignmentsinstances GET List all the instances of Alignments available RDF,TTL, N3,JSON- LD alignmentsinstances{name} GET Get the alignment with the given name RDF,TTL, N3,JSON- LD alignmentsinstances{name}mediator GET POST Mediate a model using the alignment with the given name RDF,TTL, N3,JSON- LD

12.1.3 Endpoint: functions

Description: Get all the functions currently registered in the system based on SPARQL extensions vocabulary. The functions can be filtered by name using the label parameter. The model can be returned in TTL, N3, RDFXML or JSON-LD formats using content negotiation or file extension using the SPARQL Extension ontology. Copyright © 2015 Open Geospatial Consortium. 67

12.1.3.1 Request

HTTP Method: GET Table 26 summarizes the query parameters accepted by the endpoint. Table 26 Query Parameters for functions endpoint Name Definition Type Multiplicity label name of the function string 0..1

12.1.3.2 Response

The response returns functions defined in SPARQL Extension ontology in TTL, RDFXML, N3 and JSON-LD.

12.1.3.3 Examples

To get all the functions available in the service, the following request can be done: http:ows.usersmarts.commediatorfunctions default Turtle format. prefix rdfs: http:www.w3.org200001rdf-schema . prefix sd: http:www.w3.orgnssparql-service-description . prefix owl: http:www.w3.org200207owl . prefix xsd: http:www.w3.org2001XMLSchema . prefix rdf: http:www.w3.org19990222-rdf-syntax-ns . prefix sparql-ext: http:www.opengis.nettestbed11ontgeosparqlextensions . http:www.opengis.nettestbed11ontgeosparqlextfunctionscoreskos Match a owl:Class , sparql-ext:Function ; rdfs:comment Get the closest match for a given concept in a target concept scheme. ; rdfs:label skosMatch ; rdfs:subClassOf sparql-ext:FunctionCall ; sparql-ext:body [ a sparql- ext:Select , sparql-ext:Query ; sparql-ext:queryLanguage sd:SPARQL11Query ; sparql-ext:textForm PREFIX geosparql:http:www.opengis.nettestbed11deffunctiongeosparql\r \n\r\nSELECT ?x\r\nWHERE {\r\n BINDgeosparql:skosMatch?arg1,?arg2 as ?x\r\n} ] ; sparql-ext:hasParameter [ a sparql- ext:Parameter ; rdfs:comment The target concept scheme ;