@netwerk-digitaal-erfgoed/network-of-terms-catalog 6.0.2 → 6.0.3
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
PREFIX schema: <http://schema.org/>
|
|
2
2
|
# Do not remove this prefix - KB data uses old version of SKOS
|
|
3
3
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
4
|
+
PREFIX void: <http://rdfs.org/ns/void#>
|
|
4
5
|
|
|
5
6
|
CONSTRUCT {
|
|
6
7
|
?uri a skos:Concept ;
|
|
@@ -14,7 +15,8 @@ CONSTRUCT {
|
|
|
14
15
|
skos:scopeNote ?schema_description ;
|
|
15
16
|
skos:broader ?broader_uri ;
|
|
16
17
|
skos:narrower ?narrower_uri ;
|
|
17
|
-
skos:related ?related_uri
|
|
18
|
+
skos:related ?related_uri ;
|
|
19
|
+
skos:inScheme ?datasetUri .
|
|
18
20
|
?broader_uri skos:prefLabel ?broader_prefLabel .
|
|
19
21
|
?narrower_uri skos:prefLabel ?narrower_prefLabel .
|
|
20
22
|
?related_uri skos:prefLabel ?related_prefLabel .
|
|
@@ -29,6 +31,10 @@ WHERE {
|
|
|
29
31
|
?uri a ?type .
|
|
30
32
|
VALUES ?type { skos:Concept schema:Person schema:Organization } .
|
|
31
33
|
|
|
34
|
+
?uri schema:mainEntityOfPage/schema:isPartOf | foaf:isPrimaryTopicOf/void:inDataset ?datasetUriRaw .
|
|
35
|
+
# In the future, KB will split off the STCN printers dataset from the main STCN dataset. In the meantime, we have to translate the latter into the former.
|
|
36
|
+
BIND(IF(?datasetUriRaw = <http://data.bibliotheken.nl/id/dataset/stcn>, <http://data.bibliotheken.nl/id/dataset/stcn/printers>, ?datasetUriRaw) as ?datasetUri) .
|
|
37
|
+
|
|
32
38
|
# For Brinkman
|
|
33
39
|
OPTIONAL {
|
|
34
40
|
OPTIONAL {
|
|
@@ -8,7 +8,8 @@ CONSTRUCT {
|
|
|
8
8
|
skos:scopeNote ?scopeNote ;
|
|
9
9
|
skos:broader ?broader_uri ;
|
|
10
10
|
skos:narrower ?narrower_uri ;
|
|
11
|
-
skos:related ?related_uri
|
|
11
|
+
skos:related ?related_uri ;
|
|
12
|
+
skos:inScheme ?datasetUri .
|
|
12
13
|
?broader_uri skos:prefLabel ?broader_prefLabel .
|
|
13
14
|
?narrower_uri skos:prefLabel ?narrower_prefLabel .
|
|
14
15
|
?related_uri skos:prefLabel ?related_prefLabel .
|
|
@@ -17,7 +18,8 @@ WHERE {
|
|
|
17
18
|
|
|
18
19
|
VALUES ?uri { ?uris }
|
|
19
20
|
|
|
20
|
-
?uri a skos:Concept
|
|
21
|
+
?uri a skos:Concept ;
|
|
22
|
+
skos:inScheme ?datasetUri .
|
|
21
23
|
|
|
22
24
|
OPTIONAL {
|
|
23
25
|
?uri skos:prefLabel ?prefLabel .
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.3",
|
|
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.1",
|
|
49
49
|
"globby": "^13.1.1",
|
|
50
50
|
"rdf-parse": "^2.0.0",
|
|
51
51
|
"rdf-store-stream": "^1.1.0"
|