query-e4fd0498a14f3d507d5e29f29960841f
Companies that produce software and their parent companies
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:Graph
SELECT ?item ?itemLabel ?parent ?parentLabel ("00FFFF" AS ?rgb)
WHERE
{
?item wdt:P749 ?parent.
?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("?parent"):::projected
v3("?rgb")
c3(["wd:Q7397"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P749"--> v2
v1 --"wdt:P1056"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind0[/"'00FFFF'"/]
bind0 --as--o v3