query-83b2ebeda6c82248614c397f4fec7f4b
GNU GPL with no version for more information. license, which is more specific. See (Q10513445)GNU General Public License, version 3.0 or (Q10513450)GNU General Public License, version 2.0 instead of (Q7603)GNU General Public License is set to be (P275)copyright license The
Use at
- https://query.wikidata.org/sparql
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 {
{
?floss p:P31/ps:P31/wdt:P279* wd:Q506883.
} Union {
?floss p:P31/ps:P31/wdt:P279* wd:Q341.
} Union {
?floss p:P31/ps:P31/wdt:P279* wd:Q1130645.
} Union {
?floss p:P31/ps:P31/wdt:P279* wd:Q19652.
?floss p:P31/ps:P31/wdt:P279* wd:Q7397.
} Union {
?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 }.
}
FILTER NOT EXISTS { ?floss wdt:P31+ wd:Q9135 } # exclude GNU Linux operating systems
?floss wdt:P275 wd:Q7603 .
OPTIONAL { ?floss rdfs:label ?label filter (lang(?label) = "en") .}
} LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?floss"):::projected
v5("?kind")
v2("?label"):::projected
v3("?licens")
a1((" "))
a2((" "))
a3((" "))
a4((" "))
a5((" "))
a6((" "))
a7((" "))
a8((" "))
a9((" "))
a10((" "))
a11((" "))
a12((" "))
a13((" "))
a14((" "))
c7(["wd:Q506883"]):::iri
c9(["wd:Q1130645"]):::iri
c2(["wd:Q9135"]):::iri
c11(["wd:Q7397"]):::iri
c13(["wd:Q7603"]):::iri
c10(["wd:Q19652"]):::iri
c8(["wd:Q341"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P31"--> e0c2
e0v1("?floss"):::projected
e0c2(["wd:Q9135"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
v1 --"p:direct/P31"--> c2
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;
v1 --"p:P31"--> a11
a11 --"p:statement/P31"--> a12
a12 --"p:direct/P279"--> c11
v1 --"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
bind1[/VALUES ?kind/]
bind1-->v5
bind10(["wd:Q196294"])
bind10 --> bind1
bind11(["wd:Q1156659"])
bind11 --> bind1
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:P31"--> a7
a7 --"p:statement/P31"--> a8
a8 --"p:direct/P279"--> c10
v1 --"p:P31"--> a9
a9 --"p:statement/P31"--> a10
a10 --"p:direct/P279"--> c11
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:P31"--> a5
a5 --"p:statement/P31"--> a6
a6 --"p:direct/P279"--> c9
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:P31"--> a3
a3 --"p:statement/P31"--> a4
a4 --"p:direct/P279"--> c8
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:P31"--> a1
a1 --"p:statement/P31"--> a2
a2 --"p:direct/P279"--> c7
end
union0r <== or ==> union0l
end
v1 --"p:direct/P275"--> c13
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."rdfs:label".-> v2
end