query-5f033f2e2ced9b8af7c2d0f7d464ca5d
Propertiesoperating system (P306)platform (P400)instance of (P31)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 ?app ?appLabel ?classLabel ?logo
WHERE {
{?app wdt:P306 wd:Q170434}
UNION {?app wdt:P400 wd:Q170434}.
?app wdt:P31 ?class.
OPTIONAL {?app wdt:P154 ?logo}.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?app"):::projected
v2("?class")
v3("?logo"):::projected
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
c2(["wd:Q170434"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P400"--> c2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P306"--> c2
end
union0r <== or ==> union0l
end
v1 --"wdt:P31"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P154".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end