@netwerk-digitaal-erfgoed/network-of-terms-catalog 9.18.0 → 9.19.1
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 +8 -3
- package/build/getCatalog.js.map +1 -1
- package/catalog/datasets/aat-materials.jsonld +1 -1
- package/catalog/datasets/aat-processes-and-techniques.jsonld +1 -1
- package/catalog/datasets/aat-styles-and-periods.jsonld +1 -1
- package/catalog/datasets/aat.jsonld +1 -1
- package/catalog/datasets/abr.jsonld +1 -1
- package/catalog/datasets/eurovoc.jsonld +1 -1
- package/catalog/datasets/rkdartists.jsonld +1 -1
- package/catalog/datasets/uitvoeringsmedium.jsonld +1 -1
- package/catalog/datasets/wikidata-entities-all.jsonld +1 -1
- package/catalog/datasets/wikidata-entities-persons.jsonld +1 -1
- package/catalog/datasets/wikidata-entities-places.jsonld +1 -1
- package/catalog/datasets/wikidata-entities-streets.jsonld +1 -1
- package/catalog/queries/search/aat-materials.rq +41 -40
- package/catalog/queries/search/aat-processes-and-techniques.rq +41 -40
- package/catalog/queries/search/aat-styles-and-periods.rq +41 -42
- package/catalog/queries/search/aat.rq +42 -40
- package/catalog/queries/search/adamlink-adressen.rq +11 -9
- package/catalog/queries/search/adamlink-straten.rq +9 -7
- package/catalog/queries/search/brabantse-gebouwen.rq +10 -5
- package/catalog/queries/search/brinkman.rq +12 -7
- package/catalog/queries/search/cht-materials.rq +11 -9
- package/catalog/queries/search/cht-styles-and-periods.rq +11 -9
- package/catalog/queries/search/cht.rq +9 -5
- package/catalog/queries/search/eurovoc.rq +13 -9
- package/catalog/queries/search/geonames.rq +14 -8
- package/catalog/queries/search/goudatijdmachine-straten.rq +7 -4
- package/catalog/queries/search/gtaa.rq +10 -6
- package/catalog/queries/search/iconclass.rq +8 -5
- package/catalog/queries/search/ied.rq +13 -9
- package/catalog/queries/search/muziekschatten-klassiekewerken.rq +12 -6
- package/catalog/queries/search/muziekschatten-onderwerpen.rq +10 -7
- package/catalog/queries/search/muziekschatten-personen.rq +12 -7
- package/catalog/queries/search/mw-genresstijlen.rq +11 -4
- package/catalog/queries/search/mw-personengroepen.rq +9 -5
- package/catalog/queries/search/nmvw.rq +9 -4
- package/catalog/queries/search/nta.rq +9 -5
- package/catalog/queries/search/picot.rq +12 -7
- package/catalog/queries/search/poolparty.rq +10 -6
- package/catalog/queries/search/rijksmonumenten.rq +8 -4
- package/catalog/queries/search/rkdartists.rq +7 -7
- package/catalog/queries/search/stcn-drukkers.rq +11 -7
- package/catalog/queries/search/uitvoeringsmedium.rq +13 -8
- package/catalog/queries/search/wikidata-entities-all.rq +8 -1
- package/catalog/queries/search/wikidata-entities-persons.rq +26 -16
- package/catalog/queries/search/wikidata-entities-places.rq +51 -38
- package/catalog/queries/search/wikidata-entities-streets.rq +44 -26
- package/catalog/queries/search/wo2thesaurus.rq +13 -9
- package/package.json +3 -3
|
@@ -12,13 +12,18 @@ CONSTRUCT {
|
|
|
12
12
|
skos:exactMatch ?exactMatch_uri .
|
|
13
13
|
}
|
|
14
14
|
WHERE {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
{
|
|
16
|
+
SELECT ?uri ?rdfs_label WHERE {
|
|
17
|
+
?uri schema:mainEntityOfPage/schema:isPartOf <http://data.bibliotheken.nl/id/dataset/stcn/printers> ;
|
|
18
|
+
schema:additionalType <http://www.productontology.org/id/Printer_%28publishing%29> ; # Select printers.
|
|
19
|
+
rdfs:label ?rdfs_label .
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
?uri ?predicate ?label .
|
|
22
|
+
VALUES ?predicate { rdfs:label schema:name schema:alternateName }
|
|
23
|
+
?label <bif:contains> ?virtuosoQuery .
|
|
24
|
+
}
|
|
25
|
+
#LIMIT#
|
|
26
|
+
}
|
|
22
27
|
# STCN defines multiple URIs for the same printer.
|
|
23
28
|
# The distinction between these URIs is based on the place where the printer lived and worked.
|
|
24
29
|
# See for example "Plantijn"
|
|
@@ -34,4 +39,3 @@ WHERE {
|
|
|
34
39
|
?uri schema:sameAs ?exactMatch_uri . # Has no labels.
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
|
-
LIMIT 1000
|
|
@@ -11,15 +11,21 @@ CONSTRUCT {
|
|
|
11
11
|
?broader_uri skos:prefLabel ?broader_prefLabel .
|
|
12
12
|
}
|
|
13
13
|
WHERE {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
{
|
|
15
|
+
SELECT ?uri ?prefLabel WHERE {
|
|
16
|
+
?uri a skos:Concept ;
|
|
17
|
+
skos:inScheme som:Uitvoeringsmedium ;
|
|
18
|
+
skos:prefLabel ?prefLabel .
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
FILTER(LANG(?prefLabel) = "nl")
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
?uri ?predicate ?label .
|
|
23
|
+
VALUES ?predicate { skos:prefLabel skos:altLabel }
|
|
24
|
+
?label <bif:contains> ?virtuosoQuery .
|
|
25
|
+
}
|
|
26
|
+
GROUP BY ?uri
|
|
27
|
+
#LIMIT#
|
|
28
|
+
}
|
|
23
29
|
|
|
24
30
|
OPTIONAL {
|
|
25
31
|
?uri skos:scopeNote ?scopeNote
|
|
@@ -38,4 +44,3 @@ WHERE {
|
|
|
38
44
|
|
|
39
45
|
OPTIONAL { ?uri skos:exactMatch ?exactMatch_uri } # Has no labels.
|
|
40
46
|
}
|
|
41
|
-
LIMIT 1000
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
PREFIX bd: <http://www.bigdata.com/rdf#>
|
|
2
2
|
PREFIX mwapi: <https://www.mediawiki.org/ontology#API/>
|
|
3
|
+
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
3
4
|
PREFIX schema: <http://schema.org/>
|
|
4
5
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
6
|
+
PREFIX vrank: <http://purl.org/voc/vrank#>
|
|
5
7
|
PREFIX wikibase: <http://wikiba.se/ontology#>
|
|
6
8
|
|
|
7
9
|
CONSTRUCT {
|
|
@@ -11,6 +13,7 @@ CONSTRUCT {
|
|
|
11
13
|
?item skos:prefLabel ?rdfs_label .
|
|
12
14
|
?item skos:altLabel ?altLabel .
|
|
13
15
|
?item skos:scopeNote ?schema_description .
|
|
16
|
+
?item vrank:simpleRank ?score .
|
|
14
17
|
}
|
|
15
18
|
WHERE {
|
|
16
19
|
SERVICE wikibase:mwapi {
|
|
@@ -18,7 +21,9 @@ WHERE {
|
|
|
18
21
|
bd:serviceParam wikibase:api "EntitySearch" .
|
|
19
22
|
bd:serviceParam mwapi:language "nl" .
|
|
20
23
|
bd:serviceParam mwapi:search ?query .
|
|
24
|
+
bd:serviceParam wikibase:limit ?limit .
|
|
21
25
|
?item wikibase:apiOutputItem mwapi:item .
|
|
26
|
+
?ordinal wikibase:apiOrdinal true.
|
|
22
27
|
}
|
|
23
28
|
?item rdfs:label ?rdfs_label .
|
|
24
29
|
FILTER(LANG(?rdfs_label) = "nl")
|
|
@@ -30,5 +35,7 @@ WHERE {
|
|
|
30
35
|
?item schema:description ?schema_description
|
|
31
36
|
FILTER(LANG(?schema_description) = "nl")
|
|
32
37
|
}
|
|
38
|
+
BIND(-?ordinal AS ?score)
|
|
33
39
|
}
|
|
34
|
-
|
|
40
|
+
ORDER BY ASC(?ordinal)
|
|
41
|
+
|
|
@@ -3,6 +3,7 @@ PREFIX mwapi: <https://www.mediawiki.org/ontology#API/>
|
|
|
3
3
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
4
4
|
PREFIX schema: <http://schema.org/>
|
|
5
5
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
6
|
+
PREFIX vrank: <http://purl.org/voc/vrank#>
|
|
6
7
|
PREFIX wikibase: <http://wikiba.se/ontology#>
|
|
7
8
|
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
|
|
8
9
|
PREFIX wd: <http://www.wikidata.org/entity/>
|
|
@@ -14,23 +15,35 @@ CONSTRUCT {
|
|
|
14
15
|
?item skos:prefLabel ?prefLabel .
|
|
15
16
|
?item skos:altLabel ?altLabel .
|
|
16
17
|
?item skos:scopeNote ?description .
|
|
18
|
+
?item vrank:simpleRank ?score .
|
|
17
19
|
}
|
|
18
20
|
WHERE {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
{
|
|
22
|
+
SELECT DISTINCT ?item ?score WHERE {
|
|
23
|
+
SERVICE wikibase:mwapi {
|
|
24
|
+
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
|
|
25
|
+
# Instead of using the "EntitySearch" API we use a more generic text search option
|
|
26
|
+
# To avoid noise we will filter the resultset on the occurence of the search string
|
|
27
|
+
# in either prefLabel or altLabel
|
|
28
|
+
bd:serviceParam wikibase:api "Search" .
|
|
29
|
+
bd:serviceParam mwapi:language "nl" .
|
|
30
|
+
bd:serviceParam mwapi:srsearch ?query .
|
|
31
|
+
?item wikibase:apiOutputItem mwapi:title .
|
|
32
|
+
?ordinal wikibase:apiOrdinal true.
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
BIND(-?ordinal AS ?score)
|
|
36
|
+
# Only select instances of type "human"
|
|
37
|
+
?item wdt:P31 wd:Q5 .
|
|
38
|
+
}
|
|
39
|
+
ORDER BY ASC(?ordinal)
|
|
40
|
+
#LIMIT#
|
|
28
41
|
}
|
|
29
|
-
# Only select instances of type "human"
|
|
30
|
-
?item wdt:P31 wd:Q5 .
|
|
31
42
|
|
|
32
|
-
|
|
33
|
-
|
|
43
|
+
OPTIONAL {
|
|
44
|
+
?item rdfs:label ?prefLabel .
|
|
45
|
+
FILTER(LANG(?prefLabel) = "nl")
|
|
46
|
+
}
|
|
34
47
|
OPTIONAL {
|
|
35
48
|
?item skos:altLabel ?altLabel .
|
|
36
49
|
FILTER(LANG(?altLabel) = "nl"||LANG(?altLabel) = "en")
|
|
@@ -39,7 +52,4 @@ WHERE {
|
|
|
39
52
|
?item schema:description ?description
|
|
40
53
|
FILTER(LANG(?description) = "nl")
|
|
41
54
|
}
|
|
42
|
-
# limit the result set to matches in the prefLabels or altLabels
|
|
43
|
-
FILTER(CONTAINS(LCASE(?prefLabel),LCASE(?query))||CONTAINS(LCASE(?altLabel),LCASE(?query)))
|
|
44
55
|
}
|
|
45
|
-
LIMIT 1000
|
|
@@ -3,6 +3,7 @@ PREFIX mwapi: <https://www.mediawiki.org/ontology#API/>
|
|
|
3
3
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
4
4
|
PREFIX schema: <http://schema.org/>
|
|
5
5
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
6
|
+
PREFIX vrank: <http://purl.org/voc/vrank#>
|
|
6
7
|
PREFIX wikibase: <http://wikiba.se/ontology#>
|
|
7
8
|
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
|
|
8
9
|
PREFIX wd: <http://www.wikidata.org/entity/>
|
|
@@ -14,52 +15,65 @@ CONSTRUCT {
|
|
|
14
15
|
?item skos:prefLabel ?prefLabel .
|
|
15
16
|
?item skos:altLabel ?altLabel .
|
|
16
17
|
?item skos:scopeNote ?schema_description .
|
|
18
|
+
?item vrank:simpleRank ?score .
|
|
17
19
|
}
|
|
18
20
|
WHERE {
|
|
19
|
-
SERVICE wikibase:mwapi {
|
|
20
|
-
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
|
|
21
|
-
# The search seems to be done with a "starts with" function,
|
|
22
|
-
# where by default the English pref and alt labels are searched.
|
|
23
|
-
# Setting the required language to something else than "en"
|
|
24
|
-
# results in an additional search in the pref and alt labels for this language.
|
|
25
|
-
bd:serviceParam wikibase:api "EntitySearch" .
|
|
26
|
-
bd:serviceParam mwapi:language "nl" .
|
|
27
|
-
bd:serviceParam mwapi:search ?query .
|
|
28
|
-
?item wikibase:apiOutputItem mwapi:item .
|
|
29
|
-
}
|
|
30
|
-
# We are looking for places; because there are many types possible (cities, villages, etc) we filter
|
|
31
|
-
# on instances (P31) or subclasses (P279) of "human settlement" (Q486972)
|
|
32
|
-
?item wdt:P31/wdt:P279* wd:Q486972 .
|
|
33
|
-
|
|
34
21
|
{
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
SELECT DISTINCT ?item ?score WHERE {
|
|
23
|
+
SERVICE wikibase:mwapi {
|
|
24
|
+
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
|
|
25
|
+
# The search seems to be done with a "starts with" function,
|
|
26
|
+
# where by default the English pref and alt labels are searched.
|
|
27
|
+
# Setting the required language to something else than "en"
|
|
28
|
+
# results in an additional search in the pref and alt labels for this language.
|
|
29
|
+
bd:serviceParam wikibase:api "EntitySearch" .
|
|
30
|
+
bd:serviceParam mwapi:language "nl" .
|
|
31
|
+
bd:serviceParam mwapi:search ?query .
|
|
32
|
+
?item wikibase:apiOutputItem mwapi:item .
|
|
33
|
+
?ordinal wikibase:apiOrdinal true.
|
|
34
|
+
}
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
# deactivated because some places are former municipalities
|
|
40
|
-
# and would be excluded by this filter
|
|
41
|
-
#FILTER NOT EXISTS { ?item wdt:P31 wd:Q2039348 }
|
|
42
|
-
}
|
|
43
|
-
UNION {
|
|
44
|
-
# Select places in Belgium
|
|
45
|
-
?item wdt:P17 wd:Q31 .
|
|
36
|
+
BIND(-?ordinal AS ?score)
|
|
46
37
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
38
|
+
# We are looking for places; because there are many types possible (cities, villages, etc) we filter
|
|
39
|
+
# on instances (P31) or subclasses (P279) of "human settlement" (Q486972)
|
|
40
|
+
?item wdt:P31/wdt:P279* wd:Q486972 .
|
|
41
|
+
|
|
42
|
+
{
|
|
43
|
+
{
|
|
44
|
+
# Select places in the Netherlands (Q55)
|
|
45
|
+
?item wdt:P17 wd:Q55 .
|
|
52
46
|
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
# Filter out Dutch municipalities
|
|
48
|
+
# deactivated because some places are former municipalities
|
|
49
|
+
# and would be excluded by this filter
|
|
50
|
+
#FILTER NOT EXISTS { ?item wdt:P31 wd:Q2039348 }
|
|
51
|
+
}
|
|
52
|
+
UNION {
|
|
53
|
+
# Select places in Belgium
|
|
54
|
+
?item wdt:P17 wd:Q31 .
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
# Filter out Belgian municipalities
|
|
57
|
+
# deactivated because some places are former municipalities
|
|
58
|
+
# and would be excluded by this filter
|
|
59
|
+
#FILTER NOT EXISTS { ?item wdt:P31 wd:Q493522}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
58
62
|
|
|
59
|
-
|
|
63
|
+
# Filter out agglomerations
|
|
64
|
+
FILTER NOT EXISTS { ?item wdt:P31 wd:Q159313 }
|
|
60
65
|
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
# Filter out neighborhoods
|
|
67
|
+
FILTER NOT EXISTS { ?item wdt:P31 wd:Q123705 }
|
|
68
|
+
}
|
|
69
|
+
ORDER BY ?ordinal
|
|
70
|
+
#LIMIT#
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
OPTIONAL {
|
|
74
|
+
?item rdfs:label ?prefLabel .
|
|
75
|
+
FILTER(LANG(?prefLabel) = "nl")
|
|
76
|
+
}
|
|
63
77
|
OPTIONAL {
|
|
64
78
|
?item skos:altLabel ?altLabel .
|
|
65
79
|
FILTER(LANG(?altLabel) = "nl")
|
|
@@ -69,4 +83,3 @@ WHERE {
|
|
|
69
83
|
FILTER(LANG(?schema_description) = "nl")
|
|
70
84
|
}
|
|
71
85
|
}
|
|
72
|
-
LIMIT 1000
|
|
@@ -2,6 +2,7 @@ PREFIX bd: <http://www.bigdata.com/rdf#>
|
|
|
2
2
|
PREFIX mwapi: <https://www.mediawiki.org/ontology#API/>
|
|
3
3
|
PREFIX schema: <http://schema.org/>
|
|
4
4
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
5
|
+
PREFIX vrank: <http://purl.org/voc/vrank#>
|
|
5
6
|
PREFIX wikibase: <http://wikiba.se/ontology#>
|
|
6
7
|
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
|
|
7
8
|
PREFIX wd: <http://www.wikidata.org/entity/>
|
|
@@ -11,31 +12,45 @@ CONSTRUCT {
|
|
|
11
12
|
?item a skos:Concept ;
|
|
12
13
|
skos:prefLabel ?streetName ;
|
|
13
14
|
skos:altLabel ?altLabel ;
|
|
14
|
-
skos:scopeNote ?description
|
|
15
|
+
skos:scopeNote ?description ;
|
|
16
|
+
vrank:simpleRank ?score .
|
|
15
17
|
}
|
|
16
18
|
WHERE {
|
|
17
|
-
SERVICE wikibase:mwapi {
|
|
18
|
-
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
|
|
19
|
-
bd:serviceParam wikibase:api "Search" .
|
|
20
|
-
bd:serviceParam mwapi:language "nl" .
|
|
21
|
-
bd:serviceParam mwapi:srsearch ?query .
|
|
22
|
-
?item wikibase:apiOutputItem mwapi:title .
|
|
23
|
-
}
|
|
24
|
-
# Use UNION instead of VALUES because the latter doesn't properly restrict results.
|
|
25
19
|
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
20
|
+
SELECT DISTINCT ?item ?score WHERE {
|
|
21
|
+
SERVICE wikibase:mwapi {
|
|
22
|
+
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
|
|
23
|
+
# Instead of using the "EntitySearch" API we use a more generic text search option
|
|
24
|
+
# To avoid noise we will filter the resultset on the occurence of the search string
|
|
25
|
+
# in either prefLabel or altLabel
|
|
26
|
+
bd:serviceParam wikibase:api "Search" .
|
|
27
|
+
bd:serviceParam mwapi:language "nl" .
|
|
28
|
+
|
|
29
|
+
bd:serviceParam mwapi:srsearch ?query .
|
|
30
|
+
?item wikibase:apiOutputItem mwapi:title .
|
|
31
|
+
?ordinal wikibase:apiOrdinal true.
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
BIND(-?ordinal AS ?score)
|
|
35
|
+
|
|
36
|
+
# Use UNION instead of VALUES because the latter doesn't properly restrict results.
|
|
37
|
+
{
|
|
38
|
+
# Streets.
|
|
39
|
+
?item wdt:P31 wd:Q79007
|
|
40
|
+
}
|
|
41
|
+
UNION {
|
|
42
|
+
# Squares.
|
|
43
|
+
?item wdt:P31 wd:Q174782
|
|
44
|
+
}
|
|
45
|
+
UNION {
|
|
46
|
+
# Main squares, e.g. http://www.wikidata.org/entity/Q1083850.
|
|
47
|
+
?item wdt:P31 wd:Q26987258
|
|
48
|
+
}
|
|
49
|
+
?item wdt:P17 wd:Q55 .
|
|
50
|
+
}
|
|
51
|
+
ORDER BY ASC(?ordinal)
|
|
52
|
+
#LIMIT#
|
|
36
53
|
}
|
|
37
|
-
?item wdt:P17 wd:Q55 .
|
|
38
|
-
?item wdt:P131 ?administration .
|
|
39
54
|
OPTIONAL {
|
|
40
55
|
?item wdt:P276 ?location .
|
|
41
56
|
?location rdfs:label ?locationName .
|
|
@@ -49,10 +64,14 @@ WHERE {
|
|
|
49
64
|
?item skos:altLabel ?altLabel
|
|
50
65
|
FILTER(LANG(?altLabel) = "nl")
|
|
51
66
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
67
|
+
OPTIONAL {
|
|
68
|
+
?item rdfs:label ?streetName .
|
|
69
|
+
FILTER LANGMATCHES(LANG(?streetName), "nl")
|
|
70
|
+
}
|
|
71
|
+
OPTIONAL {
|
|
72
|
+
?item wdt:P131/rdfs:label ?administrationName .
|
|
73
|
+
FILTER LANGMATCHES(LANG(?administrationName), "nl")
|
|
74
|
+
}
|
|
56
75
|
|
|
57
76
|
# Some streets come with altLabel ‘Street name (Place name)’. For those that don’t, construct the altLabel manually.
|
|
58
77
|
BIND(
|
|
@@ -66,4 +85,3 @@ WHERE {
|
|
|
66
85
|
) as ?altLabel
|
|
67
86
|
)
|
|
68
87
|
}
|
|
69
|
-
LIMIT 1000
|
|
@@ -13,14 +13,19 @@ CONSTRUCT {
|
|
|
13
13
|
?narrower_uri skos:prefLabel ?narrower_prefLabel .
|
|
14
14
|
}
|
|
15
15
|
WHERE {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
{
|
|
17
|
+
SELECT ?uri WHERE {
|
|
18
|
+
?uri ?predicate ?label .
|
|
19
|
+
# Exclude terms from the 'Technische Lijsten', a concept scheme with terms that should only be used by NOB
|
|
20
|
+
FILTER NOT EXISTS {
|
|
21
|
+
?uri skos:inScheme <https://data.niod.nl/WO2_Thesaurus/11183>
|
|
22
|
+
}
|
|
23
|
+
VALUES ?predicate { skos:prefLabel skos:altLabel }
|
|
24
|
+
FILTER(LANG(?label) = "nl")
|
|
25
|
+
FILTER(CONTAINS(LCASE(?label), LCASE(?query)))
|
|
26
|
+
}
|
|
27
|
+
#LIMIT#
|
|
28
|
+
}
|
|
24
29
|
OPTIONAL {
|
|
25
30
|
?uri skos:prefLabel ?prefLabel .
|
|
26
31
|
FILTER(LANG(?prefLabel) = "nl" )
|
|
@@ -51,4 +56,3 @@ WHERE {
|
|
|
51
56
|
?uri skos:exactMatch ?exactMatch_uri . # Has no labels.
|
|
52
57
|
}
|
|
53
58
|
}
|
|
54
|
-
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.19.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Catalog of Network of Terms datasets",
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@types/rdf-ext": "^2.5.0",
|
|
34
34
|
"gts": "^5.3.1",
|
|
35
35
|
"jsonld-streaming-parser": "^4.0.1",
|
|
36
|
-
"rdf-data-factory": "^
|
|
36
|
+
"rdf-data-factory": "^2.0.2",
|
|
37
37
|
"rdf-ext": "^2.5.2",
|
|
38
38
|
"rdf-validate-shacl": "^0.5.6"
|
|
39
39
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@comunica/query-sparql": "^4.0.2",
|
|
46
46
|
"@comunica/query-sparql-rdfjs": "^4.0.2",
|
|
47
47
|
"@comunica/utils-bindings-factory": "^4.0.2",
|
|
48
|
-
"@netwerk-digitaal-erfgoed/network-of-terms-query": "5.
|
|
48
|
+
"@netwerk-digitaal-erfgoed/network-of-terms-query": "5.5.0",
|
|
49
49
|
"globby": "^14.0.2",
|
|
50
50
|
"memoize": "^10.0.0",
|
|
51
51
|
"rdf-parse": "^3.0.0",
|