Skip to content

Instantly share code, notes, and snippets.

@michimau
Created August 5, 2020 12:22
Show Gist options
  • Save michimau/828b1a9cfc8869d3593e7f832bde696c to your computer and use it in GitHub Desktop.
Save michimau/828b1a9cfc8869d3593e7f832bde696c to your computer and use it in GitHub Desktop.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX cr: <http://cr.eionet.europa.eu/ontologies/contreg.rdf#>
PREFIX aqd: <http://rdfdata.eionet.europa.eu/airquality/ontology/>
PREFIX aq: <http://reference.eionet.europa.eu/aq/ontology/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREfIX contreg: <http://cr.eionet.europa.eu/ontologies/contreg.rdf#>
SELECT DISTINCT
?inspireLabel
WHERE {
values ?envelope { <http://cdr.eionet.europa.eu/fr/eu/aqd/d/envxm98fq> }
?graph dcterms:isPartOf ?envelope .
?graph contreg:xmlSchema ?xmlSchema .
GRAPH ?graph {
{
?zone a aqd:AQD_Network .
} UNION {
?zone a aqd:AQD_Station .
} UNION {
?zone a aqd:AQD_SamplingPointProcess .
} UNION {
?zone a aqd:AQD_Sample .
} UNION {
?zone a aqd:AQD_RepresentativeArea .
} UNION {
?zone a aqd:AQD_SamplingPoint .
}
?zone aqd:inspireId ?inspireid .
?inspireid rdfs:label ?inspireLabel .
?inspireid aqd:namespace ?namespace .
FILTER (?namespace in ('FR.LCSQA-INERIS.AQ'))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment