query-d38b9702425158200897acaf0fcbaa9b

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)has use (P366)copyright license (P275)logo image (P154)

Use at

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 ?software ?softwareLabel ?licenseLabel ?logo WHERE {
  ?software (wdt:P31/wdt:P279*) wd:Q7397.
  ?software wdt:P366 wd:Q336.
  OPTIONAL {?software wdt:P275 ?license.}
  OPTIONAL {?software wdt:P154 ?logo.}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?license") v3("?logo"):::projected v1("?software"):::projected a1((" ")) c5(["wd:Q336"]):::iri c3(["wd:Q7397"]):::iri c9(["bd:serviceParam"]):::iri c11(["en"]):::literal v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P366"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P275".-> v2 end subgraph optional1["(optional)"] style optional1 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