Published
Edited
Jan 14, 2019
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data = {
let data = []
docList.forEach(function (element, index) {
data.push( {
'pseudonyme': pseudonymes[index],
'noWiki': docList[index] ? 'false' : 'true',
//'title': element ? element.options.title : undefined,
'imageURL': imageUrl[index] ? imageUrl[index][0] : undefined,
'@person_image': imageUrl[index] ? getFilename(imageUrl[index][0]) : undefined,
'text': text[index] ? text[index] : undefined,
'categories': categories[index] ? categories[index].join(', ') : undefined,
'birthday': birtday[index][0] ? `${birtday[index][0].day}.${birtday[index][0].month}.${birtday[index][0].year}` : undefined,
'birthdayDay': birtday[index][0] ? birtday[index][0].day : undefined,
'birthdayMonth': birtday[index][0] ? birtday[index][0].month : undefined,
'birthdayYear': birtday[index][0] ? birtday[index][0].year : undefined,
'age': birtday[index][0] ? 2019 - birtday[index][0].year : undefined,
})
});
return data
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
url = wdk.getWikidataIdsFromWikipediaTitles({
titles: 'Roman Flügel',
languages: ['en', 'de'],
sites: 'dewiki',
normalize: true
})
Insert cell
wikidata = fetch(url)
.then(response => {
if (!response.ok) throw new Error(response.status);
return response.json()
//return wdk.simplify.entity(entities)
//response.json();
})
.then(res => {
let keys = Object.keys(res.entities)
return wdk.simplify.entity(res.entities[keys[0]])
}).catch(error => {return error;})
Insert cell
urlVictor = wdk.getReverseClaims('P50', 'Q2164562', { limit: 10 })
Insert cell
Insert cell
Insert cell
enteties = await wdk.simplify.entity(wikidata.entities[wikidataKey[0]])
Insert cell
simplifiedClaims = wdk.simplify.claims(wikidata.entities[wikidataKey[0]].claims)
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