Platform
Resources
Pricing
Sign in
Get started
PAC
I explore Wikidata and Wikipedia using Observable notebooks.
Workspace
Fork
Unlisted
2 collections
By
PAC
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.
Try it for free
Learn more
Compare fork
Fork
View
Export
Listed in...
Work in progress
PAC
Explore Wikidata
PAC
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
lang
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
text
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
item
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
url
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
output
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
WDK
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
wdk
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML