Code examples: curl
PREFIX wdt: <https://kg-ipclimatec-reports.wikibase.cloud/prop/direct/>
PREFIX wd: <https://kg-ipclimatec-reports.wikibase.cloud/entity/>
PREFIX p: <https://kg-ipclimatec-reports.wikibase.cloud/prop/>
PREFIX pq: <https://kg-ipclimatec-reports.wikibase.cloud/prop/qualifier/>
SELECT ?driver ?driverLabel (COUNT(DISTINCT ?statement) AS ?count) WHERE {
?paragraph p:P3 ?statement .
?statement pq:P18 ?driver .
?driver wdt:P1/wdt:P6* wd:Q276 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?driver ?driverLabel
ORDER BY DESC(?count)
driver | count |
human activities | 6 |
volcanic | 1 |
solar | 1 |
curl -s https://raw.githubusercontent.com/egonw/IPCC-Queries/master/sparql/drivers.rq \
| sed 's+<lang/>+en+' > drivers.rq
curl -H "Accept: text/tab-separated-values" \
-G https://kg-ipclimatec-reports.wikibase.cloud/query/sparql \
--data-urlencode query@drivers.rq
This SPARQL query is available under CCZero.