query-ce1f479c15d7e1927075cb70b6cf9661
Disambiguation with multiple value of P31 14:42, 3 November 2018 (UTC)) talk (ValterVBIt's possible to have a query for items with multiple values of P31 and with one value of P31 = Q4167410 ? --: ValterVB@
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 ?item ?itemLabel ?notdab ?notdabLabel
WHERE
{
?item wdt:P31 wd:Q4167410 .
?item wdt:P31 ?notdab . FILTER( ?notdab != wd:Q4167410 )
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?notdab"):::projected
c6(["#91;AUTO_LANGUAGE#93;,it,en"]):::literal
c1(["wd:Q4167410"]):::iri
c4(["bd:serviceParam"]):::iri
f0[["?notdab != 'wd:Q4167410'"]]
f0 --> v1
v2 --"wdt:P31"--> c1
v2 --"wdt:P31"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end