query-01f5d23c5d68d2efbc830b12950fbf33

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 skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel (GROUP_CONCAT(DISTINCT ?typeOfOrg;separator=", ") AS ?orgs) (GROUP_CONCAT(DISTINCT ?typeOfOrgLabel;separator=", ") AS ?orgLabels) ?desc WHERE {
  ?item wdt:P31 ?typeOfOrg .
  VALUES ?superclasses { wd:Q43229 }
  ?typeOfOrg wdt:P279* ?superclasses .
  VALUES ?label { rdfs:label skos:altLabel }
  ?item ?label "Disney"@en .
  SERVICE wikibase:label { 
    bd:serviceParam wikibase:language "en" .
    ?item rdfs:label ?itemLabel .
    ?typeOfOrg rdfs:label ?typeOfOrgLabel.
    ?item schema:description ?desc .
  }
} GROUP BY ?item ?itemLabel ?desc

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?desc"):::projected v1("?item"):::projected v5("?itemLabel"):::projected v4("?label") v9("?orgLabels") v8("?orgs") v3("?superclasses") v2("?typeOfOrg"):::projected v6("?typeOfOrgLabel"):::projected c3([sDisney^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal c5(["bd:serviceParam"]):::iri c7(["en"]):::literal v1 --"wdt:P31"--> v2 bind0[/VALUES ?superclasses/] bind0-->v3 bind00(["wd:Q43229"]) bind00 --> bind0 v2 --"wdt:P279"--> v3 bind1[/VALUES ?label/] bind1-->v4 bind10(["rdfs:label"]) bind10 --> bind1 bind11(["skos:altLabel"]) bind11 --> bind1 v1 -->v4--> c3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 v1 --"rdfs:label"--> v5 v2 --"rdfs:label"--> v6 v1 --"schema:description"--> v7 end bind4[/"?typeOfOrg"/] v2 --o bind4 bind4 --as--o v8 bind5[/"?typeOfOrgLabel"/] v6 --o bind5 bind5 --as--o v9