query-38305a9d2f77556e439d1cca9f14d322
This is my very first SPARQL request aiming at listing digital platforms with their economic caracteristics.
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 ?firm ?firmLabel ?industry ?industryLabel ?ca ?cap ?ssco ?sscoLabel ?creation ?parent ?parentLabel
WHERE
{
?firm wdt:P31/wdt:P279* wd:Q4830453;
wdt:P452/wdt:P279* ?industry.
OPTIONAL{?firm wdt:P2139 ?ca.}
OPTIONAL{?firm wdt:P2226 ?cap.}
OPTIONAL{?firm wdt:P159 ?ssco.}
OPTIONAL{?firm wdt:P571 ?creation.}
OPTIONAL{?firm wdt:P749 ?parent.}
VALUES ?industry { wd:Q484847 wd:Q75 wd:Q193424 wd:Q483639}.
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;
v3("?ca"):::projected
v4("?cap"):::projected
v6("?creation"):::projected
v1("?firm"):::projected
v8("?industry"):::projected
v7("?parent"):::projected
v5("?ssco"):::projected
a1((" "))
a2((" "))
c3(["wd:Q4830453"]):::iri
c13(["#91;AUTO_LANGUAGE#93;, en"]):::literal
c11(["bd:serviceParam"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P452"--> a2
a2 --"wdt:P279"--> v8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2139".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2226".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P159".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P571".-> v6
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P749".-> v7
end
bind0[/VALUES ?industry/]
bind0-->v8
bind00(["wd:Q484847"])
bind00 --> bind0
bind01(["wd:Q75"])
bind01 --> bind0
bind02(["wd:Q193424"])
bind02 --> bind0
bind03(["wd:Q483639"])
bind03 --> bind0
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end