We list a few entry pages for popular websites.
{"site":[ {"name":"page1", "url":"https:// "}, {"name":"page2", "url":"https:// "}, ]}
{"c2.com":[ {"name":"Published Papers", "url":"https://c2.com/doc/index.html"}, {"name":"Original Web Pages", "url":"https://c2.com/doc/pages.html"}, {"name":"Original Wiki", "url":"https://wiki.c2.com/"}, {"name":"Cybords", "url":"https://c2.com/cybords/"} ]}
{"c2.com":[ {"name":"Morse Teacher", "url":"https://c2.com/morse/"}, {"name":"American Glory", "url":"https://c2.com/ward/glory/"}, {"name":"Dial-a-Door","url":"https://c2.com/ward/Dial-a-Door/"}, {"name":"Solar Raster", "url":"https://c2.com/ward/bs2/raster/index.html"}, {"name":"DotWar", "url":"https://c2.com/ward/myr/"}, {"name":"PDP-8 Sim", "url":"https://c2.com/ward/pdp8sim/"} ]}
{"Github":[ {"name":"Super Collaborator", "url":"https://github.com/WardCunningham/assets/tree/master/pages/super-collaborator"}, {"name":"Reporting & Analysis", "url":"https://github.com/WardCunningham/assets/tree/master/pages/reporting-and-analysis-tools"}, {"name":"Mock Graph Data", "url":"https://github.com/WardCunningham/assets/tree/master/pages/mock-graph-data"}, {"name":"Story Telling", "url":"https://github.com/WardCunningham/assets/tree/master/pages/story-telling"} ]}
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_.
for (const root in json) { const from = graph.addNode('Website',{name:root}) for (const leaf of json[root]) { const to = graph.addNode('Webpage',leaf) graph.addRel('',from,to) } }