query-b321a4293ed652b14042657a58d25ea5
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select ?item ?itemLabel ?instanceLabel ?jurisdictionLabel ?subjectLabel {
service wikibase:mwapi {
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam wikibase:endpoint "commons.wikimedia.org" .
bd:serviceParam mwapi:gcmtitle "Category:Commons_licensing_help_by_country" .
bd:serviceParam mwapi:generator "categorymembers" .
bd:serviceParam mwapi:gcmtype "page" .
bd:serviceParam mwapi:gcmlimit "max" .
bd:serviceParam mwapi:gcmsort "timestamp" .
bd:serviceParam mwapi:gcmdir "descending" .
?item wikibase:apiOutputItem mwapi:item .
}
filter(bound(?item)) .
?commonsSitelink schema:about ?item;
schema:isPartOf <https://commons.wikimedia.org/>;
schema:name ?sitelink_label .
optional { ?item wdt:P31 ?instance. }
optional { ?item wdt:P17 ?country. }
optional { ?item wdt:P1001 ?jurisdiction. }
optional { ?item wdt:P921 ?subject. }
service wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} -- [[User:Luitzen|Luitzen]] ([[User talk:Luitzen|<span class="signature-talk">talk</span>]]) 12:46, 17 February 2019 (UTC)