Skip to content

Commit

Permalink
NIeuwe query NEN3300 concepten
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinusVonhof committed Jul 25, 2023
1 parent 1eede0f commit 9051d8b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions model/NEN3300_Concepten.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Lees NEN 3300 concepten (20230725)

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

#PREFIX gwsw: <http://data.gwsw.nl/1.6/totaal/>
PREFIX gwsw: <{{&version}}>

SELECT DISTINCT ?uri ?naam ?synoniemen ?definitie ?datumStart
WHERE
{
?uri rdfs:seeAlso ?definitie .
FILTER (CONTAINS(?definitie, "[NEN") && CONTAINS(?definitie, "3300"))

optional {
?uri rdfs:label ?labNL
FILTER(lang(?labNL) = "nl")
}
optional {
?uri rdfs:label ?labEN
FILTER(lang(?labEN) != "nl")
}
BIND (COALESCE(?labNL, ?labEN) as ?naam)

{ # subquery voor synoniemen
SELECT ?uri (GROUP_CONCAT(?altLabel; separator = " / ") as ?synoniemen)
WHERE
{
OPTIONAL {
?uri skos:altLabel ?altLabel .
}
?uri gwsw:hasDateStart ?dat . # dummy: nodig voor GraphDB
}
GROUP BY ?uri # GraphDB: groeperen incl ?lab, anders verschijnt AltLabels soms dubbel
}
?uri gwsw:hasDateStart ?datumStart .
}

0 comments on commit 9051d8b

Please sign in to comment.