query-efacc12a544ec543aec3d78093068b80

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)has use (P366)copyright license (P275)programmed in (P277)

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 DISTINCT ?software ?softwareLabel ?licenseLabel ?langLabel WHERE {
  ?software (wdt:P31/wdt:P279*) wd:Q7397.
  {?software wdt:P366 wd:Q827246}
  UNION {?software wdt:P366 wd:Q1377767.}
  OPTIONAL {?software wdt:P275 ?license.}
  OPTIONAL {?software wdt:P277 ?lang}.
  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; v3("?lang") v2("?license") v1("?software"):::projected a1((" ")) c3(["wd:Q7397"]):::iri c10(["bd:serviceParam"]):::iri c6(["wd:Q1377767"]):::iri c5(["wd:Q827246"]):::iri c12(["en"]):::literal v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P366"--> c6 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P366"--> c5 end union0r <== or ==> union0l end 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:P277".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end