Platform
Resources
Pricing
Sign in
Get started
Luke Murray
MIT Ph.D. Candidate in HCI
Workspace
Fork
Published
By
Luke Murray
Edited
Feb 21, 2022
Importers
3 stars
Insert cell
Insert cell
Insert cell
3
%sparql
SELECT
?
parent
?
parentLabel
?
count
WHERE
{
{
SELECT
?
parent
(
COUNT
(?
child
)
AS
?
count
)
WHERE
{
?
parent
wdt
:
P40
?
child
.
}
GROUP
BY
?
parent
ORDER
BY
DESC
(?
count
)
LIMIT
10
}
SERVICE
wikibase
:
label
{
bd
:
serviceParam
wikibase
:
language
"
en
". }
}
ORDER
BY
DESC
(?
count
)
LIMIT
10
Insert cell
Insert cell
viewof
bandName
=
Inputs
.
text
(
{
label
:
"Band Name"
,
value
:
"F"
}
)
Insert cell
%sparql
#
list
of
bands
which
start
with
bandName
SELECT
DISTINCT
?
band
?
bandLabel
WHERE
{
?
band
wdt
:
P31
wd
:
Q5741069
.
?
band
rdfs
:
label
?
bandLabel
.
FILTER
(
STRSTARTS
(?
bandLabel
, "${
bandName
}")) .
}
Insert cell
Insert cell
tex
=
(
{
block
:
multiMarkup
(
_tex
.
block
,
{
sparql
:
sparql
}
)
}
)
Insert cell
Insert cell
Insert cell
sparql
=
async
(
strings
,
...
values
)
=>
{
const
s
=
`${
strings
.
reduce
(
(
result
,
currentString
,
i
)
=>
`${
result
}${
currentString
}${
values
[
i
]
?
values
[
i
]
:
""
}`
,
""
)
}`
;
return
Inputs
.
table
(
await
queryDispatcher
.
query
(
s
)
)
;
}
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
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Show 3 comments
Select
Duplicate
Copy link
Embed
Delete
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
bandName
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
tex
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sparql
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML