@netwerk-digitaal-erfgoed/network-of-terms-catalog 5.6.4 → 5.6.7
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 +22 -23
- package/package.json +5 -7
package/README.md
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
# Network of Terms Catalog
|
|
2
2
|
|
|
3
|
-
This is the catalog of
|
|
3
|
+
This is the catalog of terminology sources that can be queried through the
|
|
4
4
|
[Network of Terms](https://github.com/netwerk-digitaal-erfgoed/network-of-terms).
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
Each is described in the [Schema.org](https://schema.org) ontology.
|
|
6
|
+
## Data model
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
Each terminology source is modelled as a [Schema.org Dataset](https://schema.org/Dataset). The [catalog](catalog)
|
|
9
|
+
directory contains all datasets.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Most of the dataset’s properties match the
|
|
12
|
+
[NDE Requirements for Datasets](https://netwerk-digitaal-erfgoed.github.io/requirements-datasets), with the following
|
|
13
|
+
additions specific to the Network of Terms:
|
|
12
14
|
|
|
13
|
-
|
|
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
|
+
resources. This prefix is needed when clients look up terms by their URI in the Network of Terms: the Network then has
|
|
17
|
+
to know which source to consult to retrieve the term.
|
|
18
|
+
- Each distribution has two [`schema:potentialAction`](https://schema.org/potentialAction)s: a
|
|
19
|
+
[`schema:SearchAction`](https://schema.org/SearchAction) and a [`schema:FindAction`](https://schema.org/FindAction),
|
|
20
|
+
both with a [`schema:query`](https://schema.org/query) property that points to the queries directory.
|
|
14
21
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
22
|
+
The [queries](catalog/queries) directory contains SPARQL queries for retrieving terms from the datasets. There are
|
|
23
|
+
two types of queries:
|
|
24
|
+
|
|
25
|
+
- [search queries](catalog/queries/search) find terms matching a textual string query input;
|
|
26
|
+
- [lookup queries](catalog/queries/lookup) retrieve a single term based on its URI.
|
|
18
27
|
|
|
19
28
|
## Contributing
|
|
20
29
|
|
|
@@ -23,17 +32,7 @@ npm add @netwerk-digitaal-erfgoed/network-of-terms-catalog
|
|
|
23
32
|
* Create a `your-dataset.jsonld` file in the `catalog/` directory and add a description.
|
|
24
33
|
* Create a `your-dataset.rq` file in the `queries/search` directory and add your SPARQL search query. A SPARQL
|
|
25
34
|
lookup goes into the `queries/lookup` directory.
|
|
26
|
-
* Run the tests to make sure your dataset description conforms to the
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### Committing changes
|
|
33
|
-
|
|
34
|
-
This repository follows [Semantic Versioning](https://semver.org). Tags and
|
|
35
|
-
[releases](https://github.com/netwerk-digitaal-erfgoed/network-of-terms-catalog/releases) are
|
|
36
|
-
[created automatically](https://github.com/netwerk-digitaal-erfgoed/network-of-terms-catalog/blob/master/.github/workflows/release.yml)
|
|
37
|
-
based on commit messages.
|
|
38
|
-
So please make sure to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/#summary)
|
|
39
|
-
when committing changes.
|
|
35
|
+
* [Run the tests](../../docs/tests.md) to make sure your dataset description conforms to the
|
|
36
|
+
[dataset SHACL](shacl/dataset.jsonld).
|
|
37
|
+
* To try your queries locally, you can
|
|
38
|
+
[run the GraphQL API](../network-of-terms-graphql/README.md#for-network-of-terms-developers) with your catalog.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Catalog of Network of Terms datasets",
|
|
6
6
|
"repository": {
|
|
@@ -20,9 +20,7 @@
|
|
|
20
20
|
"check": "gts check",
|
|
21
21
|
"clean": "rm -rf build/ tsconfig.build.tsbuildinfo",
|
|
22
22
|
"compile": "npm run clean && tsc --build tsconfig.build.json",
|
|
23
|
-
"fix": "gts fix"
|
|
24
|
-
"test": "NODE_OPTIONS=--experimental-vm-modules jest ${1} --forceExit",
|
|
25
|
-
"posttest": "jest-coverage-thresholds-bumper --silent"
|
|
23
|
+
"fix": "gts fix"
|
|
26
24
|
},
|
|
27
25
|
"keywords": [
|
|
28
26
|
"nde"
|
|
@@ -33,7 +31,7 @@
|
|
|
33
31
|
"@types/n3": "^1.4.3",
|
|
34
32
|
"@types/rdf-ext": "^1.3.11",
|
|
35
33
|
"gts": "^3.1.0",
|
|
36
|
-
"jsonld-streaming-parser": "^2.
|
|
34
|
+
"jsonld-streaming-parser": "^2.4.3",
|
|
37
35
|
"rdf-data-factory": "^1.0.1",
|
|
38
36
|
"rdf-ext": "^2.0.1",
|
|
39
37
|
"rdf-validate-shacl": "^0.4.0"
|
|
@@ -45,8 +43,8 @@
|
|
|
45
43
|
"dependencies": {
|
|
46
44
|
"@comunica/actor-init-sparql-rdfjs": "^1.17.0",
|
|
47
45
|
"@comunica/bus-query-operation": "^1.17.0",
|
|
48
|
-
"@netwerk-digitaal-erfgoed/network-of-terms-query": "1.0
|
|
49
|
-
"globby": "<
|
|
46
|
+
"@netwerk-digitaal-erfgoed/network-of-terms-query": "1.1.0",
|
|
47
|
+
"globby": "<14.0.0",
|
|
50
48
|
"rdf-js": "^4.0.2",
|
|
51
49
|
"rdf-parse": "^1.5.0",
|
|
52
50
|
"rdf-store-stream": "^1.1.0"
|