Overview
Export the knowledge graph to standard formats for use in external tools, analysis platforms, or visualization software.Usage
Arguments
Export format. Supported values:
json- JSON graph formatgraphml- GraphML XML format (default)gexf- GEXF XML format for Gephicsv- CSV edge/node listssqlite- SQLite database
Options
Output directory containing graph data. Use
-o as shorthand.Export file or directory path. Overrides default location.
Enable verbose logging. Use
-v as shorthand.Supported Formats
GraphML (Default)
XML-based graph format supported by:- Cytoscape
- yEd
- Neo4j
- NetworkX
{output_dir}/graph.graphml
GEXF
Graph Exchange XML Format for:- Gephi
- Sigma.js
- Graph visualization tools
{output_dir}/graph.gexf
JSON
Structured JSON with full graph data:- Nodes with attributes
- Edges with properties
- Metadata
{output_dir}/graph.json
CSV
Two CSV files:entities.csv- Node list with attributesrelations.csv- Edge list with properties
{output_dir}/csv/
SQLite
Relational database with tables:entities- Entity nodesrelations- Edgesattributes- Entity attributes
{output_dir}/graph.sqlite
Entity Descriptions
Ifentity_descriptions.json exists (from sift narrate), descriptions are included in exports:
Examples
Export to GraphML
output/graph.graphml.
Export to Gephi format
output/graph.gexf for Gephi visualization.
Export to CSV
output/csv/entities.csv and output/csv/relations.csv.
Custom export path
Export from custom output directory
Export to SQLite
Output Summary
Displays:- Export format
- Entity count
- Relation count
- Output file location(s)
Example Output
Common Workflows
Export for Gephi
Export for Python analysis
Export for Neo4j
Export for R/igraph
Error Handling
Exits with error if:- No
graph_data.jsonfound (runsift buildfirst) - Unsupported format specified
- Invalid export path
Format Validation
Common Mistake Prevention
If user typessift export --to json (meaning format):