@netwerk-digitaal-erfgoed/network-of-terms-catalog 9.1.1 → 9.1.2
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/
|
|
44
|
+
"query": "file://catalog/queries/search/ied.rq"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"@type": "FindAction",
|
|
48
|
-
"query": "file://catalog/queries/lookup/
|
|
48
|
+
"query": "file://catalog/queries/lookup/ied.rq"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"@type": "Action",
|
|
@@ -0,0 +1,58 @@
|
|
|
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:exactMatch ?exactMatch_uri .
|
|
12
|
+
?broader_uri skos:prefLabel ?broader_prefLabel .
|
|
13
|
+
?narrower_uri skos:prefLabel ?narrower_prefLabel .
|
|
14
|
+
}
|
|
15
|
+
WHERE {
|
|
16
|
+
# For example:
|
|
17
|
+
# Concept: <https://data.indischherinneringscentrum.nl/ied/110950>
|
|
18
|
+
# Event: <https://data.indischherinneringscentrum.nl/ied/110991>
|
|
19
|
+
# Organization: <https://data.indischherinneringscentrum.nl/ied/103996>
|
|
20
|
+
VALUES ?uri { ?uris }
|
|
21
|
+
|
|
22
|
+
?uri a skos:Concept .
|
|
23
|
+
|
|
24
|
+
# Exclude terms from the 'Technische Lijsten', a concept scheme with terms that should only be used by NOB
|
|
25
|
+
FILTER NOT EXISTS {
|
|
26
|
+
?uri skos:inScheme <https://data.indischherinneringscentrum.nl/ied/100616>
|
|
27
|
+
}
|
|
28
|
+
OPTIONAL {
|
|
29
|
+
?uri skos:prefLabel ?prefLabel .
|
|
30
|
+
FILTER(LANG(?prefLabel) = "nl")
|
|
31
|
+
}
|
|
32
|
+
OPTIONAL {
|
|
33
|
+
?uri skos:altLabel ?altLabel .
|
|
34
|
+
FILTER(LANG(?altLabel) = "nl")
|
|
35
|
+
}
|
|
36
|
+
OPTIONAL {
|
|
37
|
+
?uri skos:hiddenLabel ?hiddenLabel .
|
|
38
|
+
FILTER(LANG(?hiddenLabel) = "nl")
|
|
39
|
+
}
|
|
40
|
+
OPTIONAL {
|
|
41
|
+
?uri skos:scopeNote ?scopeNote .
|
|
42
|
+
FILTER(LANG(?scopeNote) = "nl")
|
|
43
|
+
}
|
|
44
|
+
OPTIONAL {
|
|
45
|
+
?uri skos:broader ?broader_uri .
|
|
46
|
+
?broader_uri skos:prefLabel ?broader_prefLabel .
|
|
47
|
+
FILTER(LANG(?broader_prefLabel) = "nl")
|
|
48
|
+
}
|
|
49
|
+
OPTIONAL {
|
|
50
|
+
?uri skos:narrower ?narrower_uri .
|
|
51
|
+
?narrower_uri skos:prefLabel ?narrower_prefLabel .
|
|
52
|
+
FILTER(LANG(?narrower_prefLabel) = "nl")
|
|
53
|
+
}
|
|
54
|
+
OPTIONAL {
|
|
55
|
+
?uri skos:exactMatch ?exactMatch_uri . # Has no labels.
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
LIMIT 1000
|
|
@@ -0,0 +1,54 @@
|
|
|
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:exactMatch ?exactMatch_uri .
|
|
12
|
+
?broader_uri skos:prefLabel ?broader_prefLabel .
|
|
13
|
+
?narrower_uri skos:prefLabel ?narrower_prefLabel .
|
|
14
|
+
}
|
|
15
|
+
WHERE {
|
|
16
|
+
?uri ?predicate ?label .
|
|
17
|
+
# Exclude terms from the 'Technische Lijsten', a concept scheme with terms that should only be used by NOB
|
|
18
|
+
FILTER NOT EXISTS {
|
|
19
|
+
?uri skos:inScheme <https://data.indischherinneringscentrum.nl/ied/100616>
|
|
20
|
+
}
|
|
21
|
+
VALUES ?predicate { skos:prefLabel skos:altLabel }
|
|
22
|
+
FILTER(LANG(?label) = "nl")
|
|
23
|
+
FILTER(CONTAINS(LCASE(?label), LCASE(?query)))
|
|
24
|
+
OPTIONAL {
|
|
25
|
+
?uri skos:prefLabel ?prefLabel .
|
|
26
|
+
FILTER(LANG(?prefLabel) = "nl" )
|
|
27
|
+
}
|
|
28
|
+
OPTIONAL {
|
|
29
|
+
?uri skos:scopeNote ?scopeNote .
|
|
30
|
+
FILTER(LANG(?scopeNote) = "nl")
|
|
31
|
+
}
|
|
32
|
+
OPTIONAL {
|
|
33
|
+
?uri skos:altLabel ?altLabel .
|
|
34
|
+
FILTER(LANG(?altLabel) = "nl")
|
|
35
|
+
}
|
|
36
|
+
OPTIONAL {
|
|
37
|
+
?uri skos:hiddenLabel ?hiddenLabel .
|
|
38
|
+
FILTER(LANG(?hiddenLabel) = "nl")
|
|
39
|
+
}
|
|
40
|
+
OPTIONAL {
|
|
41
|
+
?uri skos:broader ?broader_uri .
|
|
42
|
+
?broader_uri skos:prefLabel ?broader_prefLabel .
|
|
43
|
+
FILTER(LANG(?broader_prefLabel) = "nl")
|
|
44
|
+
}
|
|
45
|
+
OPTIONAL {
|
|
46
|
+
?uri skos:narrower ?narrower_uri .
|
|
47
|
+
?narrower_uri skos:prefLabel ?narrower_prefLabel .
|
|
48
|
+
FILTER(LANG(?narrower_prefLabel) = "nl")
|
|
49
|
+
}
|
|
50
|
+
OPTIONAL {
|
|
51
|
+
?uri skos:exactMatch ?exactMatch_uri . # Has no labels.
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
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.1.
|
|
3
|
+
"version": "9.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Catalog of Network of Terms datasets",
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@types/n3": "^1.16.4",
|
|
34
34
|
"@types/rdf-ext": "^2.5.0",
|
|
35
35
|
"gts": "^5.2.0",
|
|
36
|
-
"jsonld-streaming-parser": "^3.
|
|
36
|
+
"jsonld-streaming-parser": "^3.4.0",
|
|
37
37
|
"rdf-data-factory": "^1.1.2",
|
|
38
38
|
"rdf-ext": "^2.5.1",
|
|
39
39
|
"rdf-validate-shacl": "^0.5.3"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@comunica/bindings-factory": "^2.7.0",
|
|
47
47
|
"@comunica/query-sparql-rdfjs": "^2.10.2",
|
|
48
|
-
"@netwerk-digitaal-erfgoed/network-of-terms-query": "5.0.
|
|
48
|
+
"@netwerk-digitaal-erfgoed/network-of-terms-query": "5.0.1",
|
|
49
49
|
"globby": "^14.0.1",
|
|
50
50
|
"rdf-parse": "^2.3.3",
|
|
51
51
|
"rdf-store-stream": "^2.0.1"
|