query-5304950bbbb62839f1c82acf3a33ee50

rq turtle/ttl

TODO

Use at

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#>
SELECT ?item ?itemLabel (GROUP_CONCAT(?instanceOfLabel; SEPARATOR=", ") AS ?instanceOfValues) WHERE {
    ?item wdt:P31 wd:Q14946528.
    ?item wdt:P31 ?type.
    VALUES ?type { wd:Q63952888 wd:Q74262765 }
    ?item wdt:P31 ?instanceOf.
    ?instanceOf rdfs:label ?instanceOfLabel.
    FILTER(LANG(?instanceOfLabel) = "en")
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }
  GROUP BY ?item ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?instanceOf") v1("?instanceOfLabel"):::projected v5("?instanceOfValues") v2("?item"):::projected v4("?type") c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q14946528"]):::iri f0[["?instanceOfLabel = 'en'"]] f0 --> v1 v2 --"wdt:P31"--> c3 v2 --"wdt:P31"--> v4 bind1[/VALUES ?type/] bind1-->v4 bind10(["wd:Q63952888"]) bind10 --> bind1 bind11(["wd:Q74262765"]) bind11 --> bind1 v2 --"wdt:P31"--> v4 v4 --"rdfs:label"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind3[/"?instanceOfLabel"/] v1 --o bind3 bind3 --as--o v5