query-9cedea2c0fdb522e9c23cb4687f5538c
Propertiesinstance of (P31)subclass of (P279)developer (P178)logo image (P154)
Use at
- https://query.wikidata.org/sparql
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 ?agency ?agencyLabel ?softwareLabel ?logo
WHERE
{
?agency wdt:P31/wdt:P279* wd:Q20857065.
?software wdt:P178 ?agency.
OPTIONAL {?software wdt:P154 ?logo}.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?agency"):::projected
v3("?logo"):::projected
v2("?software")
a1((" "))
c7(["bd:serviceParam"]):::iri
c3(["wd:Q20857065"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P178"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P154".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end