Public
Edited
Jan 13, 2023
Insert cell
Insert cell
Insert cell
queryOne = async (sparql) => {
const result = await query(sparql);
for (var firstKey in result[0]) break;
return result[0][firstKey].value;
}
Insert cell
Insert cell
queryOne(`SELECT * WHERE {
SERVICE bd:slice {
# ?item wdt:P31 wd:Q5 .
?item wdt:P31 ?c .
bd:serviceParam bd:slice.range ?range
}
}`)
Insert cell
query(`SELECT * WHERE {
?item wdt:P31*/wdt:P279* wd:Q16917;
wdt:P625 ?geo .
}`)
Insert cell
Insert cell
i = {
for (const i of Generators.range(0, 100, 1)) {
yield i;
}
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more