Skip to content

Commit

Permalink
update rqs
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenSchalk committed Nov 30, 2023
1 parent a443f46 commit 24058e3
Show file tree
Hide file tree
Showing 303 changed files with 10,560 additions and 261 deletions.
28 changes: 28 additions & 0 deletions LDV/0b5c25da-150e-4fc6-b994-62f73b41243b.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#+ name: 0b5c25da-150e-4fc6-b994-62f73b41243b
#+ description: Of als tabel
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?rijksmonument ?rijksmonumentnummer ?naam (sample(?geografische_locatie) AS ?geo) (sample(?afbeelding) AS ?plaatje) ?gebruikt_materiaal
{
service <https://query.wikidata.org/sparql>
{
?rijksmonument wdt:P1435 wd:Q916333.
?rijksmonument rdfs:label ?naam .
FILTER (lang(?naam) = "nl")
?rijksmonument wdt:P31 wd:Q39715.
?rijksmonument wdt:P359 ?rijksmonumentnummer .
?rijksmonument wdt:P625 ?geografische_locatie.
?rijksmonument wdt:P18 ?afbeelding.
OPTIONAL { ?rijksmonument wdt:P186/rdfs:label ?gebruikt_materiaal.
FILTER (lang(?gebruikt_materiaal) = "nl")}
}
}
ORDER BY ?rijksmonumentnummer

LIMIT 100
21 changes: 21 additions & 0 deletions LDV/346691d0-3eb6-4f14-a7e7-26b6db04993c.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#+ name: 346691d0-3eb6-4f14-a7e7-26b6db04993c
#+ description: Zoeken in Wikidata
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT * WHERE {

SELECT DISTINCT ?rijksmonument (sample(?geografische_locatie) As ?wikiloco) ?rijksmonumentnummer WHERE {
SERVICE <https://query.wikidata.org/sparql>
{
?rijksmonument wdt:P1435 wd:Q916333.
?rijksmonument wdt:P31 wd:Q39715.
?rijksmonument wdt:P625 ?geografische_locatie.
?rijksmonument wdt:P359 ?rijksmonumentnummer.
}}
}
ORDER BY ?rijksmonumentnummer
LIMIT 100
44 changes: 44 additions & 0 deletions LDV/67c0eaa4-b9e9-4ae7-a066-9ee4c1c26c29.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#+ name: 67c0eaa4-b9e9-4ae7-a066-9ee4c1c26c29
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>
PREFIX ceox: <https://linkeddata.cultureelerfgoed.nl/def/ceox#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>

# Vuurtoren (bouwwerk) data uit Wikidata matchen met ceo
CONSTRUCT {
# Constructen rijksmonument en label uit wikidata. Matchen wikidata en ceo op instantie van rijksmonumentnummer (?rm_nr)
?rm ceo:rijksmonumentnummer ?rm_nr
# Constructen functie vuurtorens + label uit wikidata
; ceo:heeftFunctieNaam
<https://data.cultureelerfgoed.nl/term/id/rn/e1caeac0-0ff1-4651-823c-458eb2c9c286> .
<https://data.cultureelerfgoed.nl/term/id/rn/e1caeac0-0ff1-4651-823c-458eb2c9c286> skos:prefLabel 'Vuurtoren'@nl .
?rm rdfs:label ?label .
# Constructen bouwjaar, jaar in gebruikname, jaar buitendiensttreding vuurtorens, aantal verdiepingen, hoogte, ARLHS-id, MarineTraffic_id
?rm ceox:bouwjaar ?jaarCreatie ; ceox:jaarInGebruikname ?jaarInGebruikname ; ceox:jaarBuitendienststelling ?jaarBuitendienststelling ; ceox:aantalVerdiepingen ?aantalVerdiepingen ; ceox:hoogte ?hoogte ; ceox:ARLHS_id ?ARLHS_id ; ceox:MarineTraffic_id ?MarineTraffic_id
}
# Ophalen data uit wiki
WHERE {
service <https://query.wikidata.org/sparql>
{
# Opvragen instanties van (P31) vuurtoren (Q39715) en land (P17) Nederland (Q55) en monumentstatus (P1435) Rijksmonument (Q916333) en allen met een rijksmonumentnummer (P359) + label
?nummerWiki wdt:P31 wd:Q39715 ; wdt:P17 wd:Q55 ; wdt:P1435 wd:Q916333 ; wdt:P359 ?rm_nr
; rdfs:label ?label
# Opvragen optioneel datum van oprichting of creatie (P571) en operationele ingebruikname (P729) en
# operationele buitendienststelling van instantie vuurtoren
. OPTIONAL {
?nummerWiki wdt:P571 ?datumCreatie . BIND (str(year(?datumCreatie)) AS ?jaarCreatie) } .
OPTIONAL {?nummerWiki wdt:P729 ?inGebruikname . BIND (str(year(?inGebruikname)) AS ?jaarInGebruikname)} .
OPTIONAL {?nummerWiki wdt:P730 ?buitendienststelling . BIND (str(year(?buitendienststelling)) AS ?jaarBuitendienststelling) } .
OPTIONAL {?nummerWiki wdt:P1101 ?aantalVerdiepingen } .
OPTIONAL {?nummerWiki wdt:P2048 ?hoogte } .
OPTIONAL {?nummerWiki wdt:P2980 ?ARLHS_id } .
OPTIONAL {?nummerWiki wdt:P3601 ?MarineTraffic_id } .
filter (lang(?label) = 'nl')
}
# Ophalen data uit ceo, iri rijksmonument (?rm) en rijksmonumentnummer (?rm_nr)
?rm ceo:rijksmonumentnummer ?rm_nr }
11 changes: 11 additions & 0 deletions LDV/7b59259d-4c39-48b8-b5f0-646f593ec418.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#+ name: 7b59259d-4c39-48b8-b5f0-646f593ec418
#+ description: Query om bij een CHO objectnummer het rijksmonumentnummer te vinden. Maar ook om bij en rijksmonumentnummer een CHO objectnummer te zoeken.
#- Een zogenaamd "Fransje".
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT * WHERE {
?rijksmonument a ceo:Rijksmonument ; ceo:cultuurhistorischObjectnummer ?cultuurhistorischObjectNummer ; ceo:rijksmonumentnummer ?rijksmonumentnummer .
} LIMIT 10
2 changes: 1 addition & 1 deletion LDV/Aantal-artefacten.rq
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#+ name: Aantal-artefacten
#+ endpoint: https://api.linkeddata.cultureelerfgoed.nl/datasets/patrick-mout/Archeologisch-Basis-Register/services/Archeologisch-Informatie-Systeem---thesa/sparql
#+ 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#>
Expand Down
15 changes: 15 additions & 0 deletions LDV/Aantal-complextypen-in-een-Pie.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#+ name: Aantal-complextypen-in-een-Pie
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>

select ?complextype (count(?i) as ?aantal) {
?i a ceo:ArcheologischComplex.
?i ceo:heeftType ?c.
?c ceo:heeftTypeNaam/skos:prefLabel ?complextype.
}
group by ?complextype
order by desc(?aantal)
57 changes: 57 additions & 0 deletions LDV/Aardbevingen-en-rijksmonumenten-in-Groni.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#+ name: Aardbevingen-en-rijksmonumenten-in-Groni
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/Aardbevingen/services/aardbevingen/sparql

#DECLAREER PREFIXES
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#>
prefix geo: <http://www.opengis.net/ont/geosparql#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>
prefix overheid: <http://standaarden.overheid.nl/owms/terms/>

#QUERY RESULTAAT CLAUSULE, DECLAREER VARIABELEN
SELECT ?shape_ab ?shape_abLabel ?shape_rm ?shape_rmLabel ?shape_abColor ?shape_rmColor
{
#?magnitude ?datum ?locatieNaam_ab ?shape_ab ?shape_rm ?locatieNaam_rm ?type (str(?rm_n) AS ?rijksmonumentnummer)
{
?ab <https://data.netwerkdigitaalerfgoed.nl/ca8725/def/Magnitude> ?magnitude .
?ab <https://data.netwerkdigitaalerfgoed.nl/ca8725/def/YYMMDD> ?datum_ab.
?ab geo:asWKT ?shape_ab .
?ab <https://data.netwerkdigitaalerfgoed.nl/ca8725/def/LOCATION> ?locatieNaam_ab .

#ROEP DE ANDERE DATASET AAN
SERVICE <https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/sparql> {
?rm a ceo:Rijksmonument .
?rm ceo:rijksmonumentnummer ?rm_n .
?rm ceo:heeftMonumentAard ?aard .
?rm ceo:heeftGeometrie/geo:asWKT ?shape_rm.
?rm ceo:heeftLocatieAanduiding/ceo:heeftLocatieAdres/ceo:woonplaatsnaam ?locatieNaam_rm .
?rm ceo:heeftLocatieAanduiding/ceo:locatienaam ?locatieNaam_ab .
?rm ceo:heeftLocatieAanduiding/ceo:heeftLocatieAdres/ceo:provincieCode 'GR' .
?rm ceo:heeftType/ceo:heeftTypeNaam/skos:prefLabel ?type.

#QUERY VERFIJNING / AANPASSINGEN
BIND(str(?rm_n) AS ?rijksmonumentnummer)
bind(concat('https://monumentenregister.cultureelerfgoed.nl/monumenten/',str(?rm_n)) as ?url)
#BIND(strdt(concat(substr(?datum_ab, 7, 4), '-', substr(?datum_ab, 5, 2), '-', substr(?datum_ab, 1, 4)), xsd:date) AS ?datum)

#VUL DE LABELS BIJ DE PUNAISES
}
bind(strdt(concat(
'<h3>',coalesce(?locatieNaam_ab),'</h3>',
'<dl>',
'<dt>Van magnitude:</dt><dd>',?magnitude,'</dd>',
'<dt>op datum:</dt><dd>',?datum_ab,'</dd>',
'</dl>'),rdf:HTML) as ?shape_abLabel)
bind("green" as ?shape_abColor)

bind(strdt(concat(
'<h5><a href="',str(?url),'" target="_blank">',?rijksmonumentnummer,'</a></h5>',
'<dl>',
'<dt>Type:</dt><dd>',?type,'</dd>',
'</dl>'),rdf:HTML) as ?shape_rmLabel)
bind("purple" as ?shape_rmColor)
}}

LIMIT 250
23 changes: 23 additions & 0 deletions LDV/Api-rijksmonument-test.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#+ name: Api-rijksmonument-test
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/sparql

PREFIX graph: <https://linkeddata.cultureelerfgoed.nl/graph/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>

select *



WHERE {
GRAPH graph:instanties-rce {
?rm rdf:type ceo:Rijksmonument ;
ceo:heeftJuridischeStatus <https://data.cultureelerfgoed.nl/term/id/rn/b2d9a59a-fe1e-4552-9a05-3c2acddff864> . ?rm ?p1 ?o1 .
optional { ?o1 ?p2 ?o2 . optional { ?o2 ?p3 ?o3 . optional { ?o3 ?p4 ?o4 . optional { ?o4 ?p5 ?o5 . optional { ?o5 ?p6 ?o6 . optional { ?o5 ?p6 ?o6


} } } } } }


}
} offset 0 limit 10000
18 changes: 18 additions & 0 deletions LDV/Archeologische-onderzoeksgebieden.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#+ name: Archeologische-onderzoeksgebieden
#+ description: Grondsporen
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>

select ?grondsporentype (count(?i) as ?aantal) {
?i a ceo:Grondsporen.
?i ceo:heeftType ?c.
?c ceo:heeftTypeNaam/skos:prefLabel ?grondsporentype.

}
group by ?grondsporentype
order by desc(?aantal)

2 changes: 1 addition & 1 deletion LDV/Berscgermde-gebedshuizen-in-Nederland.rq
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#+ name: Berscgermde-gebedshuizen-in-Nederland
#+ endpoint: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql
#+ 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#>
Expand Down
2 changes: 1 addition & 1 deletion LDV/Beschermde-religieuze-gebouwen-op-kaart.rq
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#+ name: Beschermde-religieuze-gebouwen-op-kaart
#+ endpoint: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql
#+ 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#>
Expand Down
52 changes: 52 additions & 0 deletions LDV/Broader-term-oefenen.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#+ name: Broader-term-oefenen
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

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/>

SELECT ?inschrijvingsjaar ?label (count(distinct(?rijksmonument)) as ?aantal_Rijksmonumenten)

WHERE
{
GRAPH graph:instanties-rce {
?rijksmonument ceo:datumInschrijvingInMonumentenregister ?datumInschrijving.
?rijksmonument ceo:heeftOorspronkelijkeFunctie ?functie.
?functie ceo:heeftFunctieNaam ?uri.
MINUS {?rijksmonument ceo:heeftJuridischeStatus <https://data.cultureelerfgoed.nl/term/id/rn/3e79bb7c-b459-4998-a9ed-78d91d069227>}

}
{
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) {
("Archeologie (N)" <https://data.cultureelerfgoed.nl/term/id/rn/d60159d2-8b55-47b7-8301-5ac82b0f2d7f>)
("Bestuursgebouwen, rechtsgebouwen en overheidsgebouwen" <https://data.cultureelerfgoed.nl/term/id/rn/74a847b5-1e0f-4f66-b910-90d2c8d9fa04>)
("Boerderijen, molens en bedrijven" <https://data.cultureelerfgoed.nl/term/id/rn/b8077035-db8f-47f1-ae1d-e64f75344fcf>)
("Cultuur, gezondheid en wetenschap" <https://data.cultureelerfgoed.nl/term/id/rn/0be0a6c9-0738-41cc-aaac-550d258c4261>)
("Handelsgebouwen, opslag- en transportgebouwen" <https://data.cultureelerfgoed.nl/term/id/rn/e88ccbf4-e41d-49bf-9876-0f71db0e6646>)
("Kastelen, landhuizen en parken" <https://data.cultureelerfgoed.nl/term/id/rn/b2511baf-3b70-4667-98dd-1b850c7ea53f>)
("N.V.T." <https://data.cultureelerfgoed.nl/term/id/rn/8d4228b6-7f8d-4b78-b870-901879af8c04>)
("Religieuze gebouwen" <https://data.cultureelerfgoed.nl/term/id/rn/25fac0f1-77a2-4587-ab04-dfcb66959dd8>)
("Sport, recreatie, vereniging en horeca" <https://data.cultureelerfgoed.nl/term/id/rn/b797b89c-1e0a-4ce7-869b-817cd98259b0>)
("Uitvaartcentra en begraafplaatsen" <https://data.cultureelerfgoed.nl/term/id/rn/1680dfc0-666a-4a01-9781-59e9af26ec51>)
("Verdedigingswerken en militaire gebouwen" <https://data.cultureelerfgoed.nl/term/id/rn/5013dcbc-1090-42e9-bc22-92de47e43783>)
("Voorwerpen op pleinen en dergelijke" <https://data.cultureelerfgoed.nl/term/id/rn/92cda3e4-8c6a-41dc-9a81-02f8aba88b25>)
("Weg- en waterbouwkundige werken" <https://data.cultureelerfgoed.nl/term/id/rn/11c897ed-d35e-4191-9254-7ab95d9d63bc>)
("Woningen en woningbouwcomplexen" <https://data.cultureelerfgoed.nl/term/id/rn/5b7dd16c-fa8d-4d68-984a-9ec0efc650d4>)

}
?narrow skos:narrower+ ?uri .
}
?rijksmonument a ceo:Rijksmonument .
}
BIND(year(xsd:dateTime(?datumInschrijving)) as ?jaarInschrijving)
FILTER (?jaarInschrijving >= "1964"^^<http://www.w3.org/2001/XMLSchema#integer> && ?jaarInschrijving <= "2022"^^<http://www.w3.org/2001/XMLSchema#integer>)
bind(concat(str(?jaarInschrijving)) as ?inschrijvingsjaar)
}

ORDER by ?inschrijvingsjaar desc(?label)
21 changes: 21 additions & 0 deletions LDV/CEO-properties.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#+ name: CEO-properties
#+ description: The query selects datatype properties in the specified namespace, while excluding object properties. Change the # for object properties.
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

#+ The query selects datatype properties in the specified namespace, while excluding object properties. Change the # for object properties.
#+ endpoint: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT ?p WHERE {
?p a owl:DatatypeProperty .
# The variable ?p is being queried as a datatype property.

#?p a owl:ObjectProperty .
# This line is commented out, indicating that object properties are not being included in the results.

FILTER (strstarts(str(?p), "https://linkeddata.cultureelerfgoed.nl/def/ceo#"))
# The FILTER clause is used to restrict the results to properties that have URIs starting with the specified namespace.
}

53 changes: 53 additions & 0 deletions LDV/Collectie-Het-Nieuwe-Instituut-Gerrit-Ri.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#+ name: Collectie-Het-Nieuwe-Instituut-Gerrit-Ri
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/cho/services/cho/sparql

PREFIX cidoc: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX sdo: <https://schema.org/>
PREFIX rel: <http://id.loc.gov/vocabulary/relators/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bif: <http://www.openlinksw.com/schemas/bif#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <https://schema.org/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rico: <https://www.ica.org/standards/RiC/ontology#>
PREFIX people: <https://collectiedata.hetnieuweinstituut.nl/id/people/12546>
PREFIX thesau: <https://collectiedata.hetnieuweinstituut.nl/model/con/thesau/>


SELECT DISTINCT
?item
?eventMediaAlt
?eventMediaTitle
?locatie
?id #geen idee van wat
?creator
?periode
?eventDate
?eventLabel
?eventMedia

WHERE{

{SERVICE <https://api.collectiedata.hetnieuweinstituut.nl/datasets/the-other-interface/knowledge-graph/services/knowledge-graph/sparql>{

?item rel:cre <https://collectiedata.hetnieuweinstituut.nl/id/people/12546> .
?item rel:cre ?urlCreator.
OPTIONAL{?urlCreator schema:name ?creator .}
FILTER (str(?urlCreator) = "https://collectiedata.hetnieuweinstituut.nl/id/people/12546")

OPTIONAL{?item skos:prefLabel ?eventLabel .}
OPTIONAL{?item sdo:identifier ?id .}

OPTIONAL{?item sdo:dateCreated/skos:prefLabel ?periode .}
OPTIONAL{?item sdo:dateCreated/cidoc:P82a_begin_of_the_begin ?eventDate .}
OPTIONAL{?item sdo:creditText ?eventMediaAlt .}
OPTIONAL{?item schema:artform/rdfs:label ?eventMediaTitle .}
OPTIONAL{?item schema:locationCreated/rdfs:label ?locatie .}

OPTIONAL{?item schema:associatedMedia/schema:image ?eventMedia .}

}
}
}

15 changes: 15 additions & 0 deletions LDV/Dataproperties-in-de-CHO-dataset.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#+ name: Dataproperties-in-de-CHO-dataset
#+ service: https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/ceo/services/ceo/sparql

# CEO dataproperties 156
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select distinct ?DatatypeProperty ?comment where {

?DatatypeProperty a owl:DatatypeProperty .
?DatatypeProperty rdfs:comment ?comment.

FILTER
(strstarts(str(?DatatypeProperty), "https://linkeddata.cultureelerfgoed.nl/def/ceo#"))
}
Loading

0 comments on commit 24058e3

Please sign in to comment.