@netwerk-digitaal-erfgoed/network-of-terms-catalog 9.8.0 → 9.9.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.
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
{
|
|
36
36
|
"@id": "https://linkeddata.cultureelerfgoed.nl/cho-kennis/id/rijksmonument/",
|
|
37
37
|
"@type": "DataDownload",
|
|
38
|
-
"contentUrl": "https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/
|
|
38
|
+
"contentUrl": "https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql",
|
|
39
39
|
"encodingFormat": "application/sparql-query",
|
|
40
40
|
"potentialAction": [
|
|
41
41
|
{
|
|
@@ -1,47 +1,62 @@
|
|
|
1
|
-
PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo
|
|
1
|
+
PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>
|
|
2
2
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
3
3
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
4
4
|
PREFIX ceosp: <https://linkeddata.cultureelerfgoed.nl/def/ceosp/>
|
|
5
5
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
6
|
+
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
|
|
6
7
|
|
|
7
8
|
CONSTRUCT {
|
|
8
|
-
?
|
|
9
|
+
?monument_uri a skos:Concept ;
|
|
9
10
|
skos:prefLabel ?rijksmonumentnummer_tn ;
|
|
10
11
|
skos:altLabel ?adres;
|
|
11
12
|
skos:scopeNote ?scopeNote ;
|
|
12
13
|
rdfs:seeAlso ?rdfs_seeAlso .
|
|
13
14
|
}
|
|
14
15
|
WHERE {
|
|
15
|
-
VALUES ?
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
OPTIONAL { ?uri ceosp:volledigAdres ?adres_zoeken }
|
|
19
|
-
OPTIONAL { ?uri ceosp:postcode ?postcode1 }
|
|
20
|
-
OPTIONAL { ?uri ceosp:heeftGemeente ?woonplaats }
|
|
21
|
-
OPTIONAL { ?uri ceosp:oorspronkelijkeFunctie ?functie }
|
|
22
|
-
OPTIONAL { ?uri ceosp:redengevendeOmschrijving ?redengevende_omschrijving }
|
|
23
|
-
OPTIONAL { ?uri ceo:isOnderdeelVanComplex/ceo:heeftHoofdobject/ceo:rijksmonumentnummer ?rijksmonumentnummer_hoofdobject }
|
|
16
|
+
VALUES ?monument_uri {?uris }
|
|
17
|
+
|
|
18
|
+
|
|
24
19
|
|
|
20
|
+
?monument_uri ceo:rijksmonumentnummer ?rijksmonumentnummer .
|
|
21
|
+
?monument_uri a ceo:Rijksmonument .
|
|
22
|
+
OPTIONAL { ?monument_uri ceo:heeftNaam/ceo:naam ?naam } .
|
|
23
|
+
OPTIONAL { ?monument_uri ceo:heeftBasisregistratieRelatie/ceo:heeftGemeente/skos:prefLabel ?woonplaats }
|
|
24
|
+
OPTIONAL { ?monument_uri ceo:heeftOorspronkelijkeFunctie/ceo:heeftFunctieNaam/skos:prefLabel ?functie }
|
|
25
|
+
OPTIONAL { ?monument_uri ceo:heeftOmschrijving ?redengevende_omschrijving .
|
|
26
|
+
?redengevende_omschrijving ceo:omschrijving ?omschrijving_label .
|
|
27
|
+
?redengevende_omschrijving ceo:formeelStandpunt "1"^^xsd:boolean .}
|
|
28
|
+
OPTIONAL { ?monument_uri ceo:isOnderdeelVanComplex/ceo:heeftHoofdobject/ceo:rijksmonumentnummer ?rijksmonumentnummer_hoofdobject }
|
|
29
|
+
OPTIONAL { ?monument_uri ceo:heeftBasisregistratieRelatie/ceo:heeftBAGRelatie/ceo:volledigAdres ?adres1 }
|
|
30
|
+
|
|
31
|
+
BIND(CONCAT(
|
|
32
|
+
IF(BOUND(?woonplaats), CONCAT(?woonplaats, " "), ""),
|
|
33
|
+
IF(BOUND(?omschrijving_label), CONCAT(?omschrijving_label, " "), ""),
|
|
34
|
+
IF(BOUND(?adres1), CONCAT(?adres1, " "), "")
|
|
35
|
+
) AS ?combinedLabels)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
25
39
|
BIND(URI(CONCAT("https://monumentenregister.cultureelerfgoed.nl/monumenten/", ?rijksmonumentnummer)) as ?rdfs_seeAlso)
|
|
26
|
-
BIND(STRAFTER(STR(?woonplaats), "owms/terms/") AS ?owms_string)
|
|
27
40
|
BIND(CONCAT("Rijksmonumentnummer ", ?rijksmonumentnummer) as ?rijksmonumentnummer_tn)
|
|
28
41
|
BIND(
|
|
29
|
-
CONCAT(
|
|
30
|
-
IF(BOUND(?woonplaats), CONCAT(" ",?
|
|
42
|
+
CONCAT(?rijksmonumentnummer_tn,",",
|
|
43
|
+
IF(BOUND(?woonplaats), CONCAT(" ",?woonplaats, ", "), ""),
|
|
31
44
|
IF(BOUND(?functie), CONCAT("Oorspronkelijke functie: ", ?functie), ""),
|
|
32
|
-
|
|
45
|
+
IF(BOUND(?naam), CONCAT(", Naam: ", ?naam), ""),
|
|
33
46
|
IF(BOUND(?rijksmonumentnummer_hoofdobject) && ?rijksmonumentnummer != ?rijksmonumentnummer_hoofdobject,
|
|
34
47
|
CONCAT(", Rijksmonumentnummer van hoofdobject: ", ?rijksmonumentnummer_hoofdobject),
|
|
35
|
-
|
|
48
|
+
""
|
|
36
49
|
)
|
|
37
|
-
) as ?scopeNote
|
|
38
|
-
|
|
50
|
+
) as ?scopeNote)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
39
54
|
{
|
|
40
|
-
SELECT ?
|
|
41
|
-
?
|
|
42
|
-
|
|
55
|
+
SELECT ?monument_uri (MIN(?optional_altlabel) AS ?adres) WHERE {
|
|
56
|
+
?monument_uri ceo:rijksmonumentnummer ?rijksmonumentnummer .
|
|
57
|
+
OPTIONAL { ?monument_uri ceo:heeftBasisregistratieRelatie/ceo:heeftBAGRelatie/ceo:volledigAdres ?adres1 }
|
|
43
58
|
BIND(IF(BOUND(?adres1), ?adres1, "Geen adres beschikbaar") AS ?optional_altlabel)
|
|
44
59
|
}
|
|
60
|
+
GROUP BY ?monument_uri
|
|
45
61
|
}
|
|
46
|
-
}
|
|
47
|
-
LIMIT 1000
|
|
62
|
+
} LIMIT 1000
|
|
@@ -6,6 +6,8 @@ PREFIX luc: <http://www.ontotext.com/connectors/lucene#>
|
|
|
6
6
|
PREFIX luc-index: <http://www.ontotext.com/connectors/lucene/instance#>
|
|
7
7
|
PREFIX omeka: <http://omeka.org/s/vocabs/o#>
|
|
8
8
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
|
9
|
+
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
10
|
+
PREFIX o: <http://omeka.org/s/vocabs/o#>
|
|
9
11
|
|
|
10
12
|
CONSTRUCT {
|
|
11
13
|
?piduri a skos:Concept ;
|
|
@@ -15,7 +17,7 @@ CONSTRUCT {
|
|
|
15
17
|
skos:related ?related_uri ;
|
|
16
18
|
skos:exactMatch ?exactMatch_uri .
|
|
17
19
|
?related_uri skos:prefLabel ?related_prefLabel .
|
|
18
|
-
?exactMatch_uri skos:prefLabel ?
|
|
20
|
+
?exactMatch_uri skos:prefLabel ?exactMatch_label .
|
|
19
21
|
} WHERE {
|
|
20
22
|
?search a luc-index:straten_index ;
|
|
21
23
|
luc:query ?query ;
|
|
@@ -49,8 +51,7 @@ CONSTRUCT {
|
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
OPTIONAL {
|
|
52
|
-
?uri
|
|
53
|
-
?exactMatch_uri
|
|
54
|
-
FILTER(?exactMatch_uri != ?uri)
|
|
54
|
+
?uri rdfs:seeAlso ?exactMatch_uri .
|
|
55
|
+
?exactMatch_uri o:label ?exactMatch_label .
|
|
55
56
|
}
|
|
56
57
|
} ORDER BY DESC(?score) LIMIT 100
|
|
@@ -1,49 +1,64 @@
|
|
|
1
|
-
PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo
|
|
1
|
+
PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>
|
|
2
2
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
3
3
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
4
4
|
PREFIX ceosp: <https://linkeddata.cultureelerfgoed.nl/def/ceosp/>
|
|
5
5
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
6
|
+
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
|
|
6
7
|
|
|
7
8
|
CONSTRUCT {
|
|
9
|
+
|
|
8
10
|
?monument_uri a skos:Concept ;
|
|
9
11
|
skos:prefLabel ?rijksmonumentnummer_tn ;
|
|
10
12
|
skos:altLabel ?adres ;
|
|
11
13
|
skos:scopeNote ?scopeNote ;
|
|
12
14
|
rdfs:seeAlso ?rdfs_seeAlso .
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
WHERE {
|
|
19
|
+
|
|
20
|
+
FILTER(CONTAINS(LCASE(?combinedLabels), LCASE(?query)))
|
|
19
21
|
|
|
20
22
|
?monument_uri ceo:rijksmonumentnummer ?rijksmonumentnummer .
|
|
21
|
-
|
|
22
|
-
OPTIONAL { ?monument_uri
|
|
23
|
-
OPTIONAL { ?monument_uri
|
|
24
|
-
OPTIONAL { ?monument_uri
|
|
23
|
+
?monument_uri a ceo:Rijksmonument .
|
|
24
|
+
OPTIONAL { ?monument_uri ceo:heeftNaam/ceo:naam ?naam } .
|
|
25
|
+
OPTIONAL { ?monument_uri ceo:heeftBasisregistratieRelatie/ceo:heeftGemeente/skos:prefLabel ?woonplaats }
|
|
26
|
+
OPTIONAL { ?monument_uri ceo:heeftOorspronkelijkeFunctie/ceo:heeftFunctieNaam/skos:prefLabel ?functie }
|
|
27
|
+
OPTIONAL { ?monument_uri ceo:heeftOmschrijving ?redengevende_omschrijving .
|
|
28
|
+
?redengevende_omschrijving ceo:omschrijving ?omschrijving_label .
|
|
29
|
+
?redengevende_omschrijving ceo:formeelStandpunt "1"^^xsd:boolean .}
|
|
25
30
|
OPTIONAL { ?monument_uri ceo:isOnderdeelVanComplex/ceo:heeftHoofdobject/ceo:rijksmonumentnummer ?rijksmonumentnummer_hoofdobject }
|
|
31
|
+
OPTIONAL { ?monument_uri ceo:heeftBasisregistratieRelatie/ceo:heeftBAGRelatie/ceo:volledigAdres ?adres1 }
|
|
32
|
+
|
|
33
|
+
BIND(CONCAT(
|
|
34
|
+
IF(BOUND(?woonplaats), CONCAT(?woonplaats, " "), ""),
|
|
35
|
+
IF(BOUND(?omschrijving_label), CONCAT(?omschrijving_label, " "), ""),
|
|
36
|
+
IF(BOUND(?adres1), CONCAT(?adres1, " "), "")
|
|
37
|
+
) AS ?combinedLabels)
|
|
38
|
+
|
|
26
39
|
|
|
40
|
+
|
|
27
41
|
BIND(URI(CONCAT("https://monumentenregister.cultureelerfgoed.nl/monumenten/", ?rijksmonumentnummer)) as ?rdfs_seeAlso)
|
|
28
|
-
BIND(STRAFTER(STR(?woonplaats), "owms/terms/") AS ?owms_string)
|
|
29
42
|
BIND(CONCAT("Rijksmonumentnummer ", ?rijksmonumentnummer) as ?rijksmonumentnummer_tn)
|
|
30
43
|
BIND(
|
|
31
|
-
CONCAT(
|
|
32
|
-
IF(BOUND(?woonplaats), CONCAT(" ",?
|
|
44
|
+
CONCAT(?rijksmonumentnummer_tn,",",
|
|
45
|
+
IF(BOUND(?woonplaats), CONCAT(" ",?woonplaats, ", "), ""),
|
|
33
46
|
IF(BOUND(?functie), CONCAT("Oorspronkelijke functie: ", ?functie), ""),
|
|
34
|
-
|
|
47
|
+
IF(BOUND(?naam), CONCAT(", Naam: ", ?naam), ""),
|
|
35
48
|
IF(BOUND(?rijksmonumentnummer_hoofdobject) && ?rijksmonumentnummer != ?rijksmonumentnummer_hoofdobject,
|
|
36
49
|
CONCAT(", Rijksmonumentnummer van hoofdobject: ", ?rijksmonumentnummer_hoofdobject),
|
|
37
50
|
""
|
|
38
51
|
)
|
|
39
|
-
) as ?scopeNote
|
|
40
|
-
|
|
52
|
+
) as ?scopeNote)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
41
56
|
{
|
|
42
|
-
SELECT ?monument_uri
|
|
57
|
+
SELECT ?monument_uri (MIN(?optional_altlabel) AS ?adres) WHERE {
|
|
43
58
|
?monument_uri ceo:rijksmonumentnummer ?rijksmonumentnummer .
|
|
44
|
-
|
|
59
|
+
OPTIONAL { ?monument_uri ceo:heeftBasisregistratieRelatie/ceo:heeftBAGRelatie/ceo:volledigAdres ?adres1 }
|
|
45
60
|
BIND(IF(BOUND(?adres1), ?adres1, "Geen adres beschikbaar") AS ?optional_altlabel)
|
|
46
61
|
}
|
|
47
62
|
GROUP BY ?monument_uri
|
|
48
63
|
}
|
|
49
|
-
}
|
|
64
|
+
} 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.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Catalog of Network of Terms datasets",
|
|
6
6
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"jsonld-streaming-parser": "^3.4.0",
|
|
36
36
|
"rdf-data-factory": "^1.1.2",
|
|
37
37
|
"rdf-ext": "^2.5.2",
|
|
38
|
-
"rdf-validate-shacl": "^0.5.
|
|
38
|
+
"rdf-validate-shacl": "^0.5.6"
|
|
39
39
|
},
|
|
40
40
|
"bugs": {
|
|
41
41
|
"url": "https://github.com/netwerk-digitaal-erfgoed/network-of-terms-catalog/issues"
|