Public
Edited
Oct 26, 2023
Insert cell
Insert cell
Insert cell
searchUrl = "https://en.wikipedia.org/w/api.php?"
Insert cell
params = 'action=query' +
'&' + 'format=json' +
'&' + 'titles=' + topic.replaceAll(' ', '_') +
'&' + 'prop=extracts' +
'&' + 'exintro=true' +
'&' + 'origin=*'
Insert cell
fullSearchUrl = searchUrl + params
Insert cell
response = d3.json(fullSearchUrl)
Insert cell
Insert cell
graphTheory = fetch(fullUrl, { headers } ).then( body => body.json())
Insert cell
Insert cell
Insert cell
headers = ({
'Accept': 'application/sparql-results+json'
})
Insert cell
fullUrl = endpointUrl + '?query=' + encodeURIComponent(sparqlQuery)
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