@netwerk-digitaal-erfgoed/network-of-terms-catalog 6.9.0 → 6.10.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.
@@ -1,5 +1,6 @@
1
1
  PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
2
2
  PREFIX justskos: <http://justskos.org/ns/core#>
3
+ PREFIX text: <http://jena.apache.org/text#>
3
4
 
4
5
  CONSTRUCT {
5
6
  ?uri a skos:Concept ;
@@ -15,36 +16,10 @@ CONSTRUCT {
15
16
  ?related_uri skos:prefLabel ?related_prefLabel .
16
17
  }
17
18
  WHERE {
18
- {
19
- ?uri skos:inScheme ?datasetUri .
20
- ?uri ?predicate ?label ;
21
- justskos:status ?status .
22
- VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel }
23
- FILTER(LANG(?label) = "nl")
24
- FILTER(?status IN ('approved', 'candidate'))
25
-
26
- # single word query, match case insensitive
27
- FILTER regex(?query, "^[^ ]+$")
28
- FILTER CONTAINS(LCASE(?label), LCASE(?query))
29
- }
30
- UNION
31
- {
32
- ?uri skos:inScheme ?datasetUri .
33
- ?uri ?predicate ?label ;
34
- justskos:status ?status .
35
- VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel }
36
- FILTER(LANG(?label) = "nl")
37
- FILTER(?status IN ('approved', 'candidate'))
38
-
39
- # double word query, whitespace separator
40
- FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$")
41
-
42
- BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1)
43
- BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2)
44
-
45
- # search case insensitive using an AND construct for the query terms
46
- FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) )
47
- }
19
+ ?uri text:query ?query .
20
+ ?uri skos:inScheme ?datasetUri ;
21
+ justskos:status ?status .
22
+ FILTER(?status IN ('approved', 'candidate'))
48
23
 
49
24
  OPTIONAL {
50
25
  ?uri skos:prefLabel ?prefLabel .
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
3
- "version": "6.9.0",
3
+ "version": "6.10.0",
4
4
  "type": "module",
5
5
  "description": "Catalog of Network of Terms datasets",
6
6
  "repository": {