query-4582d3e516ab4899556e8cd8a3664248
Matematici (e sottoclassi) con cittadinanza Italia con identificativi DBI e SHARECat, immagine opzionale, ordinati per anno di nascita SELECT DISTINCT ?item ?itemLabel ?DBI ?SHARECAT ?yearofbirth ?immagine WHERE { ?item wdt:P106/wdt:P279* wd:Q170790. ?item wdt:P27 wd:Q38. ?item wdt:P1986 ?DBI. ?item wdt:P3987 ?SHARECAT OPTIONAL { ?item wdt:P569 ?DoB. } BIND(YEAR(?DoB) AS ?yearofbirth) OPTIONAL { ?item wdt:P18 ?immagine. } SERVICE wikibase:label { bd:serviceParam wikibase:language "it". } } ORDER BY ?yearofbirth
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#>
#Matematici (e sottoclassi) con cittadinanza Italia con identificativi DBI e SHARECat, immagine opzionale, ordinati per anno di nascita
SELECT DISTINCT ?item ?itemLabel ?DBI ?SHARECAT ?yearofbirth ?immagine WHERE {
?item wdt:P106/wdt:P279* wd:Q170790.
?item wdt:P27 wd:Q38.
?item wdt:P1986 ?DBI.
?item wdt:P3987 ?SHARECAT
OPTIONAL { ?item wdt:P569 ?DoB. }
BIND(YEAR(?DoB) AS ?yearofbirth)
OPTIONAL { ?item wdt:P18 ?immagine. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "it". }
}
ORDER BY ?yearofbirth
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?DBI"):::projected
v5("?DoB")
v4("?SHARECAT"):::projected
v6("?immagine"):::projected
v2("?item"):::projected
v6("?yearofbirth"):::projected
a1((" "))
c3(["wd:Q170790"]):::iri
c13(["it"]):::literal
c5(["wd:Q38"]):::iri
c11(["bd:serviceParam"]):::iri
v2 --"wdt:P106"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P27"--> c5
v2 --"wdt:P1986"--> v3
v2 --"wdt:P3987"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v5
end
bind0[/"year-from-dateTime(?DoB)"/]
v5 --o bind0
bind0 --as--o v6
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end