Unlisted
Edited
Feb 7, 2023
Insert cell
Insert cell
data_actors = fetch(`https://qlever.cs.uni-freiburg.de/api/wikidata?query=PREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+schema%3A+%3Chttp%3A%2F%2Fschema.org%2F%3E%0APREFIX+wd%3A+%3Chttp%3A%2F%2Fwww.wikidata.org%2Fentity%2F%3E%0APREFIX+wdt%3A+%3Chttp%3A%2F%2Fwww.wikidata.org%2Fprop%2Fdirect%2F%3E%0ASELECT+DISTINCT+%3Fitem+%3FitemLabel+%3Fyear+%3Ffather+%3Fmother+WHERE+%7B%0A%3Fitem+wdt%3AP31+wd%3AQ5%3B%0A++++++wdt%3AP106%2Fwdt%3AP279%2A+wd%3AQ33999%3B%0A++++++wdt%3AP27+wd%3AQ142%3B%0A++++++wdt%3AP569+%3Fbirthdate%3B%0A++++++rdfs%3Alabel+%3FitemLabel+filter+%28lang%28%3FitemLabel%29+%3D+%22en%22%29+.%0A++%3Fsitelink+schema%3Aabout+%3Fitem%3B%0A++++schema%3AisPartOf+%3Chttps%3A%2F%2Ffr.wikipedia.org%2F%3E.%0A++FILTER%28YEAR%28+%3Fbirthdate+%29+%3E+1969%29%0A++BIND%28YEAR%28%3Fbirthdate%29+AS+%3Fyear%29%0A++OPTIONAL+%7B+%3Fitem+wdt%3AP22+%3Ffather.%0A++++++%3Ffatherlink+schema%3Aabout+%3Ffather%3B%0A++++schema%3AisPartOf+%3Chttps%3A%2F%2Ffr.wikipedia.org%2F%3E.%0A+%7D%0A++OPTIONAL+%7B+%3Fitem+wdt%3AP25+%3Fmother.%0A++++++%3Fmotherlink+schema%3Aabout+%3Fmother%3B%0A++++schema%3AisPartOf+%3Chttps%3A%2F%2Ffr.wikipedia.org%2F%3E.%0A+%7D%0A%7D%0A`, {headers: {accept: "application/sparql-results+json"}})
.then(response => response.json())
Insert cell
data_actors.results.bindings.map((d) => ({
item: d.item.value,
itemLabel: d.itemLabel.value,
year: d.year.value,
father: d.father.value,
mother: d.mother.value
}))
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