query-ca8ed527d25da24ad9b85c161805f06a
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
prefix encat: <https://en.wikipedia.org/wiki/Category:>
select distinct ?itemLabel ?licenseLabel {
service <https://query.wikidata.org/bigdata/namespace/categories/sparql> {
?s mediawiki:isInCategory* encat:Linux_media_players ;
rdfs:label ?label .
}
bind (concat("Category:", ?label) as ?title)
service wikibase:mwapi {
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam wikibase:endpoint "en.wikipedia.org" .
bd:serviceParam mwapi:gcmtitle ?title .
bd:serviceParam mwapi:generator "categorymembers" .
bd:serviceParam mwapi:gcmprop "ids" .
bd:serviceParam mwapi:gcmlimit "max" .
?ns wikibase:apiOutput "@ns" .
?item wikibase:apiOutputItem mwapi:item .
}
filter(bound(?item) && ?ns = "0")
optional {?item wdt:P275 ?license}
service wikibase:label {bd:serviceParam wikibase:language "en"}
}