query-6aedec297547096509f85ba787642895

rq turtle/ttl

List all FLOSS, in which case it will never be derived from the desired license items. (Q173136)Blender (see for instance (Q79719)license that is not about preferred rank with a (P31)instance of and will therefore miss items for which there is an truthy statements, it only finds the p:P31/ps:P31 looks equivalent to wdt:P31. Although (Q1130645)open-source software or (Q341)free software , (Q506883)free and open-source software of (P279)subclass of being anything which is a (P31)instance of List all Item with

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?floss ?label WHERE {
  {
   # is a FOSS
   ?floss p:P31/ps:P31/wdt:P279* wd:Q506883.
  } Union {
   # is a free software
   ?floss p:P31/ps:P31/wdt:P279* wd:Q341.
  } Union {
   # is a opensource software
   ?floss p:P31/ps:P31/wdt:P279* wd:Q1130645.
  } Union {
   # is a software and is a public domain work
   ?floss p:P31/ps:P31/wdt:P279* wd:Q19652.
   ?floss p:P31/ps:P31/wdt:P279* wd:Q7397.
  } Union {
    # is a software and license is a free license
    ?floss p:P31/ps:P31/wdt:P279* wd:Q7397.
    ?floss wdt:P275 ?licens.  
    ?licens p:P31/ps:P31/(wdt:P31|wdt:P279)* ?kind.
    VALUES ?kind { wd:Q196294 wd:Q1156659 }.
  }
  OPTIONAL { ?floss rdfs:label ?label filter (lang(?label) = "en") .}
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?floss"):::projected v5("?kind") v1("?label"):::projected v3("?licens") a1((" ")) a2((" ")) a3((" ")) a4((" ")) a5((" ")) a6((" ")) a7((" ")) a8((" ")) a9((" ")) a10((" ")) a11((" ")) a12((" ")) a13((" ")) a14((" ")) c9(["wd:Q7397"]):::iri c5(["wd:Q506883"]):::iri c7(["wd:Q1130645"]):::iri c8(["wd:Q19652"]):::iri c6(["wd:Q341"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; v2 --"p:P31"--> a11 a11 --"p:statement/P31"--> a12 a12 --"p:direct/P279"--> c9 v2 --"p:direct/P275"--> v3 v3 --"p:P31"--> a13 a13 --"p:statement/P31"--> a14 subgraph union4[" Union "] subgraph union4l[" "] style union4l fill:#abf,stroke-dasharray: 3 3; a14 --"p:direct/P279"--> v5 end subgraph union4r[" "] style union4r fill:#abf,stroke-dasharray: 3 3; a14 --"p:direct/P31"--> v5 end union4r <== or ==> union4l end bind0[/VALUES ?kind/] bind0-->v5 bind00(["wd:Q196294"]) bind00 --> bind0 bind01(["wd:Q1156659"]) bind01 --> bind0 end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; v2 --"p:P31"--> a7 a7 --"p:statement/P31"--> a8 a8 --"p:direct/P279"--> c8 v2 --"p:P31"--> a9 a9 --"p:statement/P31"--> a10 a10 --"p:direct/P279"--> c9 end union3r <== or ==> union3l end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v2 --"p:P31"--> a5 a5 --"p:statement/P31"--> a6 a6 --"p:direct/P279"--> c7 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"p:P31"--> a3 a3 --"p:statement/P31"--> a4 a4 --"p:direct/P279"--> c6 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"p:P31"--> a1 a1 --"p:statement/P31"--> a2 a2 --"p:direct/P279"--> c5 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."rdfs:label".-> v1 end