query-53f19b596778bb5d774e78124291ec0a
Propertiesinstance of (P31)subclass of (P279)discontinued date (P2669)developer (P178)owned by (P127)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#>
#defaultView:Timeline
SELECT DISTINCT ?item ?itemLabel ?discontinued ?logo WHERE {
?item (wdt:P31/wdt:P279*) wd:Q7397.
?item wdt:P2669 ?discontinued.
{ ?item wdt:P178 wd:Q312. }
UNION
{ ?item wdt:P127 wd:Q312. }
OPTIONAL { ?item 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;
v2("?discontinued"):::projected
v1("?item"):::projected
v3("?logo"):::projected
a1((" "))
c3(["wd:Q7397"]):::iri
c6(["wd:Q312"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P2669"--> v2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P127"--> c6
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P178"--> c6
end
union0r <== or ==> union0l
end
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;
c10 --"wikibase:language"--> c12
end