@netwerk-digitaal-erfgoed/network-of-terms-catalog 6.2.4 → 6.2.7
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.
|
@@ -60,7 +60,7 @@ WHERE {
|
|
|
60
60
|
OPTIONAL { ?uri schema:givenName ?schema_givenName }
|
|
61
61
|
BIND(
|
|
62
62
|
COALESCE(
|
|
63
|
-
IF(
|
|
63
|
+
IF(STRLEN(?schema_familyName) > 0 && STRLEN(?schema_givenName) > 0, CONCAT(?schema_familyName, ", ", ?schema_givenName), ?noName),
|
|
64
64
|
?schema_familyName,
|
|
65
65
|
?schema_givenName,
|
|
66
66
|
?schema_name # Fallback
|
|
@@ -19,8 +19,9 @@ WHERE {
|
|
|
19
19
|
?label <bif:contains> ?virtuosoQuery .
|
|
20
20
|
} UNION {
|
|
21
21
|
# BC support.
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
# This Virtuoso endpoint needs STRLEN() rather than !BOUND() because the latter still matches, throwing an error
|
|
23
|
+
# for queries with diacritics or multiple words.
|
|
24
|
+
FILTER(STRLEN(?virtuosoQuery) = 0)
|
|
24
25
|
?uri ?predicate ?label .
|
|
25
26
|
VALUES ?predicate { schema:name schema:keywords }
|
|
26
27
|
?label <bif:contains> ?query .
|
|
@@ -38,8 +38,9 @@ WHERE {
|
|
|
38
38
|
?label <bif:contains> ?virtuosoQuery .
|
|
39
39
|
} UNION {
|
|
40
40
|
# BC support.
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
# This Virtuoso endpoint needs STRLEN() rather than !BOUND() because the latter still matches, throwing an error
|
|
42
|
+
# for queries with diacritics or multiple words.
|
|
43
|
+
FILTER(STRLEN(?virtuosoQuery) = 0)
|
|
43
44
|
?uri ?predicate ?label .
|
|
44
45
|
VALUES ?predicate { schema:name schema:alternateName }
|
|
45
46
|
?label <bif:contains> ?query .
|
|
@@ -53,7 +54,7 @@ WHERE {
|
|
|
53
54
|
OPTIONAL { ?uri schema:givenName ?schema_givenName }
|
|
54
55
|
BIND(
|
|
55
56
|
COALESCE(
|
|
56
|
-
IF(
|
|
57
|
+
IF(STRLEN(?schema_familyName) > 0 && STRLEN(?schema_givenName) > 0, CONCAT(?schema_familyName, ", ", ?schema_givenName), ?noName),
|
|
57
58
|
?schema_familyName,
|
|
58
59
|
?schema_givenName,
|
|
59
60
|
?schema_name # Fallback
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Catalog of Network of Terms datasets",
|
|
6
6
|
"repository": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@comunica/bindings-factory": "^2.2.0",
|
|
47
47
|
"@comunica/query-sparql-rdfjs": "^2.0.6",
|
|
48
|
-
"@netwerk-digitaal-erfgoed/network-of-terms-query": "2.1.
|
|
48
|
+
"@netwerk-digitaal-erfgoed/network-of-terms-query": "2.1.3",
|
|
49
49
|
"globby": "^13.1.1",
|
|
50
50
|
"rdf-parse": "^2.0.0",
|
|
51
51
|
"rdf-store-stream": "^1.1.0"
|