@netwerk-digitaal-erfgoed/network-of-terms-catalog 9.0.2 → 9.1.1

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",
@@ -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
@@ -36,6 +36,7 @@ CONSTRUCT {
36
36
  OPTIONAL {
37
37
  ?uri owl:sameAs ?exactMatch_uri .
38
38
  ?exactMatch_uri sdo:name ?exactMatch_prefLabel .
39
+ FILTER(?exactMatch_uri != ?uri)
39
40
  }
40
41
  }
41
42
  LIMIT 100
@@ -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
@@ -51,5 +51,6 @@ CONSTRUCT {
51
51
  OPTIONAL {
52
52
  ?uri owl:sameAs ?exactMatch_uri .
53
53
  ?exactMatch_uri sdo:name ?exactMatch_prefLabel .
54
+ FILTER(?exactMatch_uri != ?uri)
54
55
  }
55
56
  } ORDER BY DESC(?score) LIMIT 100
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
3
- "version": "9.0.2",
3
+ "version": "9.1.1",
4
4
  "type": "module",
5
5
  "description": "Catalog of Network of Terms datasets",
6
6
  "repository": {
@@ -48,6 +48,6 @@
48
48
  "@netwerk-digitaal-erfgoed/network-of-terms-query": "5.0.0",
49
49
  "globby": "^14.0.1",
50
50
  "rdf-parse": "^2.3.3",
51
- "rdf-store-stream": "^2.0.0"
51
+ "rdf-store-stream": "^2.0.1"
52
52
  }
53
53
  }