@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.
@@ -5,7 +5,7 @@
5
5
  "name": [
6
6
  {
7
7
  "@language": "nl",
8
- "@value": "GeoNames: geografische namen in Nederland en België"
8
+ "@value": "GeoNames: geografische namen in Nederland, België en Duitsland"
9
9
  }
10
10
  ],
11
11
  "creator": [
@@ -31,7 +31,7 @@
31
31
  "potentialAction": [
32
32
  {
33
33
  "@type": "SearchAction",
34
- "query": "file://catalog/queries/search/gtaa-persoonsnamen.rq"
34
+ "query": "file://catalog/queries/search/gtaa.rq"
35
35
  },
36
36
  {
37
37
  "@type": "FindAction",
@@ -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
- FILTER(CONTAINS(LCASE(?name), LCASE($query)))
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
3
- "version": "6.11.0",
3
+ "version": "6.13.0",
4
4
  "type": "module",
5
5
  "description": "Catalog of Network of Terms datasets",
6
6
  "repository": {
@@ -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
-