query-ead4d4974c32d90544c6ae06dab0b60e
All abandoned designs of vehicle
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 DISTINCT ?item ?itemLabel ?classLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "en-gb,en". }
?item wdt:P279* wd:Q42889. # vehicle
{?item wdt:P31/wdt:P279* wd:Q10929058} # product model
UNION {?item wdt:P31/wdt:P279* wd:Q811701} # model series
?item wdt:P31 wd:Q21514702. # abandoned project
?item wdt:P279 ?class
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?class")
v1("?item"):::projected
a1((" "))
a2((" "))
c4(["en-gb,en"]):::literal
c9(["wd:Q811701"]):::iri
c6(["wd:Q42889"]):::iri
c2(["bd:serviceParam"]):::iri
c10(["wd:Q21514702"]):::iri
c8(["wd:Q10929058"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P279"--> c6
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c9
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c8
end
union0r <== or ==> union0l
end
v1 --"wdt:P31"--> c10
v1 --"wdt:P279"--> v2