-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueries_Rietveld.sparqlbook
116 lines (116 loc) · 15.1 KB
/
queries_Rietveld.sparqlbook
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[
{
"kind": 1,
"language": "markdown",
"value": "## Wikidata",
"metadata": {}
},
{
"kind": 2,
"language": "sparql",
"value": "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX wdt: <http://www.wikidata.org/prop/direct/>\nPREFIX wd: <http://www.wikidata.org/entity/>\n\nSELECT DISTINCT \n?wikirm\n?rijksmonumentnummer\n?creator\n?locatie\n?geoLocatie\n?periode\n#?startjaar\n?afbeelding\nWHERE{\n SERVICE <https://query.wikidata.org/sparql>{\n ?wikirm wdt:P1435 wd:Q916333. # wikinr rijksmonument\n ?wikirm wdt:P18 ?afbeelding. \n ?wikirm wdt:P359 ?rijksmonumentnummer. # wikidata nr match naar rijksmonumentnummer\n\n OPTIONAL{?wikirm wdt:P571 ?periode .}\n ?wikirm <https://www.wikidata.org/wiki/Q160435> ?creator .\n OPTIONAL{?wikirm wdt:P276/rdfs:label ?locatie.\n FILTER(LANG(?locatie) = 'nl')}\n\n OPTIONAL{?wikirm wdt:P625 ?geoLocatie .}\n \n\n FILTER(?rijksmonumentnummer IN (\"478197\",\"510001\" , \n \"514238\" , \"514419\", \"516159\", \"526817\", \"527848\", \n \"530871\", \"530873\", \"530911\", \"530922\", \"531184\", \n \"532131\"))\n }\n}\n\nLIMIT 10",
"metadata": {}
},
{
"kind": 1,
"language": "markdown",
"value": "## Beeldbank: geen goed rietveld",
"metadata": {}
},
{
"kind": 2,
"language": "sparql",
"value": "\n# [endpoint=https://api.data.netwerkdigitaalerfgoed.nl/datasets/hetutrechtsarchief/Beeldbank/services/Beeldbank/sparql]\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX dc: <http://purl.org/dc/elements/1.1/>\nPREFIX edm: <http://www.europeana.eu/schemas/edm/>\n\nSELECT DISTINCT \n#?rijksmonument \n#?rijksmonumentnummer \n# ?titel\n?collectie\n#?objectType\n#?locatie\n#?geoLocatie\n# ?long\n# ?lat\n#?id\n# ?creator\n# ?contributor\n# ?periode\n# ?startjaar\n# ?eindjaar\n#?datum\n?beschrijving \n?afbeelding\n\n\nWHERE {\n {SERVICE <https://api.data.netwerkdigitaalerfgoed.nl/datasets/hetutrechtsarchief/Beeldbank/services/Beeldbank/sparql>{\n ?rijksmonument dc:description ?beschrijving .\n \n ?rijksmonument edm:isShownBy ?afbeelding.\n {Filter regex(?beschrijving, \"gerrit rietveld | Th\\\\. Rietveld | G\\\\. Rietveld | Th\\\\.Rietveld | Gerrit Thomas Rietveld | Th\\\\.Rietveld | rietveld | Rietveld\", \"i\")}\n \n\n}\n}\n}\nLIMIT 5",
"metadata": {}
},
{
"kind": 1,
"language": "markdown",
"value": "## graph:instanties-rce",
"metadata": {}
},
{
"kind": 2,
"language": "sparql",
"value": "PREFIX geo: <http://www.opengis.net/ont/geosparql#>\nPREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\nPREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX graph: <https://linkeddata.cultureelerfgoed.nl/graph/>\nPREFIX geof: <http://www.opengis.net/def/function/geosparql/>\n\n\nSELECT DISTINCT\n?rijksmonument \n?rijksmonumentnummer \n# ?titel\n?collectie\n?objectType\n?locatie\n?geoLocatie\n# ?long\n# ?lat\n?id\n# ?creator\n# ?contributor\n# ?periode\n# ?startjaar\n# ?eindjaar\n?datum\n?beschrijving \n#?afbeelding\n\n\n\n\nWHERE{\n \n GRAPH graph:instanties-rce {\n ?rijksmonument ceo:heeftOorspronkelijkeFunctie/ceo:heeftFunctieNaam/skos:prefLabel ?objectType.\n ?rijksmonument ceo:rijksmonumentnummer ?rijksmonumentnummer.\n ?rijksmonument ceo:heeftOmschrijving/ceo:omschrijving ?beschrijving.\n ?rijksmonument ceo:heeftOmschrijving/ceo:formeelStandpunt \"1\"^^xsd:boolean .\nOPTIONAL{?rijksmonument ceo:cultuurhistorischObjectnummer ?id .}\nOPTIONAL{?rijksmonument ceo:heeftLocatieAanduiding/ceo:locatienaam ?locatie .}\nOPTIONAL{?rijksmonument ceo:datumInschrijvingInMonumentenregister ?datum .}\nOPTIONAL{?rijksmonument ceo:heeftJuridischeStatus/skos:prefLabel ?collectie . }\n\nOPTIONAL {?rijksmonument ceo:heeftGeometrie/geo:asWKT ?geoLocatie.} #MULTIPOLYGON(((5.1485962068792 52.085073758205,5.1485377129388 52.085098805504...\n\nMINUS {?rijksmonument ceo:heeftJuridischeStatus <https://data.cultureelerfgoed.nl/term/id/rn/3e79bb7c-b459-4998-a9ed-78d91d069227>}\n\n\n#selecteer alle monumenten van Rietveld in de actor en beschrijving \nFILTER REGEX(?beschrijving, \"gerrit rietveld | Th\\\\. Rietveld | G\\\\. Rietveld | Th\\\\.Rietveld | Gerrit Thomas Rietveld | Th\\\\.Rietveld\", \"i\")\nFILTER(!REGEX(?beschrijving, \"Rietveld College | rietveld college | Rietveld college |rietveldcollege | Rietveldcollege\", \"i\")) \n\n }\n\n\n}\n\n ",
"metadata": {}
},
{
"kind": 1,
"language": "markdown",
"value": "## RCE afbeeldingen: geen rietveld",
"metadata": {}
},
{
"kind": 2,
"language": "sparql",
"value": "# [https://api.linkeddata.cultureelerfgoed.nl/datasets/rce/Afbeeldingen/services/Afbeeldingen/sparql]\nPREFIX edm: <http://www.europeana.eu/schemas/edm/>\nPREFIX ceo: <https://linkeddata.cultureelerfgoed.nl/def/ceo#>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX bif: <http://www.openlinksw.com/schemas/bif#>\nPREFIX bif: <http://www.openlinksw.com/schemas/bif#>\nPREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\nPREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX dc: <http://purl.org/dc/elements/1.1/>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\n\n\nSELECT DISTINCT ?rijksmonument \n?rijksmonumentnummer\n?titel\n# ?collectie\n# ?locatie\n?id\n# ?creator\n# ?contributor\n# ?periode\n?omschrijving\n?afbeelding\n\nWHERE{\n \n \n ?rijksmonument ceo:rijksmonumentnummer ?rijksmonumentnummer ;\n edm:isShownBy ?afbeelding ;\n dc:description ?omschrijving ;\n dc:title ?titel ;\n dc:identifier ?id .\n\n\n}\nLIMIT 5",
"metadata": {}
},
{
"kind": 1,
"language": "markdown",
"value": "## Rijksmuseum: geen rietveld",
"metadata": {}
},
{
"kind": 2,
"language": "sparql",
"value": "PREFIX dct: <http://purl.org/dc/terms/>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX dc: <http://purl.org/dc/elements/1.1/>\n# [https://api.data.netwerkdigitaalerfgoed.nl/datasets/Rijksmuseum/collection/services/collection/sparql]\n\nSELECT ?rijksmonument\n# ?rijksmonumentnummer\n?titel\n?collectie\n?locatie\n?id #geen idee van wat\n?creator\n?contributor\n?periode\n?omschrijving\n?afbeelding\n\nWHERE{\nSERVICE <https://api.data.netwerkdigitaalerfgoed.nl/datasets/Rijksmuseum/collection/services/collection/sparql>{\n\n?rijksmonument dc:creator <https://collectiedata.hetnieuweinstituut.nl/id/people/12546> ;\n dc:description ?omschrijving ;\n dc:title ?titel ;\n dc:creator/skos:prefLabel ?creator ;\n dct:isPartOf ?collectie ;\n dct:spatial/skos:prefLabel ?locatie ;\n dc:identifier ?id ;\n dc:contributor/skos:prefLabel ?contributor ;\n dct:created ?periode .\n\n\n# FILTER(lang(?voorwerp)='nl' && lang(?beschrijving)='nl')\n#FILTER(?ontwerper = REGEX(?ontwerper, \"Rietveld, Gerrit Thomas\", \"i\"))\n\n}\n\n}\nLIMIT 5",
"metadata": {}
},
{
"kind": 1,
"language": "markdown",
"value": "## Het nieuwe instituut",
"metadata": {}
},
{
"kind": 1,
"language": "markdown",
"value": "#### Dataset 1. rico:isAgentAssociatedWithAgent people:12546",
"metadata": {}
},
{
"kind": 2,
"language": "sparql",
"value": "PREFIX dct: <http://purl.org/dc/terms/>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX bif: <http://www.openlinksw.com/schemas/bif#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX schema: <https://schema.org/>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX rico: <https://www.ica.org/standards/RiC/ontology#>\n\n\nSELECT DISTINCT\n?rijksmonument\n# Rijksmonumentnummer\n?titel\n?collectie\n?locatie\n?id #geen idee van wat\n?creator\n#?contributor\n?periode\n?startjaar\n?eindjaar\n?beschrijving\n#?afbeelding\n\nWHERE{\n\n {SERVICE <https://api.collectiedata.hetnieuweinstituut.nl/datasets/the-other-interface/knowledge-graph/services/knowledge-graph/sparql>{\n\n \n ?rijksmonument rico:isAgentAssociatedWithAgent <https://collectiedata.hetnieuweinstituut.nl/id/people/12546> ;\n skos:prefLabel ?beschrijving .\nOPTIONAL{?rijksmonument rico:titel ?titel .}\nOPTIONAL{?rijksmonument rico:scopeAndContent ?collectie .}\nOPTIONAL{?rijksmonument rico:hasOrHadIdentifier/skos:prefLabel ?id .}\n\nOPTIONAL{?rijksmonument rico:title ?titel .}\nOPTIONAL{?rijksmonument rico:isOrWasHolderOf/schema:foundingLocation/rdfs:label ?locatie .}\nOPTIONAL{?rijksmonument rico:date/skos:prefLabel ?periode.}\nOPTIONAL{?rijksmonument rico:date/rico:hasBeginningDate ?startjaar.}\nOPTIONAL{?rijksmonument rico:date/rico:hasEndDate ?eindjaar.}\n\n?rijksmonument rico:isAgentAssociatedWithAgent ?urlCreator.\nOPTIONAL{?urlCreator schema:name ?creator .}\nFILTER (str(?urlCreator) = \"https://collectiedata.hetnieuweinstituut.nl/id/people/12546\")\n\n }\n}\n} \n\n\n",
"metadata": {}
},
{
"kind": 1,
"language": "markdown",
"value": "#### dataset 2: dct:contributor people:12546",
"metadata": {}
},
{
"kind": 2,
"language": "sparql",
"value": "PREFIX cidoc: <http://www.cidoc-crm.org/cidoc-crm/>\nPREFIX rel: <http://purl.org/vocab/relationship/>\nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX bif: <http://www.openlinksw.com/schemas/bif#>\nPREFIX schema: <https://schema.org/>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX rico: <https://www.ica.org/standards/RiC/ontology#>\n\n\nSELECT DISTINCT\n?rijksmonument\n# Rijksmonumentnummer\n?titel\n?collectie\n?objectType\n# ?locatie onbekend\n?id #geen idee van wat\n#?creator\n?contributor\n#?periode onbekend\n?startjaar\n#?eindjaar\n?beschrijving\n#?afbeelding onbekend\n\nWHERE{\n\n {SERVICE <https://api.collectiedata.hetnieuweinstituut.nl/datasets/the-other-interface/knowledge-graph/services/knowledge-graph/sparql>{\n\n?rijksmonument dct:contributor <https://collectiedata.hetnieuweinstituut.nl/id/people/12546> .\nOPTIONAL{?rijksmonument schema:identifier ?id .}\nOPTIONAL{?rijksmonument schema:description ?beschrijving .}\nOPTIONAL{?rijksmonument skos:prefLabel ?titel .}\nOPTIONAL{?rijksmonument dct:contributor/schema:name ?contributor .}\nOPTIONAL{?rijksmonument schema:artform/rdfs:label ?objectType .}\nOPTIONAL{?rijksmonument schema:archivedAt ?collectie .}\nOPTIONAL{?rijksmonument schema:dateCreated/cidoc:P82a_begin_of_the_begin ?startjaar .}\n }\n}\n} \n\n\n",
"metadata": {}
},
{
"kind": 1,
"language": "markdown",
"value": "#### dataset 3, rel:cre people:12546",
"metadata": {}
},
{
"kind": 2,
"language": "sparql",
"value": "PREFIX cidoc: <http://www.cidoc-crm.org/cidoc-crm/>\nPREFIX sdo: <https://schema.org/>\nPREFIX rel: <http://id.loc.gov/vocabulary/relators/>\nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX bif: <http://www.openlinksw.com/schemas/bif#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX schema: <https://schema.org/>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX rico: <https://www.ica.org/standards/RiC/ontology#>\nPREFIX people: <https://collectiedata.hetnieuweinstituut.nl/id/people/12546>\nPREFIX thesau: <https://collectiedata.hetnieuweinstituut.nl/model/con/thesau/>\n\n\nSELECT DISTINCT\n?rijksmonument\n# Rijksmonumentnummer\n#?titel\n?collectie\n?objectType\n?locatie\n?id #geen idee van wat\n?creator\n#?contributor\n?periode\n?startjaar\n?eindjaar\n?beschrijving\n?afbeelding\n\nWHERE{\n\n {SERVICE <https://api.collectiedata.hetnieuweinstituut.nl/datasets/the-other-interface/knowledge-graph/services/knowledge-graph/sparql>{\n\n?rijksmonument rel:cre <https://collectiedata.hetnieuweinstituut.nl/id/people/12546> .\nOPTIONAL{?rijksmonument skos:prefLabel ?beschrijving .}\n\nOPTIONAL{?rijksmonument sdo:identifier ?id .}\n\nOPTIONAL{?rijksmonument sdo:dateCreated/skos:prefLabel ?periode .}\nOPTIONAL{?rijksmonument sdo:dateCreated/cidoc:P82a_begin_of_the_begin ?startjaar .}\nOPTIONAL{?rijksmonument sdo:dateCreated/cidoc:P82b_end_of_the_end ?eindjaar .}\nOPTIONAL{?rijksmonument sdo:creditText ?collectie .}\nOPTIONAL{?rijksmonument schema:artform/rdfs:label ?objectType .}\nOPTIONAL{?rijksmonument schema:locationCreated/rdfs:label ?locatie .}\n\nOPTIONAL{?rijksmonument schema:associatedMedia ?afbeelding .}\n?rijksmonument rel:cre ?urlCreator.\nOPTIONAL{?urlCreator schema:name ?creator .}\nFILTER (str(?urlCreator) = \"https://collectiedata.hetnieuweinstituut.nl/id/people/12546\")\n }\n}\n} \n\n",
"metadata": {}
},
{
"kind": 1,
"language": "markdown",
"value": "#### HNI dataset 4: thesau 2109",
"metadata": {}
},
{
"kind": 2,
"language": "sparql",
"value": "PREFIX cidoc: <http://www.cidoc-crm.org/cidoc-crm/>\nPREFIX sdo: <https://schema.org/>\nPREFIX rel: <http://purl.org/vocab/relationship/>\nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX bif: <http://www.openlinksw.com/schemas/bif#>\nPREFIX schema: <https://schema.org/>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX rico: <https://www.ica.org/standards/RiC/ontology#>\nPREFIX thesau: <https://collectiedata.hetnieuweinstituut.nl/model/con/thesau/>\n\n\nSELECT DISTINCT\n?rijksmonument\n# Rijksmonumentnummer\n?titel\n?collectie\n?objectType\n?locatie\n?id #geen idee van wat\n?creator\n#?contributor\n?periode\n?startjaar\n?eindjaar\n?beschrijving\n?afbeelding\n\nWHERE{\n\n {SERVICE <https://api.collectiedata.hetnieuweinstituut.nl/datasets/the-other-interface/knowledge-graph/services/knowledge-graph/sparql>{\n\n?rijksmonument thesau:2109 <https://collectiedata.hetnieuweinstituut.nl/id/people/12546> .\nOPTIONAL{?rijksmonument schema:abstract ?beschrijving .}\nOPTIONAL{?rijksmonument schema:identifier ?id .}\nOPTIONAL{?rijksmonument schema:locationCreated/rdfs:label ?locatie .}\nOPTIONAL{?rijksmonument sdo:dateCreated/skos:prefLabel ?periode .}\nOPTIONAL{?rijksmonument sdo:dateCreated/cidoc:P82a_begin_of_the_begin ?startjaar .}\nOPTIONAL{?rijksmonument sdo:dateCreated/cidoc:P82b_end_of_the_end ?eindjaar .}\nOPTIONAL{?rijksmonument schema:associatedMedia ?afbeelding .}\nOPTIONAL{?rijksmonument schema:artform/rdfs:label ?objectType .}\nOPTIONAL{?rijksmonument schema:archivedAt ?collectie .}\nOPTIONAL{?rijksmonument skos:prefLabel ?titel .}\n?rijksmonument thesau:2109 ?urlCreator.\nOPTIONAL{?urlCreator schema:name ?creator .}\nFILTER (str(?urlCreator) = \"https://collectiedata.hetnieuweinstituut.nl/id/people/12546\")\n}\n }\n}",
"metadata": {}
}
]