@netwerk-digitaal-erfgoed/network-of-terms-catalog 9.9.0 → 9.11.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.
- package/build/getCatalog.d.ts.map +1 -1
- package/build/getCatalog.js +2 -4
- package/build/getCatalog.js.map +1 -1
- package/catalog/datasets/nmvw.jsonld +3 -3
- package/catalog/datasets/rkdartists.jsonld +2 -2
- package/catalog/queries/lookup/rkdartists.rq +49 -11
- package/catalog/queries/search/rkdartists.rq +51 -14
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCatalog.d.ts","sourceRoot":"","sources":["../src/getCatalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AAKpC,OAAO,EACL,OAAO,EAOR,MAAM,kDAAkD,CAAC;AAM1D,wBAAsB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAMhE;AAED,wBAAsB,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAoGlE;AAED;;;GAGG;AACH,wBAAsB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CASrE;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"getCatalog.d.ts","sourceRoot":"","sources":["../src/getCatalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AAKpC,OAAO,EACL,OAAO,EAOR,MAAM,kDAAkD,CAAC;AAM1D,wBAAsB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAMhE;AAED,wBAAsB,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAoGlE;AAED;;;GAGG;AACH,wBAAsB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CASrE;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAQ/D"}
|
package/build/getCatalog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
|
-
import rdfParser from 'rdf-parse';
|
|
2
|
+
import { rdfParser } from 'rdf-parse';
|
|
3
3
|
import { QueryEngine } from '@comunica/query-sparql-rdfjs';
|
|
4
4
|
import { Transform } from 'stream';
|
|
5
5
|
import { globby } from 'globby';
|
|
@@ -94,9 +94,7 @@ export async function fromFiles(directory) {
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
export async function fromFile(file) {
|
|
97
|
-
|
|
98
|
-
// @ts-ignore
|
|
99
|
-
const quadStream = (rdfParser.default ?? RdfParser)
|
|
97
|
+
const quadStream = rdfParser
|
|
100
98
|
.parse(fs.createReadStream(file), {
|
|
101
99
|
path: file,
|
|
102
100
|
})
|
package/build/getCatalog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCatalog.js","sourceRoot":"","sources":["../src/getCatalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,SAAS,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"getCatalog.js","sourceRoot":"","sources":["../src/getCatalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAC,SAAS,EAAoB,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAC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C,CAAC;IAC3C;QACE,KAAK,CAAC,EAAC,UAAU,EAAE,IAAI,EAAC,CAAC,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,UAAU,CACd,IAAc,EACd,QAAwB,EACxB,QAA2B;QAE3B,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,KAAK,8BAA8B,EAAE,CAAC;YAC5D,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAC3C,IAAI,CAAC,KAAK,EACV,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAC7C,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAE1B,QAAQ,EAAE,CAAC;IACb,CAAC;CACF;AAED,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;AACtC,MAAM,eAAe,GAAG,IAAI,eAAe,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
-
"@id": "https://data.
|
|
3
|
+
"@id": "https://data.colonialcollections.nl/nmvw/thesaurus",
|
|
4
4
|
"@type": "Dataset",
|
|
5
5
|
"name": [
|
|
6
6
|
{
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"inLanguage": "nl",
|
|
46
46
|
"distribution": [
|
|
47
47
|
{
|
|
48
|
-
"@id": "https://
|
|
48
|
+
"@id": "https://api.colonialcollections.nl/datasets/nmvw/thesaurus/services/thesaurus/sparql",
|
|
49
49
|
"@type": "DataDownload",
|
|
50
|
-
"contentUrl": "https://api.
|
|
50
|
+
"contentUrl": "https://api.colonialcollections.nl/datasets/nmvw/thesaurus/services/thesaurus/sparql",
|
|
51
51
|
"encodingFormat": "application/sparql-query",
|
|
52
52
|
"potentialAction": [
|
|
53
53
|
{
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"inLanguage": "nl",
|
|
34
34
|
"distribution": [
|
|
35
35
|
{
|
|
36
|
-
"@id": "https://
|
|
36
|
+
"@id": "https://api.rkd.triply.cc/datasets/rkd/RKD-SDO-Knowledge-Graph/sparql",
|
|
37
37
|
"@type": "DataDownload",
|
|
38
|
-
"contentUrl": "https://api.
|
|
38
|
+
"contentUrl": "https://api.rkd.triply.cc/datasets/rkd/RKD-SDO-Knowledge-Graph/services/Virtuoso/sparql",
|
|
39
39
|
"encodingFormat": "application/sparql-query",
|
|
40
40
|
"potentialAction": [
|
|
41
41
|
{
|
|
@@ -1,27 +1,65 @@
|
|
|
1
1
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
2
|
-
PREFIX schema: <
|
|
2
|
+
PREFIX schema: <https://schema.org/>
|
|
3
3
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
4
4
|
|
|
5
5
|
CONSTRUCT {
|
|
6
6
|
?uri a skos:Concept ;
|
|
7
|
-
skos:prefLabel ?
|
|
8
|
-
skos:altLabel ?
|
|
9
|
-
skos:scopeNote ?
|
|
10
|
-
rdfs:seeAlso ?
|
|
7
|
+
skos:prefLabel ?prefLabel ;
|
|
8
|
+
skos:altLabel ?altLabel ;
|
|
9
|
+
skos:scopeNote ?scopeNote ;
|
|
10
|
+
rdfs:seeAlso ?seeAlso .
|
|
11
11
|
}
|
|
12
12
|
WHERE {
|
|
13
13
|
# For example:
|
|
14
14
|
# Rembrandt: <https://data.rkd.nl/artists/66219>
|
|
15
15
|
# Vincent van Gogh: <https://data.rkd.nl/artists/32439>
|
|
16
16
|
VALUES ?uri { ?uris }
|
|
17
|
+
{
|
|
18
|
+
SELECT ?uri
|
|
19
|
+
(GROUP_CONCAT(DISTINCT ?schema_description; separator="; ") as ?descriptions)
|
|
20
|
+
(GROUP_CONCAT(DISTINCT ?birthPlace; separator="/") as ?birthPlaces)
|
|
21
|
+
(GROUP_CONCAT(DISTINCT ?deathPlace; separator="/") as ?deathPlaces)
|
|
22
|
+
(GROUP_CONCAT(DISTINCT ?additionalType; separator=", ") as ?additionalTypes)
|
|
23
|
+
WHERE {
|
|
24
|
+
?uri a ?type .
|
|
25
|
+
VALUES ?type { schema:Person schema:Organization }
|
|
17
26
|
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
OPTIONAL { ?uri schema:description ?schema_description . }
|
|
28
|
+
OPTIONAL { ?uri schema:birthPlace ?birthPlace .
|
|
29
|
+
FILTER(langMatches(lang(?birthPlace), "nl")) }
|
|
30
|
+
OPTIONAL { ?uri schema:deathPlace ?deathPlace .
|
|
31
|
+
FILTER(langMatches(lang(?deathPlace), "nl"))}
|
|
32
|
+
OPTIONAL { ?uri schema:additionalType ?additionalType .
|
|
33
|
+
FILTER(langMatches(lang(?additionalType), "nl"))}
|
|
20
34
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
35
|
+
} GROUP BY ?uri
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
OPTIONAL { ?uri schema:name ?prefLabel . }
|
|
39
|
+
OPTIONAL { ?uri schema:alternateName ?altLabel . }
|
|
40
|
+
OPTIONAL { ?uri schema:birthDate ?birthDate . }
|
|
41
|
+
OPTIONAL { ?uri schema:deathDate ?deathDate . }
|
|
42
|
+
|
|
43
|
+
BIND(
|
|
44
|
+
CONCAT(
|
|
45
|
+
IF(BOUND(?birthDate) || STRLEN(?birthPlaces) > 0 ,
|
|
46
|
+
CONCAT(
|
|
47
|
+
IF(BOUND(?birthDate), CONCAT(?birthDate, " "), ""),
|
|
48
|
+
IF(STRLEN(?birthPlaces) > 0, CONCAT("(", ?birthPlaces, ") "), ""),
|
|
49
|
+
IF(BOUND(?deathDate) || STRLEN(?deathPlaces) > 0," - "," - ; ")),
|
|
50
|
+
""),
|
|
51
|
+
IF(BOUND(?deathDate) || STRLEN(?deathPlaces) > 0,
|
|
52
|
+
CONCAT(
|
|
53
|
+
IF(BOUND(?birthDate) || STRLEN(?birthPlaces) > 0 , "", "- "),
|
|
54
|
+
IF(BOUND(?deathDate), CONCAT(?deathDate, " "), ""),
|
|
55
|
+
IF(STRLEN(?deathPlaces) > 0, CONCAT("(", ?deathPlaces, ")"), ""),
|
|
56
|
+
"; "),
|
|
57
|
+
""),
|
|
58
|
+
IF(STRLEN(?additionalTypes) > 0, CONCAT(?additionalTypes, ". "), ""),
|
|
59
|
+
IF(STRLEN(?descriptions) > 0, CONCAT(?descriptions, ". "), "")
|
|
60
|
+
) as ?scopeNote
|
|
61
|
+
)
|
|
24
62
|
BIND(STRAFTER(STR(?uri), "https://data.rkd.nl/artists/") AS ?identifier)
|
|
25
|
-
BIND(IRI(CONCAT("https://rkd.nl/explore/artists/", ?identifier)) AS ?
|
|
63
|
+
BIND(IRI(CONCAT("https://rkd.nl/explore/artists/", ?identifier)) AS ?seeAlso)
|
|
26
64
|
}
|
|
27
65
|
LIMIT 1000
|
|
@@ -1,28 +1,65 @@
|
|
|
1
1
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
2
|
-
PREFIX schema: <
|
|
2
|
+
PREFIX schema: <https://schema.org/>
|
|
3
3
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
4
4
|
|
|
5
5
|
CONSTRUCT {
|
|
6
6
|
?uri a skos:Concept ;
|
|
7
|
-
skos:prefLabel ?
|
|
8
|
-
skos:altLabel ?
|
|
9
|
-
skos:scopeNote ?
|
|
10
|
-
rdfs:seeAlso ?
|
|
7
|
+
skos:prefLabel ?prefLabel ;
|
|
8
|
+
skos:altLabel ?altLabel ;
|
|
9
|
+
skos:scopeNote ?scopeNote ;
|
|
10
|
+
rdfs:seeAlso ?seeAlso .
|
|
11
11
|
}
|
|
12
12
|
WHERE {
|
|
13
|
-
?uri a ?type .
|
|
14
|
-
VALUES ?type { schema:Person schema:Organization }
|
|
15
|
-
?uri ?name ?label .
|
|
16
|
-
VALUES ?name { schema:name schema:alternateName }
|
|
17
|
-
|
|
18
13
|
?uri ?predicate ?label .
|
|
19
14
|
?label <bif:contains> ?virtuosoQuery .
|
|
15
|
+
VALUES ?predicate { schema:name schema:alternateName }
|
|
16
|
+
|
|
17
|
+
{
|
|
18
|
+
SELECT ?uri
|
|
19
|
+
(GROUP_CONCAT(DISTINCT ?schema_description; separator="; ") as ?descriptions)
|
|
20
|
+
(GROUP_CONCAT(DISTINCT ?birthPlace; separator="/") as ?birthPlaces)
|
|
21
|
+
(GROUP_CONCAT(DISTINCT ?deathPlace; separator="/") as ?deathPlaces)
|
|
22
|
+
(GROUP_CONCAT(DISTINCT ?additionalType; separator=", ") as ?additionalTypes)
|
|
23
|
+
WHERE {
|
|
24
|
+
?uri a ?type .
|
|
25
|
+
VALUES ?type { schema:Person schema:Organization }
|
|
26
|
+
|
|
27
|
+
OPTIONAL { ?uri schema:description ?schema_description . }
|
|
28
|
+
OPTIONAL { ?uri schema:birthPlace ?birthPlace .
|
|
29
|
+
FILTER(langMatches(lang(?birthPlace), "nl")) }
|
|
30
|
+
OPTIONAL { ?uri schema:deathPlace ?deathPlace .
|
|
31
|
+
FILTER(langMatches(lang(?deathPlace), "nl"))}
|
|
32
|
+
OPTIONAL { ?uri schema:additionalType ?additionalType .
|
|
33
|
+
FILTER(langMatches(lang(?additionalType), "nl"))}
|
|
34
|
+
|
|
35
|
+
} GROUP BY ?uri
|
|
36
|
+
}
|
|
20
37
|
|
|
21
|
-
OPTIONAL { ?uri schema:name ?
|
|
22
|
-
OPTIONAL { ?uri schema:alternateName ?
|
|
23
|
-
OPTIONAL { ?uri schema:
|
|
38
|
+
OPTIONAL { ?uri schema:name ?prefLabel . }
|
|
39
|
+
OPTIONAL { ?uri schema:alternateName ?altLabel . }
|
|
40
|
+
OPTIONAL { ?uri schema:birthDate ?birthDate . }
|
|
41
|
+
OPTIONAL { ?uri schema:deathDate ?deathDate . }
|
|
24
42
|
|
|
43
|
+
BIND(
|
|
44
|
+
CONCAT(
|
|
45
|
+
IF(BOUND(?birthDate) || STRLEN(?birthPlaces) > 0 ,
|
|
46
|
+
CONCAT(
|
|
47
|
+
IF(BOUND(?birthDate), CONCAT(?birthDate, " "), ""),
|
|
48
|
+
IF(STRLEN(?birthPlaces) > 0, CONCAT("(", ?birthPlaces, ") "), ""),
|
|
49
|
+
IF(BOUND(?deathDate) || STRLEN(?deathPlaces) > 0," - "," - ; ")),
|
|
50
|
+
""),
|
|
51
|
+
IF(BOUND(?deathDate) || STRLEN(?deathPlaces) > 0,
|
|
52
|
+
CONCAT(
|
|
53
|
+
IF(BOUND(?birthDate) || STRLEN(?birthPlaces) > 0 , "", "- "),
|
|
54
|
+
IF(BOUND(?deathDate), CONCAT(?deathDate, " "), ""),
|
|
55
|
+
IF(STRLEN(?deathPlaces) > 0, CONCAT("(", ?deathPlaces, ")"), ""),
|
|
56
|
+
"; "),
|
|
57
|
+
""),
|
|
58
|
+
IF(STRLEN(?additionalTypes) > 0, CONCAT(?additionalTypes, ". "), ""),
|
|
59
|
+
IF(STRLEN(?descriptions) > 0, CONCAT(?descriptions, ". "), "")
|
|
60
|
+
) as ?scopeNote
|
|
61
|
+
)
|
|
25
62
|
BIND(STRAFTER(STR(?uri), "https://data.rkd.nl/artists/") AS ?identifier)
|
|
26
|
-
BIND(IRI(CONCAT("https://rkd.nl/explore/artists/", ?identifier)) AS ?
|
|
63
|
+
BIND(IRI(CONCAT("https://rkd.nl/explore/artists/", ?identifier)) AS ?seeAlso)
|
|
27
64
|
}
|
|
28
65
|
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.
|
|
3
|
+
"version": "9.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Catalog of Network of Terms datasets",
|
|
6
6
|
"repository": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@netwerk-digitaal-erfgoed/network-of-terms-query": "5.3.0",
|
|
49
49
|
"globby": "^14.0.2",
|
|
50
50
|
"memoize": "^10.0.0",
|
|
51
|
-
"rdf-parse": "^
|
|
51
|
+
"rdf-parse": "^3.0.0",
|
|
52
52
|
"rdf-store-stream": "^2.0.1"
|
|
53
53
|
}
|
|
54
54
|
}
|