query-b29146c04acae669150eae7647c0cac0

rq turtle/ttl

Multiple P31 claims. (inclou FILTER per no igual) SELECT ?item ?itemLabel ?else ?elseLabel # ?inspected ?itemLabel ?else WHERE { VALUES ?inspected { wd:Q476028 } ?item wdt:P31 ?inspected. ?item wdt:P31 ?else FILTER (?else != ?inspected ). SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } . } limit 100

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#>
# Multiple P31 claims. (inclou FILTER per no igual)
SELECT ?item ?itemLabel ?else ?elseLabel # ?inspected ?itemLabel ?else
WHERE
{
    VALUES ?inspected
    {
       wd:Q476028
    }
    ?item wdt:P31 ?inspected.
    ?item wdt:P31 ?else FILTER (?else != ?inspected ).
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } .
}
limit  100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?else"):::projected v3("?inspected") v3("?item"):::projected c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?else != ?inspected"]] f0 --> v1 f0 --> v3 bind1[/VALUES ?inspected/] bind1-->v3 bind10(["wd:Q476028"]) bind10 --> bind1 v3 --"wdt:P31"--> v3 v3 --"wdt:P31"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end