Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs. Graphs, hypergraphs, and spatio-temporal extractions — with one command.
"""Read-only graph exporters (GraphML, CSV, JSON-LD, Cypher).
These are pure functions over node/edge models, matching
:func:`hyperextract.utils.obsidian.export_to_obsidian`. They are not methods
on AutoType classes.
Example::
from hyperextract.utils.exporters import export_to_graphml, export_to_csv
export_to_graphml(
ka.nodes,
ka.edges,
node_id_extractor=ka.node_key_extractor,
incident_nodes_extractor=ka.nodes_in_edge_extractor,
file_path="graph.graphml",
)
"""
from .common import HYPEREDGE_MEMBER_SEP
from .csv_export import export_to_csv
from .cypher import export_to_cypher
from .graphml import GraphMLHypergraphError, export_to_graphml
from .jsonld import export_to_jsonld
__all__ = [
"HYPEREDGE_MEMBER_SEP",
"GraphMLHypergraphError",
"export_to_csv",
"export_to_cypher",
"export_to_graphml",
"export_to_jsonld",
]