Informasjonsforvaltning / fdk-reference-data

Apache License 2.0
0 stars 0 forks source link

Lokasjonsvokabular fra EU #201

Open NilsOveTen opened 2 weeks ago

NilsOveTen commented 2 weeks ago

ref https://data.norge.no/specification/dcat-ap-no#Skal-brukes-for-spatial og https://data.norge.no/specification/modelldcat-ap-no#Skal-brukes-for-spatial

Disse tre vokabularene skal brukes for dct:spatial: http://publications.europa.eu/resource/authority/continent http://publications.europa.eu/resource/authority/country http://publications.europa.eu/resource/authority/place

Per nå støttes ingen av de i data.norge, for å gjøre det må de først legges til her i reference-data.

NilsOveTen commented 1 week ago

forslag til sparql:

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX atres: <http://publications.europa.eu/resource/authority/>
CONSTRUCT {
  ?continent a dct:Location .
  ?continent dct:identifier ?code .
  ?continent dct:title ?prefLabel .
} WHERE {
  ?continent skos:inScheme atres:continent .
  ?continent a skos:Concept .
  ?continent dc:identifier ?code .
  FILTER(?code != 'OP_DATPRO') .
  ?continent skos:prefLabel ?prefLabel .
  FILTER(
    LANG(?prefLabel) = 'en' ||
    LANG(?prefLabel) = 'no' ||
    LANG(?prefLabel) = 'nb' ||
    LANG(?prefLabel) = 'nn'
  )
}