Skip to content

Commit

Permalink
Automated update of sparql queries
Browse files Browse the repository at this point in the history
  • Loading branch information
rschalkrce committed Nov 27, 2023
1 parent 2d770a5 commit 517314e
Show file tree
Hide file tree
Showing 28 changed files with 1,108 additions and 1,108 deletions.
68 changes: 34 additions & 34 deletions LDV/Aantal-artefacten.rq
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
#+ name: Aantal-artefacten
#+ endpoint: https://api.linkeddata.cultureelerfgoed.nl/datasets/patrick-mout/Archeologisch-Basis-Register/services/Archeologisch-Informatie-Systeem---thesa/sparql

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT (count(distinct ?artefactUri) as ?totaal)
(count(distinct ?oudeArtefactUri) as ?oud)
(count(distinct ?nieuweArtefactUri) as ?nieuw)
WHERE {
{
<https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/22cbb070-6542-48f0-8afe-7d98d398cc0b> skos:narrower+ ?artefactUri .
?artefactUri skos:prefLabel ?artefact .
# MINUS { ?artefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/hasConceptStatus> <https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/a166e634-a679-42ae-8362-d9d9c69177f9> } . MINUS { ?artefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/hasConceptStatus> <https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/d9995dd3-9198-4229-8700-65330be1cbfd>
#}
}
UNION
{
<https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/22cbb070-6542-48f0-8afe-7d98d398cc0b> skos:narrower+ ?oudeArtefactUri . ?oudeArtefactUri skos:prefLabel ?artefact ; <https://digitaalerfgoed-test.poolparty.biz/def/rnce/codeAbr> ?codeAbr .
#MINUS { ?oudeArtefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/hasConceptStatus> <https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/a166e634-a679-42ae-8362-d9d9c69177f9> } . MINUS { ?oudeArtefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/hasConceptStatus> <https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/d9995dd3-9198-4229-8700-65330be1cbfd>
# }

}
UNION
{
<https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/22cbb070-6542-48f0-8afe-7d98d398cc0b> skos:narrower+ ?nieuweArtefactUri . FILTER NOT EXISTS { ?nieuweArtefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/codeAbr> ?codeAbr } .
#MINUS { ?nieuweArtefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/hasConceptStatus> <https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/a166e634-a679-42ae-8362-d9d9c69177f9> } . MINUS { ?nieuweArtefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/hasConceptStatus> <https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/d9995dd3-9198-4229-8700-65330be1cbfd>
# }


}
}

#+ name: Aantal-artefacten
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/patrick-mout/Archeologisch-Basis-Register/services/Archeologisch-Informatie-Systeem---thesa/sparql

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT (count(distinct ?artefactUri) as ?totaal)
(count(distinct ?oudeArtefactUri) as ?oud)
(count(distinct ?nieuweArtefactUri) as ?nieuw)
WHERE {
{
<https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/22cbb070-6542-48f0-8afe-7d98d398cc0b> skos:narrower+ ?artefactUri .
?artefactUri skos:prefLabel ?artefact .
# MINUS { ?artefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/hasConceptStatus> <https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/a166e634-a679-42ae-8362-d9d9c69177f9> } . MINUS { ?artefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/hasConceptStatus> <https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/d9995dd3-9198-4229-8700-65330be1cbfd>
#}
}
UNION
{
<https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/22cbb070-6542-48f0-8afe-7d98d398cc0b> skos:narrower+ ?oudeArtefactUri . ?oudeArtefactUri skos:prefLabel ?artefact ; <https://digitaalerfgoed-test.poolparty.biz/def/rnce/codeAbr> ?codeAbr .
#MINUS { ?oudeArtefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/hasConceptStatus> <https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/a166e634-a679-42ae-8362-d9d9c69177f9> } . MINUS { ?oudeArtefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/hasConceptStatus> <https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/d9995dd3-9198-4229-8700-65330be1cbfd>
# }

}
UNION
{
<https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/22cbb070-6542-48f0-8afe-7d98d398cc0b> skos:narrower+ ?nieuweArtefactUri . FILTER NOT EXISTS { ?nieuweArtefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/codeAbr> ?codeAbr } .
#MINUS { ?nieuweArtefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/hasConceptStatus> <https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/a166e634-a679-42ae-8362-d9d9c69177f9> } . MINUS { ?nieuweArtefactUri <https://digitaalerfgoed-test.poolparty.biz/def/rnce/hasConceptStatus> <https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/d9995dd3-9198-4229-8700-65330be1cbfd>
# }


}
}

94 changes: 47 additions & 47 deletions LDV/Berscgermde-gebedshuizen-in-Nederland.rq
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
#+ name: Berscgermde-gebedshuizen-in-Nederland
#+ endpoint: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

PREFIX rnce: <https://data.cultureelerfgoed.nl/id/rnce#>
PREFIX ceox: <https://linkeddata.cultureelerfgoed.nl/def/ceox#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owms: <http://standaarden.overheid.nl/owms/terms/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX graph: <https://linkeddata.cultureelerfgoed.nl/graph/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix rn: <https://data.cultureelerfgoed.nl/term/id/rn/>
PREFIX overheid: <http://standaarden.overheid.nl/owms/terms/>

SELECT distinct ?rijksmonument ?naam ?rijksmonumentnummer ?datumInschrijving ?provincieLabel ?label ?type

WHERE
{
GRAPH graph:instanties-rce {
?rijksmonument ceo:datumInschrijvingInMonumentenregister ?datumInschrijving.
?rijksmonument ceo:heeftOorspronkelijkeFunctie ?functie.
OPTIONAL {?rijksmonument ceo:heeftNaam/ceo:naam ?naam.}
?rijksmonument ceo:rijksmonumentnummer ?rijksmonumentnummer.
?rijksmonument ceo:heeftBasisregistratieRelatie/ceo:heeftProvincie ?prov .
?rijksmonument ceo:heeftJuridischeStatus <https://data.cultureelerfgoed.nl/term/id/rn/b2d9a59a-fe1e-4552-9a05-3c2acddff864>.
?functie ceo:heeftFunctieNaam ?uri.

}
{ GRAPH graph:owms {
?prov skos:prefLabel ?provincie .
}
{
GRAPH graph:bebouwdeomgeving {
<https://data.cultureelerfgoed.nl/term/id/rn/1eeb48df-adbb-44b2-bcf1-33e3fe902413> skos:narrower ?narrow.
?narrow skos:prefLabel ?label.
}
VALUES (?label ?narrow) {
("Religieuze gebouwen" <https://data.cultureelerfgoed.nl/term/id/rn/25fac0f1-77a2-4587-ab04-dfcb66959dd8>)
}
?narrow skos:narrower+ ?uri.
?uri skos:prefLabel ?uriSub.
bind(replace(?uriSub, "\\s\\(.*\\)|\\(.*\\)", "") AS ?type)
}
BIND(str(?provincie) as ?provincieLabel)
}
}
#+ name: Berscgermde-gebedshuizen-in-Nederland
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

PREFIX rnce: <https://data.cultureelerfgoed.nl/id/rnce#>
PREFIX ceox: <https://linkeddata.cultureelerfgoed.nl/def/ceox#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owms: <http://standaarden.overheid.nl/owms/terms/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX graph: <https://linkeddata.cultureelerfgoed.nl/graph/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix rn: <https://data.cultureelerfgoed.nl/term/id/rn/>
PREFIX overheid: <http://standaarden.overheid.nl/owms/terms/>

SELECT distinct ?rijksmonument ?naam ?rijksmonumentnummer ?datumInschrijving ?provincieLabel ?label ?type

WHERE
{
GRAPH graph:instanties-rce {
?rijksmonument ceo:datumInschrijvingInMonumentenregister ?datumInschrijving.
?rijksmonument ceo:heeftOorspronkelijkeFunctie ?functie.
OPTIONAL {?rijksmonument ceo:heeftNaam/ceo:naam ?naam.}
?rijksmonument ceo:rijksmonumentnummer ?rijksmonumentnummer.
?rijksmonument ceo:heeftBasisregistratieRelatie/ceo:heeftProvincie ?prov .
?rijksmonument ceo:heeftJuridischeStatus <https://data.cultureelerfgoed.nl/term/id/rn/b2d9a59a-fe1e-4552-9a05-3c2acddff864>.
?functie ceo:heeftFunctieNaam ?uri.

}
{ GRAPH graph:owms {
?prov skos:prefLabel ?provincie .
}
{
GRAPH graph:bebouwdeomgeving {
<https://data.cultureelerfgoed.nl/term/id/rn/1eeb48df-adbb-44b2-bcf1-33e3fe902413> skos:narrower ?narrow.
?narrow skos:prefLabel ?label.
}
VALUES (?label ?narrow) {
("Religieuze gebouwen" <https://data.cultureelerfgoed.nl/term/id/rn/25fac0f1-77a2-4587-ab04-dfcb66959dd8>)
}
?narrow skos:narrower+ ?uri.
?uri skos:prefLabel ?uriSub.
bind(replace(?uriSub, "\\s\\(.*\\)|\\(.*\\)", "") AS ?type)
}
BIND(str(?provincie) as ?provincieLabel)
}
}
order By ?naam
98 changes: 49 additions & 49 deletions LDV/Beschermde-religieuze-gebouwen-op-kaart.rq
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
#+ name: Beschermde-religieuze-gebouwen-op-kaart
#+ endpoint: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

PREFIX rnce: <https://data.cultureelerfgoed.nl/id/rnce#>
PREFIX ceox: <https://linkeddata.cultureelerfgoed.nl/def/ceox#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owms: <http://standaarden.overheid.nl/owms/terms/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX graph: <https://linkeddata.cultureelerfgoed.nl/graph/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix rn: <https://data.cultureelerfgoed.nl/term/id/rn/>
PREFIX overheid: <http://standaarden.overheid.nl/owms/terms/>

SELECT distinct ?rijksmonument ?naam ?rijksmonumentnummer ?datumInschrijving ?provincieLabel ?label ?type ?shape ?shapeLabel

WHERE
{
GRAPH graph:instanties-rce {
?rijksmonument ceo:datumInschrijvingInMonumentenregister ?datumInschrijving.
?rijksmonument ceo:heeftOorspronkelijkeFunctie ?functie.
OPTIONAL {?rijksmonument ceo:heeftNaam/ceo:naam ?naam.}
?rijksmonument ceo:rijksmonumentnummer ?rijksmonumentnummer.
?rijksmonument ceo:heeftBasisregistratieRelatie/ceo:heeftProvincie ?prov .
?rijksmonument ceo:heeftJuridischeStatus <https://data.cultureelerfgoed.nl/term/id/rn/b2d9a59a-fe1e-4552-9a05-3c2acddff864>.
?functie ceo:heeftFunctieNaam ?uri.
?rijksmonument ceo:heeftGeometrie/geo:asWKT ?shape.

}
{ GRAPH graph:owms {
?prov skos:prefLabel ?provincie .
}
{
GRAPH graph:bebouwdeomgeving {
<https://data.cultureelerfgoed.nl/term/id/rn/1eeb48df-adbb-44b2-bcf1-33e3fe902413> skos:narrower ?narrow.
?narrow skos:prefLabel ?label.
}
VALUES (?label ?narrow) {
("Religieuze gebouwen" <https://data.cultureelerfgoed.nl/term/id/rn/25fac0f1-77a2-4587-ab04-dfcb66959dd8>)
}
?narrow skos:narrower+ ?uri.
?uri skos:prefLabel ?uriSub.
bind(replace(?uriSub, "\\s\\(.*\\)|\\(.*\\)", "") AS ?type)
}
BIND(str(?provincie) as ?provincieLabel)
}
# BIND(strdt(concat(?type, " - ", ?naam, " - ", ?datumInschrijving, " - rijksmonument ",'<a href="https://monumentenregister.cultureelerfgoed.nl/monumenten/',uri(?rijksmonumentnummer),'" target="_blank">',str(?rijksmonumentnummer),'</a>'),rdf:HTML) AS ?shapeLabel)
}
#+ name: Beschermde-religieuze-gebouwen-op-kaart
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

PREFIX rnce: <https://data.cultureelerfgoed.nl/id/rnce#>
PREFIX ceox: <https://linkeddata.cultureelerfgoed.nl/def/ceox#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owms: <http://standaarden.overheid.nl/owms/terms/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX graph: <https://linkeddata.cultureelerfgoed.nl/graph/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix rn: <https://data.cultureelerfgoed.nl/term/id/rn/>
PREFIX overheid: <http://standaarden.overheid.nl/owms/terms/>

SELECT distinct ?rijksmonument ?naam ?rijksmonumentnummer ?datumInschrijving ?provincieLabel ?label ?type ?shape ?shapeLabel

WHERE
{
GRAPH graph:instanties-rce {
?rijksmonument ceo:datumInschrijvingInMonumentenregister ?datumInschrijving.
?rijksmonument ceo:heeftOorspronkelijkeFunctie ?functie.
OPTIONAL {?rijksmonument ceo:heeftNaam/ceo:naam ?naam.}
?rijksmonument ceo:rijksmonumentnummer ?rijksmonumentnummer.
?rijksmonument ceo:heeftBasisregistratieRelatie/ceo:heeftProvincie ?prov .
?rijksmonument ceo:heeftJuridischeStatus <https://data.cultureelerfgoed.nl/term/id/rn/b2d9a59a-fe1e-4552-9a05-3c2acddff864>.
?functie ceo:heeftFunctieNaam ?uri.
?rijksmonument ceo:heeftGeometrie/geo:asWKT ?shape.

}
{ GRAPH graph:owms {
?prov skos:prefLabel ?provincie .
}
{
GRAPH graph:bebouwdeomgeving {
<https://data.cultureelerfgoed.nl/term/id/rn/1eeb48df-adbb-44b2-bcf1-33e3fe902413> skos:narrower ?narrow.
?narrow skos:prefLabel ?label.
}
VALUES (?label ?narrow) {
("Religieuze gebouwen" <https://data.cultureelerfgoed.nl/term/id/rn/25fac0f1-77a2-4587-ab04-dfcb66959dd8>)
}
?narrow skos:narrower+ ?uri.
?uri skos:prefLabel ?uriSub.
bind(replace(?uriSub, "\\s\\(.*\\)|\\(.*\\)", "") AS ?type)
}
BIND(str(?provincie) as ?provincieLabel)
}
# BIND(strdt(concat(?type, " - ", ?naam, " - ", ?datumInschrijving, " - rijksmonument ",'<a href="https://monumentenregister.cultureelerfgoed.nl/monumenten/',uri(?rijksmonumentnummer),'" target="_blank">',str(?rijksmonumentnummer),'</a>'),rdf:HTML) AS ?shapeLabel)
}
28 changes: 14 additions & 14 deletions LDV/De-ABR-code-van-een-artefact.rq
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#+ name: De-ABR-code-van-een-artefact
#+ endpoint: https://api.linkeddata.cultureelerfgoed.nl/datasets/patrick-mout/Archeologisch-Basis-Register/services/Archeologisch-Informatie-Systeem---thesa/sparql

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rnce: <https://digitaalerfgoed-test.poolparty.biz/def/rnce/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?ABRcode

WHERE {

<https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/22cbb070-6542-48f0-8afe-7d98d398cc0b> skos:narrower+ ?artefactUri . ?artefactUri a rnce:ArtefactAbr ; skos:prefLabel ?artefact ; rnce:codeAbr ?ABRcode .
#+ name: De-ABR-code-van-een-artefact
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/patrick-mout/Archeologisch-Basis-Register/services/Archeologisch-Informatie-Systeem---thesa/sparql

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rnce: <https://digitaalerfgoed-test.poolparty.biz/def/rnce/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?ABRcode

WHERE {

<https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/22cbb070-6542-48f0-8afe-7d98d398cc0b> skos:narrower+ ?artefactUri . ?artefactUri a rnce:ArtefactAbr ; skos:prefLabel ?artefact ; rnce:codeAbr ?ABRcode .
}
20 changes: 10 additions & 10 deletions LDV/De-omschrijving-van-een-artefact.rq
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#+ name: De-omschrijving-van-een-artefact
#+ endpoint: https://api.linkeddata.cultureelerfgoed.nl/datasets/patrick-mout/Archeologisch-Basis-Register/services/Archeologisch-Informatie-Systeem---thesa/sparql

PREFIX rnce: <https://digitaalerfgoed-test.poolparty.biz/def/rnce/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?omschrijving WHERE {
<https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/22cbb070-6542-48f0-8afe-7d98d398cc0b> skos:narrower+ ?artefactUri . ?artefactUri skos:prefLabel ?artefact ; skos:scopeNote ?omschrijving2 . BIND(str(?omschrijving2) as ?omschrijving)
#+ name: De-omschrijving-van-een-artefact
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/patrick-mout/Archeologisch-Basis-Register/services/Archeologisch-Informatie-Systeem---thesa/sparql

PREFIX rnce: <https://digitaalerfgoed-test.poolparty.biz/def/rnce/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?omschrijving WHERE {
<https://digitaalerfgoed-test.poolparty.biz/term/id/pre/rn/22cbb070-6542-48f0-8afe-7d98d398cc0b> skos:narrower+ ?artefactUri . ?artefactUri skos:prefLabel ?artefact ; skos:scopeNote ?omschrijving2 . BIND(str(?omschrijving2) as ?omschrijving)
}
34 changes: 17 additions & 17 deletions LDV/De-periode-waarin-een-artefact-voorkwam.rq
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#+ name: De-periode-waarin-een-artefact-voorkwam
#+ endpoint: https://api.linkeddata.cultureelerfgoed.nl/datasets/patrick-mout/Archeologisch-Basis-Register/services/Archeologisch-Informatie-Systeem---thesa/sparql

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rnce: <https://digitaalerfgoed-test.poolparty.biz/def/rnce/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?artefact ?periode

WHERE {
?artefactUri a rnce:ArtefactAbr ;
skos:prefLabel ?artefact ;
rnce:hasEndPeriodAbr ?endPeriodUri ;
rnce:hasBeginPeriodAbr ?beginPeriodUri .
?beginPeriodUri skos:prefLabel ?beginPeriode .
?endPeriodUri skos:prefLabel ?eindPeriode .
BIND (IF (?beginPeriode = ?eindPeriode, str(?beginPeriode), CONCAT(str(?beginPeriode), " - ", str(?eindPeriode))) AS ?periode)
#+ name: De-periode-waarin-een-artefact-voorkwam
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/patrick-mout/Archeologisch-Basis-Register/services/Archeologisch-Informatie-Systeem---thesa/sparql

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rnce: <https://digitaalerfgoed-test.poolparty.biz/def/rnce/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?artefact ?periode

WHERE {
?artefactUri a rnce:ArtefactAbr ;
skos:prefLabel ?artefact ;
rnce:hasEndPeriodAbr ?endPeriodUri ;
rnce:hasBeginPeriodAbr ?beginPeriodUri .
?beginPeriodUri skos:prefLabel ?beginPeriode .
?endPeriodUri skos:prefLabel ?eindPeriode .
BIND (IF (?beginPeriode = ?eindPeriode, str(?beginPeriode), CONCAT(str(?beginPeriode), " - ", str(?eindPeriode))) AS ?periode)
}
Loading

0 comments on commit 517314e

Please sign in to comment.