TF Knowledge Graph

Jupyter Notebooks to generate and visualize knowledge graphs from Text-Fabric datasets.

Using TF Knowledge Graph

Explore without running a notebook

Open the included N1904 graph in your browser. Right-click a node or edge and choose “Show Node Info” or “Show Edge Info” to inspect it.

The interactive viewer loads Cytoscape.js and its context-menu plugin from a CDN, so it requires an internet connection.

Generate a graph

Use a Python environment that can run Jupyter Notebooks and Text-Fabric. The notebooks document their dependencies and dataset loading steps.

  1. Download or clone the repository.
  2. Open create_knowledge_graph.ipynb. Review the dataset configuration and run the cells to generate the JSON graph.
  3. Open generate_cytoscape_html.ipynb to add node positions and generate the interactive HTML file.
  4. Open the generated HTML file in your browser to explore the result.

Included example files

FilePurpose
Knowledge graph JSONThe exported N1904 knowledge graph.
Cytoscape elements JSONGraph elements used for visualization.
Node positions JSONSaved coordinates for the graph layout.
Interactive HTML graphThe browser-based N1904 viewer.