query-272dfc9706011ee3d11215793a592ea9

rq turtle/ttl

Free software grouped by licenses https://wikis.world/@wikidata/109862852892673897Free software grouped by licenses from social media - I am sharing this because it is an example of querying Wikidata for insight into policies.

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#>
#title: Free software grouped by licenses
#defaultView:BubbleChart
SELECT ?licLabel (COUNT(?lic) AS ?count) WHERE {
 ?item wdt:P31/wdt:P279* wd:Q7397 ;
       wdt:P275 ?lic .
  FILTER EXISTS { ?lic wdt:P31/wdt:P279* wd:Q196294 } .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} GROUP BY ?licLabel
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count") v3("?item") v2("?lic"):::projected a2((" ")) a1((" ")) c4(["wd:Q7397"]):::iri c7(["bd:serviceParam"]):::iri c3(["wd:Q196294"]):::iri c9(["en"]):::literal f0[[" "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P31"--> e0a1 e0a1 --"wdt:P279"--> e0c3 e0v1("?lic"):::projected e0a1((" ")):::projected e0c3(["wd:Q196294"]):::iri end f0--EXISTS--> f0e0 f0 --> v2 f0 --> c1 f0 --> a1 f0 --> c2 f0 --> c3 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v3 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c4 v3 --"wdt:P275"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind2[/"count(?lic)"/] v2 --o bind2 bind2 --as--o v4