query-0dbca496a2a1c5f11a3b88de090cf60d
Recteurs de Raguse/Dubrovnik
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 ?item ?itemLabel
(MAX(year(?date)) AS ?datemax ) ?famille ?familleLabel WHERE {
?item p:P39 _:b13.
_:b13 ps:P39 wd:Q90265261;
pq:P585 ?date.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
OPTIONAL { ?item wdt:P53 ?famille. }
}
GROUP BY ?item ?itemLabel ?extraction ?famille ?familleLabel
order by ?datemax ?itemLabel ?familleLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?date"):::projected
v7("?datemax")
v6("?famille"):::projected
v3("?familleLabel"):::projected
v4("?item"):::projected
v2("?itemLabel"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;"]):::literal
c3(["wd:Q90265261"]):::iri
v4 --"p:P39"--> a1
a1 --"p:statement/P39"--> c3
a1 --"p:qualifier/P585"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P53".-> v6
end
bind1[/"max(year-from-dateTime(?date))"/]
v5 --o bind1
bind1 --as--o v7