query-b585708734c7e8f7743ccd05f097d2ed

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 ?vaccine ?vaccineLabel (GROUP_CONCAT(?developerLabel; SEPARATOR = "; ") AS ?developerLabels) WHERE {
  ?vaccine wdt:P1924 wd:Q84263196; # duck typing! don’t bother checking P31/P279, what else would have a “vaccine for” statement?
           wdt:P178 ?developer. # I’m assuming that wdt: (best-rank) does what we want here
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
    ?vaccine rdfs:label ?vaccineLabel.
    ?developer rdfs:label ?developerLabel.
  }
}
GROUP BY ?vaccine ?vaccineLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?developer") v4("?developerLabel"):::projected v5("?developerLabels") v1("?vaccine"):::projected v3("?vaccineLabel"):::projected c2(["wd:Q84263196"]):::iri c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P1924"--> c2 v1 --"wdt:P178"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 v1 --"rdfs:label"--> v3 v2 --"rdfs:label"--> v4 end bind1[/"?developerLabel"/] v4 --o bind1 bind1 --as--o v5