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 ?confidence ?confidenceLabel (COUNT(DISTINCT ?statement) AS ?count) WHERE {
?paragraph p:P3 ?statement .
?statement pq:P5 ?confidence .
FILTER(contains(str(?confidence), "https"))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?confidence ?confidenceLabel
confidence | count |
high confidence | 56 |
medium confidence | 12 |
very high confidence | 9 |
low confidence | 1 |
medium to high confidence | 3 |
curl -s https://raw.githubusercontent.com/egonw/IPCC-Queries/master/sparql/confidenceLevels.rq \
| sed 's+<lang/>+en+' > confidenceLevels.rq
curl -H "Accept: text/tab-separated-values" \
-G https://kg-ipclimatec-reports.wikibase.cloud/query/sparql \
--data-urlencode query@confidenceLevels.rq
This SPARQL query is available under CCZero.