File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,8 +95,14 @@ options:
9595 --no-inference Disable relationship inference
9696```
9797
98- ### Example output
98+ ### Example Run
9999
100+ ** Command:**
101+
102+ ``` bash
103+ generate-graph --input data/industrial-revolution.txt --output industrial-revolution-kg.html
104+ ```
105+ ** Console Output:**
100106
101107``` markdown
102108Using input text from file: data/industrial-revolution.txt
@@ -165,14 +171,14 @@ Top 5 relationship types after inference:
165171
166172Added 370 inferred relationships
167173Final knowledge graph: 564 triples
168- Saved raw knowledge graph data to /mnt/c/Users/rmcdermo/Documents/industrial-revolution-kb101 .json
174+ Saved raw knowledge graph data to /mnt/c/Users/rmcdermo/Documents/industrial-revolution-kg .json
169175Processing 564 triples for visualization
170176Found 161 unique nodes
171177Found 355 inferred relationships
172178Detected 9 communities using Louvain method
173179Nodes in NetworkX graph: 161
174180Edges in NetworkX graph: 537
175- Knowledge graph visualization saved to /mnt/c/Users/rmcdermo/Documents/industrial-revolution-kb101 .html
181+ Knowledge graph visualization saved to /mnt/c/Users/rmcdermo/Documents/industrial-revolution-kg .html
176182Graph Statistics: {
177183 "nodes": 161,
178184 "edges": 564,
@@ -187,7 +193,7 @@ Edges: 564
187193Communities: 9
188194
189195To view the visualization, open the following file in your browser:
190- file:///mnt/c/Users/rmcdermo/Documents/industrial-revolution-kb101 .html
196+ file:///mnt/c/Users/rmcdermo/Documents/industrial-revolution-kg .html
191197```
192198
193199## How It Works
You can’t perform that action at this time.
0 commit comments