query-91096eb5c6e6dc4a5df70ea732e2216a
Propertiesmotto text (P1451)instance of (P31)subclass of (P279)industry (P452)product or material produced or service provided (P1056)
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 ?value WHERE {
?item wdt:P1451 ?value.
?item (wdt:P31/wdt:P279*) wd:Q4830453.
{?item wdt:P452 wd:Q880371}
UNION {?item wdt:P1056 wd:Q7397}.
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("?item"):::projected
v2("?value"):::projected
a1((" "))
c8(["wd:Q7397"]):::iri
c10(["bd:serviceParam"]):::iri
c6(["wd:Q880371"]):::iri
c4(["wd:Q4830453"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P1451"--> v2
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1056"--> c8
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P452"--> c6
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end