Unlisted
Edited
Feb 2, 2024
Fork of Wikidata API
2 forks
2 stars
Insert cell
Insert cell
viewof lang = Inputs.text({
value: "en",
label: "Choose a language code:",
submit: true
})
Insert cell
viewof text = Inputs.text({
value: "Maria Montessori",
label: "Search in Wikidata"
})
Insert cell
viewof item = Inputs.table(output, {
columns: ["id", "label", "description"]
})
Insert cell
Insert cell
url = wdk.searchEntities({
search: text,
format: "json",
language: lang,
limit: 10,
continue: 10
})
Insert cell
output = fetch(url).then(d => d.json()).then(d => d.search)
Insert cell
WDK = require('https://bundle.run/wikibase-sdk@7.13.0')
Insert cell
wdk = WDK({
instance: 'https://www.wikidata.org',
sparqlEndpoint: 'https://query.wikidata.org/sparql'
})
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