Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lokasjonsvokabular fra EU #201

Open
NilsOveTen opened this issue Jun 18, 2024 · 1 comment
Open

Lokasjonsvokabular fra EU #201

NilsOveTen opened this issue Jun 18, 2024 · 1 comment
Labels

Comments

@NilsOveTen
Copy link
Contributor

NilsOveTen commented Jun 18, 2024

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
Copy link
Contributor Author

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'
  )
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant