@netwerk-digitaal-erfgoed/network-of-terms-catalog 5.5.0 → 5.5.4

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.
@@ -20,6 +20,10 @@ WHERE {
20
20
 
21
21
  ?uri a skos:Concept .
22
22
 
23
+ # Exclude terms from the 'Technische Lijsten', a concept scheme with terms that should only be used by NOB
24
+ FILTER NOT EXISTS {
25
+ ?uri skos:inScheme <https://data.niod.nl/WO2_Thesaurus/11183>
26
+ }
23
27
  OPTIONAL {
24
28
  ?uri skos:prefLabel ?prefLabel .
25
29
  FILTER(LANG(?prefLabel) = "nl")
@@ -15,12 +15,12 @@ WHERE {
15
15
  VALUES ?predicate { skos:prefLabel skos:altLabel }
16
16
 
17
17
  {
18
- FILTER(?booleanQuery)
18
+ FILTER(?virtuosoQuery)
19
19
  ?uri ?predicate ?label .
20
- ?label <bif:contains> ?booleanQuery .
20
+ ?label <bif:contains> ?virtuosoQuery .
21
21
  } UNION {
22
22
  # BC support.
23
- BIND(?booleanQuery as ?b)
23
+ BIND(?virtuosoQuery as ?b)
24
24
  FILTER(!BOUND(?b))
25
25
  ?uri ?predicate ?label .
26
26
  # Replace query "A B" with "A AND B", leaving queries "A AND B" or "A OR B" unchanged.
@@ -23,12 +23,12 @@ WHERE {
23
23
  FILTER(LANG(?label) = "nl")
24
24
 
25
25
  {
26
- FILTER(?booleanQuery)
26
+ FILTER(?virtuosoQuery)
27
27
  ?uri ?predicate ?label .
28
- ?label <bif:contains> ?booleanQuery .
28
+ ?label <bif:contains> ?virtuosoQuery .
29
29
  } UNION {
30
30
  # BC support.
31
- BIND(?booleanQuery as ?b)
31
+ BIND(?virtuosoQuery as ?b)
32
32
  FILTER(!BOUND(?b))
33
33
  ?uri ?predicate ?label .
34
34
  # Replace query "A B" with "A AND B", leaving queries "A AND B" or "A OR B" unchanged.
@@ -19,12 +19,12 @@ WHERE {
19
19
  FILTER(LANG(?label) = "nl")
20
20
 
21
21
  {
22
- FILTER(?booleanQuery)
22
+ FILTER(?virtuosoQuery)
23
23
  ?uri ?predicate ?label .
24
- ?label <bif:contains> ?booleanQuery .
24
+ ?label <bif:contains> ?virtuosoQuery .
25
25
  } UNION {
26
26
  # BC support.
27
- BIND(?booleanQuery as ?b)
27
+ BIND(?virtuosoQuery as ?b)
28
28
  FILTER(!BOUND(?b))
29
29
  ?uri ?predicate ?label .
30
30
  # Replace query "A B" with "A AND B", leaving queries "A AND B" or "A OR B" unchanged.
@@ -11,11 +11,20 @@ CONSTRUCT {
11
11
  }
12
12
  WHERE {
13
13
  ?uri a skos:Concept .
14
- ?uri ?predicate ?label .
15
- VALUES ?predicate { schema:name schema:keywords }
16
14
 
17
- # A 'FILTER (<bif:contains>, ...)' currently does not work due to https://github.com/comunica/comunica/issues/844
18
- ?label <bif:contains> ?query .
15
+ {
16
+ FILTER(?virtuosoQuery)
17
+ ?uri ?predicate ?label .
18
+ VALUES ?predicate { schema:name schema:keywords }
19
+ ?label <bif:contains> ?virtuosoQuery .
20
+ } UNION {
21
+ # BC support.
22
+ BIND(?virtuosoQuery as ?b)
23
+ FILTER(!BOUND(?b))
24
+ ?uri ?predicate ?label .
25
+ VALUES ?predicate { schema:name schema:keywords }
26
+ ?label <bif:contains> ?query .
27
+ }
19
28
 
20
29
  OPTIONAL {
21
30
  ?uri schema:name ?schema_name .
@@ -31,11 +31,19 @@ WHERE {
31
31
  # Require the presence of this property for quality purposes
32
32
  ?uri som:NDEREC ?nderec .
33
33
 
34
- ?uri ?predicate ?label .
35
- VALUES ?predicate { schema:name schema:alternateName }
36
-
37
- # A 'FILTER (<bif:contains>, ...)' currently does not work due to https://github.com/comunica/comunica/issues/844
38
- ?label <bif:contains> ?query .
34
+ {
35
+ FILTER(?virtuosoQuery)
36
+ ?uri ?predicate ?label .
37
+ VALUES ?predicate { schema:name schema:alternateName }
38
+ ?label <bif:contains> ?virtuosoQuery .
39
+ } UNION {
40
+ # BC support.
41
+ BIND(?virtuosoQuery as ?b)
42
+ FILTER(!BOUND(?b))
43
+ ?uri ?predicate ?label .
44
+ VALUES ?predicate { schema:name schema:alternateName }
45
+ ?label <bif:contains> ?query .
46
+ }
39
47
 
40
48
  OPTIONAL { ?uri schema:name ?schema_name }
41
49
  OPTIONAL { ?uri schema:alternateName ?schema_alternateName }
@@ -15,12 +15,12 @@ WHERE {
15
15
  ?uri a muziekweb:Genre .
16
16
 
17
17
  {
18
- FILTER(?booleanQuery)
18
+ FILTER(?virtuosoQuery)
19
19
  ?uri rdfs:label ?rdfs_label .
20
- ?rdfs_label <bif:contains> ?booleanQuery .
20
+ ?rdfs_label <bif:contains> ?virtuosoQuery .
21
21
  } UNION {
22
22
  # BC support.
23
- BIND(?booleanQuery as ?b)
23
+ BIND(?virtuosoQuery as ?b)
24
24
  FILTER(!BOUND(?b))
25
25
  ?uri rdfs:label ?rdfs_label .
26
26
  # Replace query "A B" with "A AND B", leaving queries "A AND B" or "A OR B" unchanged.
@@ -15,12 +15,12 @@ WHERE {
15
15
  VALUES ?predicate { skos:prefLabel skos:altLabel }
16
16
 
17
17
  {
18
- FILTER(?booleanQuery)
18
+ FILTER(?virtuosoQuery)
19
19
  ?uri ?predicate ?label .
20
- ?label <bif:contains> ?booleanQuery .
20
+ ?label <bif:contains> ?virtuosoQuery .
21
21
  } UNION {
22
22
  # BC support.
23
- BIND(?booleanQuery as ?b)
23
+ BIND(?virtuosoQuery as ?b)
24
24
  FILTER(!BOUND(?b))
25
25
  ?uri ?predicate ?label .
26
26
  # Replace query "A B" with "A AND B", leaving queries "A AND B" or "A OR B" unchanged.
@@ -16,12 +16,12 @@ WHERE {
16
16
  VALUES ?predicate { skos:prefLabel skos:altLabel }
17
17
 
18
18
  {
19
- FILTER(?booleanQuery)
19
+ FILTER(?virtuosoQuery)
20
20
  ?uri ?predicate ?label .
21
- ?label <bif:contains> ?booleanQuery .
21
+ ?label <bif:contains> ?virtuosoQuery .
22
22
  } UNION {
23
23
  # BC support.
24
- BIND(?booleanQuery as ?b)
24
+ BIND(?virtuosoQuery as ?b)
25
25
  FILTER(!BOUND(?b))
26
26
  ?uri ?predicate ?label .
27
27
  # Replace query "A B" with "A AND B", leaving queries "A AND B" or "A OR B" unchanged.
@@ -13,12 +13,12 @@ WHERE {
13
13
  VALUES ?predicate { rdfs:label schema:name schema:alternateName }
14
14
 
15
15
  {
16
- FILTER(?booleanQuery)
16
+ FILTER(?virtuosoQuery)
17
17
  ?uri ?predicate ?label .
18
- ?label <bif:contains> ?booleanQuery .
18
+ ?label <bif:contains> ?virtuosoQuery .
19
19
  } UNION {
20
20
  # BC support.
21
- BIND(?booleanQuery as ?b)
21
+ BIND(?virtuosoQuery as ?b)
22
22
  FILTER(!BOUND(?b))
23
23
  ?uri ?predicate ?label .
24
24
  # Replace query "A B" with "A AND B", leaving queries "A AND B" or "A OR B" unchanged.
@@ -17,13 +17,15 @@ WHERE {
17
17
  VALUES ?name { schema:name schema:alternateName }
18
18
 
19
19
  {
20
- FILTER(?booleanQuery)
20
+ FILTER(?virtuosoQuery)
21
21
  ?uri ?predicate ?label .
22
- ?label <bif:contains> ?booleanQuery .
22
+ ?label <bif:contains> ?virtuosoQuery .
23
23
  } UNION {
24
24
  # BC support.
25
- BIND(?booleanQuery as ?b)
26
- FILTER(!BOUND(?b))
25
+ # The RKD Virtuoso endpoint needs isLiteral() rather than !BOUND() because the latter still matches, throwing an
26
+ # error for queries with diacritics.
27
+ FILTER(!isLiteral(?virtuosoQuery))
28
+
27
29
  ?uri ?predicate ?label .
28
30
  # Replace query "A B" with "A AND B", leaving queries "A AND B" or "A OR B" unchanged.
29
31
  FILTER (<bif:contains> (?label,
@@ -13,6 +13,10 @@ CONSTRUCT {
13
13
  }
14
14
  WHERE {
15
15
  ?uri ?predicate ?label .
16
+ # Exclude terms from the 'Technische Lijsten', a concept scheme with terms that should only be used by NOB
17
+ FILTER NOT EXISTS {
18
+ ?uri skos:inScheme <https://data.niod.nl/WO2_Thesaurus/11183>
19
+ }
16
20
  VALUES ?predicate { skos:prefLabel skos:altLabel }
17
21
  FILTER(LANG(?label) = "nl")
18
22
  FILTER(CONTAINS(LCASE(?label), LCASE(?query)))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
3
- "version": "5.5.0",
3
+ "version": "5.5.4",
4
4
  "description": "Catalog of Network of Terms datasets",
5
5
  "repository": {
6
6
  "type": "git",