query-2ff54fa94afee18479f016e6a759ade1
Scienziati nati a Milano privi di identificativo SBN
SELECT ?person ?personLabel
(GROUP_CONCAT(DISTINCT ?occupationLab ; SEPARATOR=", ") AS ?occupations)
WHERE {
?person wdt:P31 wd:Q5 .
?person wdt:P106 ?occupation . ?occupation rdfs:label ?occupationLab . FILTER(LANG(?occupationLab) = "it")
?person wdt:P106/wdt:P279* wd:Q901 .
?person wdt:P19 wd:Q490 .
MINUS { ?person wdt:P396 ?sbn } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
GROUP BY ?person ?personLabel
ORDER BY ?person ?personLabel
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Scienziati nati a Milano privi di identificativo SBN
SELECT ?person ?personLabel
(GROUP_CONCAT(DISTINCT ?occupationLab ; SEPARATOR=", ") AS ?occupations)
WHERE {
?person wdt:P31 wd:Q5 .
?person wdt:P106 ?occupation . ?occupation rdfs:label ?occupationLab . FILTER(LANG(?occupationLab) = "it")
?person wdt:P106/wdt:P279* wd:Q901 .
?person wdt:P19 wd:Q490 .
MINUS { ?person wdt:P396 ?sbn } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
GROUP BY ?person ?personLabel
ORDER BY ?person ?personLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?occupation")
v3("?occupationLab"):::projected
v6("?occupations")
v1("?person"):::projected
v2("?personLabel"):::projected
v5("?sbn")
a1((" "))
c14(["#91;AUTO_LANGUAGE#93;,it,en"]):::literal
c12(["bd:serviceParam"]):::iri
c7(["wd:Q901"]):::iri
c3(["wd:Q5"]):::iri
c9(["wd:Q490"]):::iri
f0[["?occupationLab = 'it'"]]
f0 --> v3
v1 --"wdt:P31"--> c3
v1 --"wdt:P106"--> v4
v4 --"rdfs:label"--> v3
v1 --"wdt:P106"--> a1
a1 --"wdt:P279"--> c7
v1 --"wdt:P19"--> c9
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P396"--> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end
bind3[/"?occupationLab"/]
v3 --o bind3
bind3 --as--o v6