Skip to main content

Crate anno_graph

Crate anno_graph 

Source
Expand description

Adapters between anno-core and lattix.

This crate exists to avoid introducing a dependency edge from anno-corelattix while still letting downstream tooling treat lattix as the graph/KG substrate.

§Functions

  • entities_to_knowledge_graph — the preferred export path: takes raw extraction output (Entity + Relation slices) and emits a fully-annotated KnowledgeGraph including character-offset, confidence, and provenance triples. Used by anno export --format graph-ntriples.

Functions§

entities_to_graph_document
Convert entities and relations into a lattix::exchange::GraphDocument.
entities_to_knowledge_graph
Build a fully-annotated KnowledgeGraph from raw NER + relation extraction output.
grounded_to_graph_document
Convert a GroundedDocument into a lattix::exchange::GraphDocument.
uri_safe
Make a string safe for use inside a URI path segment.