notes graph
Tags: episteme
- https://observablehq.com/@mbostock/hello-cola
- https://observablehq.com/@d3/force-directed-graph
- https://stackoverflow.com/questions/20575026/how-to-make-labels-and-nodes-in-d3-forced-layout-clickable-to-navigate-to-a-url
- dendron: https://wiki.dendron.so/
Notes
- DB Structure https://org-roam.discourse.group/t/thoughts-on-db-structure/63
- link can be constructed with the last chunk of the ’titles’ table, filename == slug
- |to|from|type| in
links
gives you the type
building json
- grab all the links
- for each link get the type
- for each link resolve the to/from, swap out with the titles
- for specialized things with the root, color these differently
- iterate through json, generate a nodes and a list
- for each node, add the # of links -> color based on links?
syllabus galaxy
webgl visualization
- needs a click event, can be found in https://github.com/kdutia/d3fc/commit/f683cf3f7e70f3fc88869489a4ddf0a1b135efde#diff-a583ec383953418a7580d4415f51a29caf25c0410ef42aca8ac975a040bc537c
- https://github.com/ColinEberhardt/d3fc-webgl-hathi-explorer/blob/master/index.js#L152
- https://github.com/d3fc/d3fc/blob/master/examples/annotation-svg-line/index.js
- turns out the tsne projection is not very good, we might want to do a force projection with https://networkx.org/documentation/stable/reference/generated/networkx.drawing.layout.spring_layout.html
projection ideas:
- generate multidimensional graph from https://github.com/snap-stanford/snap/tree/master/examples/node2vec
- possibly the embedding projector? https://projector.tensorflow.org/?config=https://raw.githubusercontent.com/duarteocarmo/esco-visualizations/master/projector_config.json