query-64a852883e913a784c55feba5b1f59a6
TODO
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#>
SELECT ?eremitorio ?eremitorioLabel ?id ?codigo ?fecha_ini ?fecha_fin ?epoca WHERE {
?eremitorio wdt:P3318 ?id;
wdt:P8425 ?codigo;
p:P31 ?statement.
?statement a wikibase:BestRank;
ps:P31 wd:Q513550.
OPTIONAL { ?statement pq:P580 ?fecha_ini. }
OPTIONAL { ?statement pq:P582 ?fecha_fin. }
OPTIONAL { ?statement pq:P1264 ?epoca. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "es".}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?codigo"):::projected
v7("?epoca"):::projected
v1("?eremitorio"):::projected
v6("?fecha_fin"):::projected
v5("?fecha_ini"):::projected
v2("?id"):::projected
v4("?statement")
c5(["wikibase:BestRank"]):::iri
c7(["wd:Q513550"]):::iri
c14(["es"]):::literal
c12(["bd:serviceParam"]):::iri
v1 --"p:direct/P3318"--> v2
v1 --"p:direct/P8425"--> v3
v1 --"p:P31"--> v4
v4 --"a"--> c5
v4 --"p:statement/P31"--> c7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P580".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P582".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P1264".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end