Public
Edited
Oct 12, 2022
Importers
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
regex_qid = new RegExp("Q\\d+", "g")
Insert cell
queries.map((d) => regex_qid.test(d))
Insert cell
queries.map((d) => d.match(regex_qid)).flat()
Insert cell
regex_pid = new RegExp("P\\d+", "g")
Insert cell
regex_view = new RegExp("#defaultView:\\w+")
Insert cell
regex_prefix = new RegExp("\\w+\\:", "g")
Insert cell
regex_names = new RegExp("\\?\\w+", "g")
Insert cell
regex_wikibase = new RegExp("wikibase\\:\\w+", "g")
Insert cell
regex_statements = new RegExp("([A-Z]+)\\s", "g")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
get_label2("Q90", "en").then((d) => md`The label is ${d}`)
Insert cell
get_label2("Q90", "en").then((d) => md`The label is ${d}`)
Insert cell
qid = async function (qid, lang = "en") {
return get_label2(qid, lang).then(
(d) => `[${d} (${qid})](https://www.wikidata.org/wiki/${qid})`
);
}
Insert cell
qid("Q90", "en")
Insert cell
qid("Q2813374")
Insert cell
${await qid("Q2813374")} and ${await qid("Q90")}
Insert cell
${qid("Q2813374")} and ${qid("Q90")}
Insert cell
property = async function (qid, lang = "en") {
return get_label2(qid, lang).then(
(d) => `[${d} (${qid})](https://www.wikidata.org/wiki/Property:${qid})`
);
}
Insert cell
property("P31")
Insert cell
property("P2521", "fr")
Insert cell
import { aq, op } from "@uwdata/arquero"
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