query-cb14ce19c1322b059efc10188dc37a4a

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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?acronyms (STRBEFORE(?acronyms, ",") AS ?acronym1 ) (STRAFTER(?acronyms, ",") AS ?acronym2 ) WHERE {
  SELECT ?item ?itemLabel (GROUP_CONCAT(DISTINCT STR(?acronym); SEPARATOR = ",") AS ?acronyms) WHERE {
    ?item wdt:P1343 wd:Q96192978;
      wdt:P1813 ?acronym.
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr,de,it". }
  }
  GROUP BY ?item ?itemLabel
  ORDER BY (?itemLabel)
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?acronym") v5("?acronym1") v6("?acronym2") v4("?acronyms"):::projected v2("?item"):::projected v1("?itemLabel"):::projected c7(["#91;AUTO_LANGUAGE#93;,en,fr,de,it"]):::literal c2(["wd:Q96192978"]):::iri c5(["bd:serviceParam"]):::iri v2 --"wdt:P1343"--> c2 v2 --"wdt:P1813"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind1[/"str(?acronym)"/] v3 --o bind1 bind1 --as--o v4 bind2[/"substring-before(?acronyms,',')"/] v4 --o bind2 bind2 --as--o v5 bind3[/"substring-after(?acronyms,',')"/] v4 --o bind3 bind3 --as--o v6