query-08c79eaf2a51d884bc9e68a9fb6fa580

rq turtle/ttl

Treccani + opz. EI (persone dell'Italia unita nate in Toscana su mappa)

Use at

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 ?coord ?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 .
  ?birthplace wdt:P625 ?coord .
  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; v5("?birthplace"):::projected v6("?coord"):::projected v3("?ei"):::projected v4("?nation") v1("?person"):::projected v2("?treccani"):::projected c6(["wd:Q38"]):::iri c13(["bd:serviceParam"]):::iri c15(["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 v5 --"wdt:P625"--> v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end