query-ba8c49a480895ec95435e2fc44192ea0
Treccani + opz. EI e immagine (persone dell'Italia unita nate in Toscana con data di nascita)
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel ?nationLabel ?birthplace ?birthplaceLabel ?birthdate ?image ?treccani ?ei
WHERE {
?person wdt:P3365 ?treccani .
OPTIONAL { ?person wdt:P4223 ?ei . }
?person wdt:P31 wd:Q5 .
{ ?person wdt:P27 wd:Q38 . } UNION { ?person wdt:P27 wd:Q172579 . }
?person wdt:P27 ?nation .
?person wdt:P19 ?birthplace .
?birthplace wdt:P131* wd:Q1273 .
?person wdt:P569 ?birthdate .
OPTIONAL { ?person wdt:P18 ?image . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?birthdate"):::projected
v5("?birthplace"):::projected
v3("?ei"):::projected
v7("?image"):::projected
v4("?nation")
v1("?person"):::projected
v2("?treccani"):::projected
c6(["wd:Q38"]):::iri
c14(["bd:serviceParam"]):::iri
c16(["it,en"]):::literal
c4(["wd:Q5"]):::iri
c7(["wd:Q172579"]):::iri
c10(["wd:Q1273"]):::iri
v1 --"wdt:P3365"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P4223".-> v3
end
v1 --"wdt:P31"--> c4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P27"--> c7
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P27"--> c6
end
union0r <== or ==> union0l
end
v1 --"wdt:P27"--> v4
v1 --"wdt:P19"--> v5
v5 --"wdt:P131"--> c10
v1 --"wdt:P569"--> v6
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end