@netwerk-digitaal-erfgoed/network-of-terms-catalog 6.0.2 → 6.2.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/catalog/datasets/brabantse-gebouwen.jsonld +48 -0
- package/catalog/datasets/goudatijdmachine-straten.jsonld +51 -0
- package/catalog/publishers.jsonld +6 -0
- package/catalog/queries/lookup/brabantse-gebouwen.rq +40 -0
- package/catalog/queries/lookup/brinkman-nta-stcn.rq +7 -1
- package/catalog/queries/lookup/goudatijdmachine-straten.rq +37 -0
- package/catalog/queries/lookup/gtaa.rq +4 -2
- package/catalog/queries/search/brabantse-gebouwen.rq +38 -0
- package/catalog/queries/search/goudatijdmachine-straten.rq +25 -0
- package/package.json +2 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
+
"@id": "https://data.brabantcloud.nl/gebouwen",
|
|
4
|
+
"@type": "Dataset",
|
|
5
|
+
"name": [
|
|
6
|
+
{
|
|
7
|
+
"@language": "nl",
|
|
8
|
+
"@value": "Brabantse gebouwen"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"creator": [
|
|
12
|
+
{
|
|
13
|
+
"@id": "https://www.erfgoedbrabant.nl"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"url": [
|
|
17
|
+
"https://data.brabantcloud.nl/id/ark:15052/"
|
|
18
|
+
],
|
|
19
|
+
"distribution": [
|
|
20
|
+
{
|
|
21
|
+
"@id": "https://data.brabantcloud.nl/gebouwen/query/",
|
|
22
|
+
"@type": "DataDownload",
|
|
23
|
+
"contentUrl": "https://data.brabantcloud.nl/gebouwen/query/",
|
|
24
|
+
"encodingFormat": "application/sparql-query",
|
|
25
|
+
"potentialAction": [
|
|
26
|
+
{
|
|
27
|
+
"@type": "SearchAction",
|
|
28
|
+
"query": "file://catalog/queries/search/brabantse-gebouwen.rq"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"@type": "FindAction",
|
|
32
|
+
"query": "file://catalog/queries/lookup/brabantse-gebouwen.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
|
+
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
+
"@id": "https://www.goudatijdmachine.nl/id/straten",
|
|
4
|
+
"@type": "Dataset",
|
|
5
|
+
"name": [
|
|
6
|
+
{
|
|
7
|
+
"@language": "nl",
|
|
8
|
+
"@value": "Goudse straten"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"creator": [
|
|
12
|
+
{
|
|
13
|
+
"@id": "https://www.goudatijdmachine.nl",
|
|
14
|
+
"@type": "http://schema.org/Organization",
|
|
15
|
+
"name": "Gouda Tijdmachine",
|
|
16
|
+
"alternateName": "GTM"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"url": [
|
|
20
|
+
"https://n2t.net/ark:/60537/"
|
|
21
|
+
],
|
|
22
|
+
"distribution": [
|
|
23
|
+
{
|
|
24
|
+
"@id": "https://www.goudatijdmachine.nl/id/straten#streets",
|
|
25
|
+
"@type": "DataDownload",
|
|
26
|
+
"contentUrl": "https://www.goudatijdmachine.nl/sparql/repositories/gtm",
|
|
27
|
+
"encodingFormat": "application/sparql-query",
|
|
28
|
+
"potentialAction": [
|
|
29
|
+
{
|
|
30
|
+
"@type": "SearchAction",
|
|
31
|
+
"query": "file://catalog/queries/search/goudatijdmachine-straten.rq"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"@type": "FindAction",
|
|
35
|
+
"query": "file://catalog/queries/lookup/goudatijdmachine-straten.rq"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"@type": "Action",
|
|
39
|
+
"target": {
|
|
40
|
+
"@type": "EntryPoint",
|
|
41
|
+
"actionApplication": {
|
|
42
|
+
"@id": "https://reconciliation-api.github.io/specs/latest/",
|
|
43
|
+
"@type": "SoftwareApplication"
|
|
44
|
+
},
|
|
45
|
+
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
@@ -72,6 +72,12 @@
|
|
|
72
72
|
"@type": "Organization",
|
|
73
73
|
"name": "Stichting AdamNet",
|
|
74
74
|
"alternateName": "AdamNet"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"@id": "https://www.erfgoedbrabant.nl",
|
|
78
|
+
"@type": "Organization",
|
|
79
|
+
"name": "Erfgoed Brabant",
|
|
80
|
+
"alternateName": "Erfgoed Brabant"
|
|
75
81
|
}
|
|
76
82
|
]
|
|
77
83
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
PREFIX schema: <https://schema.org/>
|
|
2
|
+
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
3
|
+
|
|
4
|
+
CONSTRUCT {
|
|
5
|
+
?uri a skos:Concept ;
|
|
6
|
+
skos:prefLabel ?schema_name ;
|
|
7
|
+
skos:altLabel ?schema_alternateName ;
|
|
8
|
+
skos:scopeNote ?schema_description,
|
|
9
|
+
?buildingTypeScopeNote,
|
|
10
|
+
?addressScopeNote .
|
|
11
|
+
}
|
|
12
|
+
WHERE {
|
|
13
|
+
# For example:
|
|
14
|
+
# Huize Boschlust: <https://data.brabantcloud.nl/id/ark:15052/62dd4e81-b7d6-4fc2-9473-5f4b17226105>
|
|
15
|
+
# Mariaklooster: <https://data.brabantcloud.nl/id/ark:15052/0963f6bb-4b84-4e37-a087-31bbabfda4bb>
|
|
16
|
+
VALUES ?uri { ?uris }
|
|
17
|
+
|
|
18
|
+
?uri a schema:LandmarksOrHistoricalBuildings .
|
|
19
|
+
OPTIONAL { ?uri schema:name ?schema_name }
|
|
20
|
+
OPTIONAL { ?uri schema:alternateName ?schema_alternateName }
|
|
21
|
+
OPTIONAL { ?uri schema:description ?schema_description }
|
|
22
|
+
OPTIONAL {
|
|
23
|
+
?uri schema:additionalType <http://vocab.getty.edu/aat/300000641> .
|
|
24
|
+
BIND("Type: kloostergebouw" AS ?buildingTypeScopeNote)
|
|
25
|
+
}
|
|
26
|
+
OPTIONAL {
|
|
27
|
+
?uri schema:address ?address .
|
|
28
|
+
OPTIONAL { ?address schema:streetAddress ?streetAddress }
|
|
29
|
+
OPTIONAL { ?address schema:addressLocality ?addressLocality }
|
|
30
|
+
OPTIONAL { ?address schema:addressRegion ?addressRegion }
|
|
31
|
+
BIND(
|
|
32
|
+
COALESCE(
|
|
33
|
+
IF(?streetAddress && ?addressLocality && ?addressRegion, CONCAT("Adres: ", ?streetAddress, ", ", ?addressLocality, ", ", ?addressRegion), ?noAddress),
|
|
34
|
+
IF(?streetAddress && ?addressLocality, CONCAT("Adres: ", ?streetAddress, ", ", ?addressLocality), ?noAddress),
|
|
35
|
+
IF(?streetAddress, CONCAT("Adres: ", ?streetAddress), ?noAddress)
|
|
36
|
+
) AS ?addressScopeNote
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
LIMIT 1000
|
|
@@ -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 {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
PREFIX dcterms: <http://purl.org/dc/terms/>
|
|
2
|
+
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
3
|
+
PREFIX gtm: <https://www.goudatijdmachine.nl/def#>
|
|
4
|
+
PREFIX schema: <https://schema.org/>
|
|
5
|
+
PREFIX hg: <http://rdf.histograph.io/>
|
|
6
|
+
|
|
7
|
+
CONSTRUCT {
|
|
8
|
+
?uri a skos:Concept ;
|
|
9
|
+
skos:prefLabel ?prefLabel ;
|
|
10
|
+
skos:altLabel ?altLabel ;
|
|
11
|
+
skos:scopeNote ?scopeNote ;
|
|
12
|
+
skos:related ?related_uri .
|
|
13
|
+
?related_uri skos:prefLabel ?related_prefLabel .
|
|
14
|
+
} WHERE {
|
|
15
|
+
# For example:
|
|
16
|
+
# Vuilsteeg: <https://n2t.net/ark:/60537/bIwfWk>
|
|
17
|
+
# Kapelstraat: <https://n2t.net/ark:/60537/b4ApaO>
|
|
18
|
+
VALUES ?uri { ?uris }
|
|
19
|
+
?uri a gtm:Straat ;
|
|
20
|
+
dcterms:identifier ?identifier ;
|
|
21
|
+
skos:prefLabel ?prefLabel .
|
|
22
|
+
FILTER (CONTAINS(STR(?uri), "ark:"))
|
|
23
|
+
OPTIONAL {
|
|
24
|
+
?uri skos:altLabel ?altLabel
|
|
25
|
+
}
|
|
26
|
+
OPTIONAL {
|
|
27
|
+
?uri hg:liesIn/schema:sameAs <http://sws.geonames.org/2755419/> # Gouda
|
|
28
|
+
BIND("Straat in Gouda" AS ?scopeNote)
|
|
29
|
+
}
|
|
30
|
+
OPTIONAL {
|
|
31
|
+
?uri hg:absorbedBy|hg:absorbed ?related_uri .
|
|
32
|
+
?related_uri a gtm:Straat ;
|
|
33
|
+
skos:prefLabel ?related_prefLabel .
|
|
34
|
+
FILTER (CONTAINS(STR(?related_uri), "ark:") && ?uri != ?related_uri )
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
LIMIT 100
|
|
@@ -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 .
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
PREFIX schema: <https://schema.org/>
|
|
2
|
+
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
3
|
+
|
|
4
|
+
CONSTRUCT {
|
|
5
|
+
?uri a skos:Concept ;
|
|
6
|
+
skos:prefLabel ?schema_name ;
|
|
7
|
+
skos:altLabel ?schema_alternateName ;
|
|
8
|
+
skos:scopeNote ?schema_description,
|
|
9
|
+
?buildingTypeScopeNote,
|
|
10
|
+
?addressScopeNote .
|
|
11
|
+
}
|
|
12
|
+
WHERE {
|
|
13
|
+
?uri a schema:LandmarksOrHistoricalBuildings .
|
|
14
|
+
?uri ?predicate ?label .
|
|
15
|
+
VALUES ?predicate { schema:name schema:alternateName }
|
|
16
|
+
FILTER(CONTAINS(LCASE(?label), LCASE(?query)))
|
|
17
|
+
OPTIONAL { ?uri schema:name ?schema_name }
|
|
18
|
+
OPTIONAL { ?uri schema:alternateName ?schema_alternateName }
|
|
19
|
+
OPTIONAL { ?uri schema:description ?schema_description }
|
|
20
|
+
OPTIONAL {
|
|
21
|
+
?uri schema:additionalType <http://vocab.getty.edu/aat/300000641> .
|
|
22
|
+
BIND("Type: kloostergebouw" AS ?buildingTypeScopeNote)
|
|
23
|
+
}
|
|
24
|
+
OPTIONAL {
|
|
25
|
+
?uri schema:address ?address .
|
|
26
|
+
OPTIONAL { ?address schema:streetAddress ?streetAddress }
|
|
27
|
+
OPTIONAL { ?address schema:addressLocality ?addressLocality }
|
|
28
|
+
OPTIONAL { ?address schema:addressRegion ?addressRegion }
|
|
29
|
+
BIND(
|
|
30
|
+
COALESCE(
|
|
31
|
+
IF(?streetAddress && ?addressLocality && ?addressRegion, CONCAT("Adres: ", ?streetAddress, ", ", ?addressLocality, ", ", ?addressRegion), ?noAddress),
|
|
32
|
+
IF(?streetAddress && ?addressLocality, CONCAT("Adres: ", ?streetAddress, ", ", ?addressLocality), ?noAddress),
|
|
33
|
+
IF(?streetAddress, CONCAT("Adres: ", ?streetAddress), ?noAddress)
|
|
34
|
+
) AS ?addressScopeNote
|
|
35
|
+
)
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
LIMIT 1000
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
PREFIX dcterms: <http://purl.org/dc/terms/>
|
|
2
|
+
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
3
|
+
PREFIX gtm: <https://www.goudatijdmachine.nl/def#>
|
|
4
|
+
PREFIX schema: <https://schema.org/>
|
|
5
|
+
PREFIX hg: <http://rdf.histograph.io/>
|
|
6
|
+
|
|
7
|
+
CONSTRUCT {
|
|
8
|
+
?uri a skos:Concept ;
|
|
9
|
+
skos:prefLabel ?prefLabel ;
|
|
10
|
+
skos:altLabel ?altLabel;
|
|
11
|
+
skos:scopeNote ?scopeNote .
|
|
12
|
+
}
|
|
13
|
+
WHERE {
|
|
14
|
+
?uri a gtm:Straat ;
|
|
15
|
+
dcterms:identifier ?identifier ;
|
|
16
|
+
skos:prefLabel ?prefLabel .
|
|
17
|
+
OPTIONAL { ?uri skos:altLabel ?altLabel . }
|
|
18
|
+
OPTIONAL {
|
|
19
|
+
?uri hg:liesIn/schema:sameAs <http://sws.geonames.org/2755419/> # Gouda
|
|
20
|
+
BIND("Straat in Gouda" AS ?scopeNote)
|
|
21
|
+
}
|
|
22
|
+
FILTER (CONTAINS(STR(?uri), "ark:"))
|
|
23
|
+
FILTER (CONTAINS(LCASE(?prefLabel),?query) || CONTAINS(LCASE(?altLabel),?query) )
|
|
24
|
+
}
|
|
25
|
+
LIMIT 100
|
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.2.0",
|
|
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"
|