Import Sitemap Graphs

Federated wiki sites will offer up a sitemap.json with entries for every page and sometimes listing outbound links from each of those pages.

Try any of these smaller sites.

http://t5.fed.wiki/system/sitemap.json
http://node22.hsc.fed.wiki/system/sitemap.json
http://ward.hsc.fed.wiki/system/sitemap.json
https://ward.eu.wiki.org/system/sitemap.json

http://hsc.fed.wiki/assets/scripts/import-foreign-json.html HEIGHT 240

Add code here to extract nodes and relations from _json_ and add them to _graph_. Remember node ids in _nids_.

json.forEach(info => { nids[info.slug] = graph .addNode('Page', {name:info.title}) })

json.forEach(info => { const links = Object.keys(info.links||{}) links.forEach(link => { if(!(link in nids)) { nids[link] = graph.addNode('Slug',{name:link}) } graph.addRel('Link',nids[info.slug],nids[link]) }) })