query-4be9a607ae3308f309b8c090696ac138
Linea de tiempo de Reyes de Castilla
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Timeline
SELECT ?reyLabel ?fechaInicio ?fechaFin (SAMPLE(?imagen) as ?imagenRey) WHERE {
VALUES ?reyCastilla {wd:Q58005590 wd:Q58005513}
?rey p:P39 ?statement .
?statement ps:P39 ?reyCastilla.
?statement pq:P580 ?fechaInicio .
optional {?statement pq:P582 ?fechaFin .}
?rey wdt:P18 ?imagen .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],es". }
} group by ?reyLabel ?fechaInicio ?fechaFin
Query found at
- https://www.wikidata.org/wiki/User:Japastorsanchez/CursoHumanistaWikidata
- https://www.wikidata.org/wiki/User:Japastorsanchez/DPD-mapas-rutas-2023-2024
- https://www.wikidata.org/wiki/User:Japastorsanchez/WebDatos2022-2023
- https://www.wikidata.org/wiki/User:MonMMol/MMM
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?fechaFin"):::projected
v4("?fechaInicio"):::projected
v6("?imagen"):::projected
v7("?imagenRey")
v2("?rey")
v1("?reyCastilla")
v3("?statement")
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,es"]):::literal
bind0[/VALUES ?reyCastilla/]
bind0-->v1
bind00(["wd:Q58005590"])
bind00 --> bind0
bind01(["wd:Q58005513"])
bind01 --> bind0
v2 --"p:P39"--> v3
v3 --"p:statement/P39"--> v1
v3 --"p:qualifier/P580"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P582".-> v5
end
v2 --"p:direct/P18"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind2[/"sample(?imagen)"/]
v6 --o bind2
bind2 --as--o v7