@netwerk-digitaal-erfgoed/network-of-terms-catalog 5.8.1 → 5.10.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/README.md +6 -3
- package/build/catalog.d.ts.map +1 -1
- package/build/catalog.js +7 -3
- package/build/catalog.js.map +1 -1
- package/catalog/datasets/abr.jsonld +10 -0
- package/catalog/datasets/adamlink-straten.jsonld +10 -0
- package/catalog/datasets/brinkman.jsonld +10 -0
- package/catalog/datasets/cht.jsonld +10 -0
- package/catalog/datasets/eurovoc.jsonld +10 -0
- package/catalog/datasets/gtaa-classificatie.jsonld +10 -0
- package/catalog/datasets/gtaa-genres.jsonld +10 -0
- package/catalog/datasets/gtaa-geografische-namen.jsonld +10 -0
- package/catalog/datasets/gtaa-namen.jsonld +10 -0
- package/catalog/datasets/gtaa-onderwerpen-beng.jsonld +10 -0
- package/catalog/datasets/gtaa-onderwerpen.jsonld +10 -0
- package/catalog/datasets/gtaa-persoonsnamen.jsonld +10 -0
- package/catalog/datasets/muziekschatten-onderwerpen.jsonld +10 -0
- package/catalog/datasets/muziekschatten-personen.jsonld +10 -0
- package/catalog/datasets/mw-genresstijlen.jsonld +10 -0
- package/catalog/datasets/mw-personengroepen.jsonld +10 -0
- package/catalog/datasets/nmvw.jsonld +10 -0
- package/catalog/datasets/nta.jsonld +10 -0
- package/catalog/datasets/rkdartists.jsonld +10 -0
- package/catalog/datasets/stcn-drukkers.jsonld +10 -0
- package/catalog/datasets/wo2thesaurus.jsonld +10 -0
- package/catalog/queries/search/gtaa-persoonsnamen.rq +16 -57
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,9 +15,12 @@ additions specific to the Network of Terms:
|
|
|
15
15
|
- `schema:url` is used for the HTTP URI prefix of terms in the dataset, e.g. `http://vocab.getty.edu/aat/` for Getty
|
|
16
16
|
resources. This prefix is needed when clients look up terms by their URI in the Network of Terms: the Network then has
|
|
17
17
|
to know which source to consult to retrieve the term.
|
|
18
|
-
- Each distribution has two [`schema:potentialAction`](https://schema.org/potentialAction)s:
|
|
19
|
-
[`schema:SearchAction`](https://schema.org/SearchAction) and
|
|
20
|
-
|
|
18
|
+
- Each distribution has two or more [`schema:potentialAction`](https://schema.org/potentialAction)s:
|
|
19
|
+
- a [`schema:SearchAction`](https://schema.org/SearchAction) and
|
|
20
|
+
a [`schema:FindAction`](https://schema.org/FindAction), both with a [`schema:query`](https://schema.org/query)
|
|
21
|
+
property that points to the queries directory;
|
|
22
|
+
- optionally, a number of [`schema:Action`](https://schema.org/Action)s that configure the features that the Network
|
|
23
|
+
of Terms provides for the distribution, such as [Reconciliation](../network-of-terms-reconciliation).
|
|
21
24
|
|
|
22
25
|
The [queries](catalog/queries) directory contains SPARQL queries for retrieving terms from the datasets. There are
|
|
23
26
|
two types of queries:
|
package/build/catalog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAC;AAO9B,OAAO,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAC;AAO9B,OAAO,EACL,OAAO,EAMR,MAAM,kDAAkD,CAAC;AAG1D,wBAAsB,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC,CAQvD;AAED,wBAAsB,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAqEpE;AAED;;;GAGG;AACH,wBAAsB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAIvE;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAU/D"}
|
package/build/catalog.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Transform } from 'stream';
|
|
|
5
5
|
import { dirname, resolve } from 'path';
|
|
6
6
|
import { globby } from 'globby';
|
|
7
7
|
import { storeStream } from 'rdf-store-stream';
|
|
8
|
-
import { Catalog, Dataset, IRI, Organization, SparqlDistribution, } from '@netwerk-digitaal-erfgoed/network-of-terms-query';
|
|
8
|
+
import { Catalog, Dataset, Feature, IRI, Organization, SparqlDistribution, } from '@netwerk-digitaal-erfgoed/network-of-terms-query';
|
|
9
9
|
import { fileURLToPath } from 'url';
|
|
10
10
|
export async function defaultCatalog() {
|
|
11
11
|
const directory = resolve(dirname(fileURLToPath(import.meta.url)), '../', 'catalog/');
|
|
@@ -17,7 +17,7 @@ export async function fromStore(store) {
|
|
|
17
17
|
const properties = '?dataset ?name ?creator ?creatorName ?creatorAlternateName ?distribution ?endpointUrl ?searchQuery ?lookupQuery ?alternateName';
|
|
18
18
|
const query = `
|
|
19
19
|
PREFIX schema: <http://schema.org/>
|
|
20
|
-
SELECT ${properties} (GROUP_CONCAT(?url) as ?url) WHERE {
|
|
20
|
+
SELECT ${properties} (GROUP_CONCAT(?url) as ?url) (COALESCE(GROUP_CONCAT(?features), "") as ?features) WHERE {
|
|
21
21
|
?dataset a schema:Dataset ;
|
|
22
22
|
schema:name ?name ;
|
|
23
23
|
schema:creator ?creator ;
|
|
@@ -31,6 +31,7 @@ export async function fromStore(store) {
|
|
|
31
31
|
schema:potentialAction
|
|
32
32
|
[a schema:SearchAction ; schema:query ?searchQuery ] ,
|
|
33
33
|
[a schema:FindAction ; schema:query ?lookupQuery ] .
|
|
34
|
+
OPTIONAL { ?distribution schema:potentialAction [ schema:target [ schema:actionApplication ?features ] ]. }
|
|
34
35
|
}
|
|
35
36
|
GROUP BY ${properties}
|
|
36
37
|
ORDER BY LCASE(?name)`;
|
|
@@ -47,7 +48,10 @@ export async function fromStore(store) {
|
|
|
47
48
|
.map((url) => new IRI(url)), [
|
|
48
49
|
new Organization(new IRI(bindings.get('creator').value), bindings.get('creatorName').value, bindings.get('creatorAlternateName').value),
|
|
49
50
|
], [
|
|
50
|
-
new SparqlDistribution(new IRI(bindings.get('distribution').value), new IRI(bindings.get('endpointUrl').value), bindings.get('searchQuery').value, bindings.get('lookupQuery').value
|
|
51
|
+
new SparqlDistribution(new IRI(bindings.get('distribution').value), new IRI(bindings.get('endpointUrl').value), bindings.get('searchQuery').value, bindings.get('lookupQuery').value, bindings
|
|
52
|
+
.get('features')
|
|
53
|
+
.value.split(' ')
|
|
54
|
+
.filter((feature) => Object.values(Feature).includes(feature))),
|
|
51
55
|
], (_a = bindings.get('alternateName')) === null || _a === void 0 ? void 0 : _a.value));
|
|
52
56
|
});
|
|
53
57
|
bindingsStream.on('end', () => resolve(datasets));
|
package/build/catalog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAC,SAAS,EAAoB,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AACtC,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EACL,OAAO,EACP,OAAO,EACP,GAAG,EACH,YAAY,EACZ,kBAAkB,GACnB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAC,MAAM,KAAK,CAAC;AAElC,MAAM,CAAC,KAAK,UAAU,cAAc;IAClC,MAAM,SAAS,GAAG,OAAO,CACvB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,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,OAAA,MAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,mCAAI,EAAE,CAAA,EAAA,CAC7C,CAAC;SACH;QAED,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAE1B,QAAQ,EAAE,CAAC;IACb,CAAC;CACF"}
|
|
@@ -36,6 +36,16 @@
|
|
|
36
36
|
{
|
|
37
37
|
"@type": "FindAction",
|
|
38
38
|
"query": "file://catalog/queries/lookup/abr-cht.rq"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"@type": "Action",
|
|
42
|
+
"target": {
|
|
43
|
+
"@type": "EntryPoint",
|
|
44
|
+
"actionApplication": {
|
|
45
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
46
|
+
"@type": "SoftwareApplication"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
39
49
|
}
|
|
40
50
|
]
|
|
41
51
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/adamlink-straten.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -36,6 +36,16 @@
|
|
|
36
36
|
{
|
|
37
37
|
"@type": "FindAction",
|
|
38
38
|
"query": "file://catalog/queries/lookup/brinkman-nta-stcn.rq"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"@type": "Action",
|
|
42
|
+
"target": {
|
|
43
|
+
"@type": "EntryPoint",
|
|
44
|
+
"actionApplication": {
|
|
45
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
46
|
+
"@type": "SoftwareApplication"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
39
49
|
}
|
|
40
50
|
]
|
|
41
51
|
}
|
|
@@ -36,6 +36,16 @@
|
|
|
36
36
|
{
|
|
37
37
|
"@type": "FindAction",
|
|
38
38
|
"query": "file://catalog/queries/lookup/abr-cht.rq"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"@type": "Action",
|
|
42
|
+
"target": {
|
|
43
|
+
"@type": "EntryPoint",
|
|
44
|
+
"actionApplication": {
|
|
45
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
46
|
+
"@type": "SoftwareApplication"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
39
49
|
}
|
|
40
50
|
]
|
|
41
51
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/eurovoc.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/muziekschatten.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/muziekschatten.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/muziekweb.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/muziekweb.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/nmvw.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -36,6 +36,16 @@
|
|
|
36
36
|
{
|
|
37
37
|
"@type": "FindAction",
|
|
38
38
|
"query": "file://catalog/queries/lookup/brinkman-nta-stcn.rq"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"@type": "Action",
|
|
42
|
+
"target": {
|
|
43
|
+
"@type": "EntryPoint",
|
|
44
|
+
"actionApplication": {
|
|
45
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
46
|
+
"@type": "SoftwareApplication"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
39
49
|
}
|
|
40
50
|
]
|
|
41
51
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/rkdartists.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/brinkman-nta-stcn.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
{
|
|
31
31
|
"@type": "FindAction",
|
|
32
32
|
"query": "file://catalog/queries/lookup/wo2thesaurus.rq"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@type": "Action",
|
|
36
|
+
"target": {
|
|
37
|
+
"@type": "EntryPoint",
|
|
38
|
+
"actionApplication": {
|
|
39
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
40
|
+
"@type": "SoftwareApplication"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
]
|
|
35
45
|
}
|
|
@@ -1,55 +1,28 @@
|
|
|
1
1
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
2
2
|
PREFIX justskos: <http://justskos.org/ns/core#>
|
|
3
|
-
|
|
4
3
|
CONSTRUCT {
|
|
5
4
|
?uri a skos:Concept ;
|
|
6
5
|
skos:prefLabel ?prefLabel ;
|
|
7
6
|
skos:altLabel ?altLabel ;
|
|
8
7
|
skos:hiddenLabel ?hiddenLabel ;
|
|
9
|
-
skos:scopeNote ?scopeNote
|
|
10
|
-
|
|
11
|
-
skos:narrower ?narrower_uri ;
|
|
12
|
-
skos:related ?related_uri .
|
|
13
|
-
?broader_uri skos:prefLabel ?broader_prefLabel .
|
|
14
|
-
?narrower_uri skos:prefLabel ?narrower_prefLabel .
|
|
15
|
-
?related_uri skos:prefLabel ?related_prefLabel .
|
|
8
|
+
skos:scopeNote ?scopeNote .
|
|
9
|
+
|
|
16
10
|
}
|
|
17
11
|
WHERE {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
?uri skos:inScheme <http://data.beeldengeluid.nl/gtaa/Persoonsnamen> .
|
|
13
|
+
?uri skos:prefLabel|skos:altLabel|skos:hiddenLabel ?label ;
|
|
14
|
+
justskos:status ?status .
|
|
15
|
+
|
|
16
|
+
FILTER(LANG(?label) = "nl")
|
|
17
|
+
FILTER(?status IN ('approved', 'candidate'))
|
|
24
18
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
# {
|
|
32
|
-
# ?uri skos:inScheme <http://data.beeldengeluid.nl/gtaa/Persoonsnamen> .
|
|
33
|
-
# ?uri ?predicate ?label ;
|
|
34
|
-
# justskos:status ?status .
|
|
35
|
-
# VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel }
|
|
36
|
-
# FILTER(LANG(?label) = "nl")
|
|
37
|
-
# FILTER(?status IN ('approved', 'candidate'))
|
|
38
|
-
#
|
|
39
|
-
# # double word query, whitespace separator
|
|
40
|
-
# FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$")
|
|
41
|
-
#
|
|
42
|
-
# BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1)
|
|
43
|
-
# BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2)
|
|
44
|
-
#
|
|
45
|
-
# # search case insensitive using an AND construct for the query terms
|
|
46
|
-
# FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) )
|
|
47
|
-
# }
|
|
19
|
+
# single word query
|
|
20
|
+
FILTER regex(?query, "^[^ ]+$")
|
|
21
|
+
FILTER CONTAINS(LCASE(?label), LCASE(?query))
|
|
22
|
+
|
|
23
|
+
?uri skos:prefLabel ?prefLabel .
|
|
24
|
+
FILTER(LANG(?prefLabel) = "nl" )
|
|
48
25
|
|
|
49
|
-
OPTIONAL {
|
|
50
|
-
?uri skos:prefLabel ?prefLabel .
|
|
51
|
-
FILTER(LANG(?prefLabel) = "nl" )
|
|
52
|
-
}
|
|
53
26
|
OPTIONAL {
|
|
54
27
|
?uri skos:altLabel ?altLabel .
|
|
55
28
|
FILTER(LANG(?altLabel) = "nl")
|
|
@@ -62,20 +35,6 @@ WHERE {
|
|
|
62
35
|
?uri skos:scopeNote ?scopeNote .
|
|
63
36
|
FILTER(LANG(?scopeNote) = "nl")
|
|
64
37
|
}
|
|
65
|
-
OPTIONAL {
|
|
66
|
-
?uri skos:broader ?broader_uri .
|
|
67
|
-
?broader_uri skos:prefLabel ?broader_prefLabel .
|
|
68
|
-
FILTER(LANG(?broader_prefLabel) = "nl")
|
|
69
|
-
}
|
|
70
|
-
OPTIONAL {
|
|
71
|
-
?uri skos:narrower ?narrower_uri .
|
|
72
|
-
?narrower_uri skos:prefLabel ?narrower_prefLabel .
|
|
73
|
-
FILTER(LANG(?narrower_prefLabel) = "nl")
|
|
74
|
-
}
|
|
75
|
-
OPTIONAL {
|
|
76
|
-
?uri skos:related ?related_uri .
|
|
77
|
-
?related_uri skos:prefLabel ?related_prefLabel .
|
|
78
|
-
FILTER(LANG(?related_prefLabel) = "nl")
|
|
79
|
-
}
|
|
80
38
|
}
|
|
81
|
-
LIMIT
|
|
39
|
+
LIMIT 50
|
|
40
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Catalog of Network of Terms datasets",
|
|
6
6
|
"repository": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"homepage": "https://github.com/netwerk-digitaal-erfgoed/network-of-terms-catalog#readme",
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@comunica/query-sparql-rdfjs": "^2.0.6",
|
|
47
|
-
"@netwerk-digitaal-erfgoed/network-of-terms-query": "1.
|
|
47
|
+
"@netwerk-digitaal-erfgoed/network-of-terms-query": "1.4.0",
|
|
48
48
|
"globby": "^13.1.1",
|
|
49
49
|
"rdf-js": "^4.0.2",
|
|
50
50
|
"rdf-parse": "^2.0.0",
|