@netwerk-digitaal-erfgoed/network-of-terms-catalog 6.11.0 → 6.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,7 +24,9 @@ WHERE {
|
|
|
24
24
|
# Limit results to places (P), localities (L), administrative levels (A) and water surfaces (H).
|
|
25
25
|
VALUES ?featureClass { gn:P gn:L gn:A gn:H }
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
# Select results that start with the search string
|
|
28
|
+
# Using contains() leads to too much noise
|
|
29
|
+
FILTER(STRSTARTS(LCASE(?name), LCASE($query)))
|
|
28
30
|
|
|
29
31
|
OPTIONAL {
|
|
30
32
|
?uri gn:alternateName ?altLabel .
|
package/package.json
CHANGED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
2
|
-
PREFIX justskos: <http://justskos.org/ns/core#>
|
|
3
|
-
CONSTRUCT {
|
|
4
|
-
?uri a skos:Concept ;
|
|
5
|
-
skos:prefLabel ?prefLabel ;
|
|
6
|
-
skos:altLabel ?altLabel ;
|
|
7
|
-
skos:hiddenLabel ?hiddenLabel ;
|
|
8
|
-
skos:scopeNote ?scopeNote .
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
WHERE {
|
|
12
|
-
?uri skos:inScheme <http://data.beeldengeluid.nl/gtaa/Persoonsnamen> .
|
|
13
|
-
?uri skos:prefLabel|skos:altLabel|skos:hiddenLabel ?label ;
|
|
14
|
-
justskos:status ?status .
|
|
15
|
-
|
|
16
|
-
FILTER(LANG(?label) = "nl")
|
|
17
|
-
FILTER(?status IN ('approved', 'candidate'))
|
|
18
|
-
|
|
19
|
-
# single word query
|
|
20
|
-
FILTER regex(?query, "^[^ ]+$")
|
|
21
|
-
FILTER CONTAINS(LCASE(?label), LCASE(?query))
|
|
22
|
-
|
|
23
|
-
?uri skos:prefLabel ?prefLabel .
|
|
24
|
-
FILTER(LANG(?prefLabel) = "nl" )
|
|
25
|
-
|
|
26
|
-
OPTIONAL {
|
|
27
|
-
?uri skos:altLabel ?altLabel .
|
|
28
|
-
FILTER(LANG(?altLabel) = "nl")
|
|
29
|
-
}
|
|
30
|
-
OPTIONAL {
|
|
31
|
-
?uri skos:hiddenLabel ?hiddenLabel .
|
|
32
|
-
FILTER(LANG(?hiddenLabel) = "nl")
|
|
33
|
-
}
|
|
34
|
-
OPTIONAL {
|
|
35
|
-
?uri skos:scopeNote ?scopeNote .
|
|
36
|
-
FILTER(LANG(?scopeNote) = "nl")
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
LIMIT 50
|
|
40
|
-
|