@netwerk-digitaal-erfgoed/network-of-terms-catalog 9.0.1 → 9.1.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.
@@ -41,11 +41,11 @@
41
41
  "potentialAction": [
42
42
  {
43
43
  "@type": "SearchAction",
44
- "query": "file://catalog/queries/search/poolparty.rq"
44
+ "query": "file://catalog/queries/search/cht.rq"
45
45
  },
46
46
  {
47
47
  "@type": "FindAction",
48
- "query": "file://catalog/queries/lookup/poolparty.rq"
48
+ "query": "file://catalog/queries/lookup/cht.rq"
49
49
  },
50
50
  {
51
51
  "@type": "Action",
@@ -17,7 +17,6 @@ CONSTRUCT {
17
17
  skos:exactMatch ?exactMatch_uri .
18
18
  ?broader_uri skos:prefLabel ?broader_prefLabel .
19
19
  ?narrower_uri skos:prefLabel ?narrower_prefLabel .
20
- ?exactMatch_uri skos:prefLabel ?exactMatch_prefLabel .
21
20
  }
22
21
  WHERE {
23
22
  # For example:
@@ -54,10 +53,8 @@ WHERE {
54
53
  ?narrower_uri_skosxl skosxl:literalForm ?narrower_prefLabel .
55
54
  }
56
55
  OPTIONAL {
57
- ?uri skos:exactMatch ?exactMatch_uri .
58
- ?exactMatch_uri skosxl:prefLabel ?exactMatch_uri_skosxl .
59
- ?exactMatch_uri_skosxl dcterms:language aat:300388256 . # Dutch (language)
60
- ?exactMatch_uri_skosxl skosxl:literalForm ?exactMatch_prefLabel .
56
+ ?uri skos:exactMatch ?exactMatch_uri . # Has no labels.
57
+ FILTER(?exactMatch_uri != ?uri) # Exclude self-reference.
61
58
  }
62
59
  }
63
60
  LIMIT 1000
@@ -0,0 +1,66 @@
1
+ PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
2
+
3
+ CONSTRUCT {
4
+ ?uri a skos:Concept ;
5
+ skos:prefLabel ?prefLabel ;
6
+ skos:altLabel ?altLabel ;
7
+ skos:hiddenLabel ?hiddenLabel ;
8
+ skos:scopeNote ?scopeNote ;
9
+ skos:broader ?broader_uri ;
10
+ skos:narrower ?narrower_uri ;
11
+ skos:related ?related_uri ;
12
+ skos:exactMatch ?exactMatch_uri .
13
+ ?broader_uri skos:prefLabel ?broader_prefLabel .
14
+ ?narrower_uri skos:prefLabel ?narrower_prefLabel .
15
+ ?related_uri skos:prefLabel ?related_prefLabel .
16
+ ?exactMatch_uri skos:prefLabel ?exactMatch_prefLabel .
17
+ }
18
+ WHERE {
19
+ # For example:
20
+ # Aardewerk: <https://data.cultureelerfgoed.nl/term/id/abr/71e411bf-8645-4420-98a4-b8746574b002>
21
+ # Aardewerk: <https://data.cultureelerfgoed.nl/term/id/cht/dfbf8107-09f9-49c9-8118-8e79b7613723>
22
+ VALUES ?uri { ?uris }
23
+
24
+ ?uri a skos:Concept .
25
+
26
+ OPTIONAL {
27
+ ?uri skos:prefLabel ?prefLabel .
28
+ FILTER(LANG(?prefLabel) = "nl")
29
+ }
30
+ OPTIONAL {
31
+ ?uri skos:altLabel ?altLabel .
32
+ FILTER(LANG(?altLabel) = "nl")
33
+ }
34
+ OPTIONAL {
35
+ ?uri skos:hiddenLabel ?hiddenLabel .
36
+ FILTER(LANG(?hiddenLabel) = "nl")
37
+ }
38
+ OPTIONAL {
39
+ ?uri skos:scopeNote ?scopeNote .
40
+ FILTER(LANG(?scopeNote) = "nl")
41
+ }
42
+ OPTIONAL {
43
+ ?uri skos:broader ?broader_uri .
44
+ ?broader_uri skos:prefLabel ?broader_prefLabel .
45
+ FILTER(LANG(?broader_prefLabel) = "nl")
46
+ }
47
+ OPTIONAL {
48
+ ?uri skos:narrower ?narrower_uri .
49
+ ?narrower_uri skos:prefLabel ?narrower_prefLabel .
50
+ FILTER(LANG(?narrower_prefLabel) = "nl")
51
+ }
52
+ OPTIONAL {
53
+ ?uri skos:related ?related_uri .
54
+ ?related_uri skos:prefLabel ?related_prefLabel .
55
+ FILTER(LANG(?related_prefLabel) = "nl")
56
+ }
57
+ OPTIONAL {
58
+ ?uri skos:exactMatch ?exactMatch_uri .
59
+ FILTER(!STRSTARTS(STR(?exactMatch_uri), "https://data.cultureelerfgoed.nl/term/id/rn"))
60
+ OPTIONAL {
61
+ ?exactMatch_uri skos:prefLabel ?exactMatch_prefLabel .
62
+ FILTER(LANG(?exactMatch_prefLabel) = "nl")
63
+ }
64
+ }
65
+ }
66
+ LIMIT 1000
@@ -60,10 +60,8 @@ WHERE {
60
60
  ?narrower_uri_skosxl skosxl:literalForm ?narrower_prefLabel .
61
61
  }
62
62
  OPTIONAL {
63
- ?uri skos:exactMatch ?exactMatch_uri .
64
- ?exactMatch_uri skosxl:prefLabel ?exactMatch_uri_skosxl .
65
- ?exactMatch_uri_skosxl dcterms:language aat:300388256 . # Dutch (language)
66
- ?exactMatch_uri_skosxl skosxl:literalForm ?exactMatch_prefLabel .
63
+ ?uri skos:exactMatch ?exactMatch_uri . # Has no labels.
64
+ FILTER(?exactMatch_uri != ?uri) # Exclude self-reference.
67
65
  }
68
66
  }
69
67
  LIMIT 1000
@@ -19,7 +19,6 @@ CONSTRUCT {
19
19
  skos:exactMatch ?exactMatch_uri .
20
20
  ?broader_uri skos:prefLabel ?broader_prefLabel .
21
21
  ?narrower_uri skos:prefLabel ?narrower_prefLabel .
22
- ?exactMatch_uri skos:prefLabel ?exactMatch_prefLabel .
23
22
  }
24
23
  WHERE {
25
24
  ?uri luc:term ?query ;
@@ -60,10 +59,8 @@ WHERE {
60
59
  ?narrower_uri_skosxl skosxl:literalForm ?narrower_prefLabel .
61
60
  }
62
61
  OPTIONAL {
63
- ?uri skos:exactMatch ?exactMatch_uri .
64
- ?exactMatch_uri skosxl:prefLabel ?exactMatch_uri_skosxl .
65
- ?exactMatch_uri_skosxl dcterms:language aat:300388256 . # Dutch (language)
66
- ?exactMatch_uri_skosxl skosxl:literalForm ?exactMatch_prefLabel .
62
+ ?uri skos:exactMatch ?exactMatch_uri . # Has no labels.
63
+ FILTER(?exactMatch_uri != ?uri) # Exclude self-reference.
67
64
  }
68
65
  }
69
66
  LIMIT 1000
@@ -19,7 +19,6 @@ CONSTRUCT {
19
19
  skos:exactMatch ?exactMatch_uri .
20
20
  ?broader_uri skos:prefLabel ?broader_prefLabel .
21
21
  ?narrower_uri skos:prefLabel ?narrower_prefLabel .
22
- ?exactMatch_uri skos:prefLabel ?exactMatch_prefLabel .
23
22
  }
24
23
  WHERE {
25
24
  ?uri luc:term ?query ;
@@ -60,10 +59,8 @@ WHERE {
60
59
  ?narrower_uri_skosxl skosxl:literalForm ?narrower_prefLabel .
61
60
  }
62
61
  OPTIONAL {
63
- ?uri skos:exactMatch ?exactMatch_uri .
64
- ?exactMatch_uri skosxl:prefLabel ?exactMatch_uri_skosxl .
65
- ?exactMatch_uri_skosxl dcterms:language aat:300388256 . # Dutch (language)
66
- ?exactMatch_uri_skosxl skosxl:literalForm ?exactMatch_prefLabel .
62
+ ?uri skos:exactMatch ?exactMatch_uri . # Has no labels.
63
+ FILTER(?exactMatch_uri != ?uri) # Exclude self-reference.
67
64
  }
68
65
  }
69
66
  LIMIT 1000
@@ -57,6 +57,7 @@ WHERE {
57
57
  }
58
58
  OPTIONAL {
59
59
  ?uri skos:exactMatch ?exactMatch_uri .
60
+ FILTER(!STRSTARTS(STR(?exactMatch_uri), "https://data.cultureelerfgoed.nl/term/id/rn"))
60
61
  OPTIONAL {
61
62
  ?exactMatch_uri skos:prefLabel ?exactMatch_prefLabel .
62
63
  FILTER(LANG(?exactMatch_prefLabel) = "nl")
@@ -57,6 +57,7 @@ WHERE {
57
57
  }
58
58
  OPTIONAL {
59
59
  ?uri skos:exactMatch ?exactMatch_uri .
60
+ FILTER(!STRSTARTS(STR(?exactMatch_uri), "https://data.cultureelerfgoed.nl/term/id/rn"))
60
61
  OPTIONAL {
61
62
  ?exactMatch_uri skos:prefLabel ?exactMatch_prefLabel .
62
63
  FILTER(LANG(?exactMatch_prefLabel) = "nl")
@@ -0,0 +1,63 @@
1
+ PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
2
+
3
+ CONSTRUCT {
4
+ ?uri a skos:Concept ;
5
+ skos:prefLabel ?prefLabel ;
6
+ skos:altLabel ?altLabel ;
7
+ skos:hiddenLabel ?hiddenLabel ;
8
+ skos:scopeNote ?scopeNote ;
9
+ skos:broader ?broader_uri ;
10
+ skos:narrower ?narrower_uri ;
11
+ skos:related ?related_uri ;
12
+ skos:exactMatch ?exactMatch_uri .
13
+ ?broader_uri skos:prefLabel ?broader_prefLabel .
14
+ ?narrower_uri skos:prefLabel ?narrower_prefLabel .
15
+ ?related_uri skos:prefLabel ?related_prefLabel .
16
+ ?exactMatch_uri skos:prefLabel ?exactMatch_prefLabel .
17
+ }
18
+ WHERE {
19
+ ?uri ?predicate ?label .
20
+ VALUES ?predicate { skos:prefLabel skos:altLabel }
21
+ FILTER(LANG(?label) = "nl")
22
+ FILTER(CONTAINS(LCASE(?label), LCASE(?query)))
23
+ OPTIONAL {
24
+ ?uri skos:prefLabel ?prefLabel .
25
+ FILTER(LANG(?prefLabel) = "nl")
26
+ }
27
+ OPTIONAL {
28
+ ?uri skos:altLabel ?altLabel .
29
+ FILTER(LANG(?altLabel) = "nl")
30
+ }
31
+ OPTIONAL {
32
+ ?uri skos:hiddenLabel ?hiddenLabel .
33
+ FILTER(LANG(?hiddenLabel) = "nl")
34
+ }
35
+ OPTIONAL {
36
+ ?uri skos:scopeNote ?scopeNote .
37
+ FILTER(LANG(?scopeNote) = "nl")
38
+ }
39
+ OPTIONAL {
40
+ ?uri skos:broader ?broader_uri .
41
+ ?broader_uri skos:prefLabel ?broader_prefLabel .
42
+ FILTER(LANG(?broader_prefLabel) = "nl")
43
+ }
44
+ OPTIONAL {
45
+ ?uri skos:narrower ?narrower_uri .
46
+ ?narrower_uri skos:prefLabel ?narrower_prefLabel .
47
+ FILTER(LANG(?narrower_prefLabel) = "nl")
48
+ }
49
+ OPTIONAL {
50
+ ?uri skos:related ?related_uri .
51
+ ?related_uri skos:prefLabel ?related_prefLabel .
52
+ FILTER(LANG(?related_prefLabel) = "nl")
53
+ }
54
+ OPTIONAL {
55
+ ?uri skos:exactMatch ?exactMatch_uri .
56
+ FILTER(!STRSTARTS(STR(?exactMatch_uri), "https://data.cultureelerfgoed.nl/term/id/rn"))
57
+ OPTIONAL {
58
+ ?exactMatch_uri skos:prefLabel ?exactMatch_prefLabel .
59
+ FILTER(LANG(?exactMatch_prefLabel) = "nl")
60
+ }
61
+ }
62
+ }
63
+ LIMIT 1000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
3
- "version": "9.0.1",
3
+ "version": "9.1.0",
4
4
  "type": "module",
5
5
  "description": "Catalog of Network of Terms datasets",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "jsonld-streaming-parser": "^3.3.0",
37
37
  "rdf-data-factory": "^1.1.2",
38
38
  "rdf-ext": "^2.5.1",
39
- "rdf-validate-shacl": "^0.5.1"
39
+ "rdf-validate-shacl": "^0.5.3"
40
40
  },
41
41
  "bugs": {
42
42
  "url": "https://github.com/netwerk-digitaal-erfgoed/network-of-terms-catalog/issues"