query-20cd3985112c38720192d58a034befe8
Propertiesinstance of (P31)subclass of (P279)copyright license (P275)approved by (P790)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#>
SELECT DISTINCT ?item ?itemLabel ?logo
WHERE
{
?item wdt:P31/wdt:P279* wd:Q6368.
?item wdt:P275 ?license.
?license wdt:P790 wd:Q48413.
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;
v1("?item"):::projected
v2("?license")
v3("?logo"):::projected
a1((" "))
c9(["bd:serviceParam"]):::iri
c6(["wd:Q48413"]):::iri
c3(["wd:Q6368"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P275"--> v2
v2 --"wdt:P790"--> c6
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;
c9 --"wikibase:language"--> c11
end