Graph

The hanzo graph commands.

Also for this capability: API · CLI · MCP · SDKs

One organization's entities and the relations between them, held as assertions: somebody, at some moment, from some evidence, asserted that this thing stands in that relation to that other thing.

API reference →

hanzo graph get

Every command takes --json for the raw response and --help for its own flags. Sign in once with hanzo auth login; the commands below use that session, and the org they act in is the one it carries.

CommandWhat it does
hanzo graph answer --question <question>Answers a question from the whole graph and cites the assertions it rests on.
hanzo graph apple --at <at>Ingests an Apple Personal Knowledge Graph snapshot — live stable_graph triples, withdrawn expired_stable_graph rows and entityTagging kinship scorecards — into the organization's assertion plane.
hanzo graph communitiesPartitions the edge graph into sets of entities more densely connected to each other than to the rest.
hanzo graph convo --at <at> --source <source> --turns '[{"speaker":"<speaker>","text":"<text>"}]'Extracts entity state and relationship assertions from conversation turns and updates the graph.
hanzo graph create --assertions '[{"entity":"<entity>","relation":"<relation>","at":"<at>","source":"<source>"}]'Records a batch of assertions and counts what became of each.
hanzo graph deriveConcludes what the organization's rules derive from the graph, with a proof for every conclusion: the rule, and each support as the assertion in force it rests on or as the derived atom it is.
hanzo graph diffReports what came into force, was superseded and was retracted between two points.
hanzo graph entity --entity <entity>Resolves the complete state of one entity at a point: its type, its holding properties and edges in both directions, its kinship scorecard and the expired statements it no longer holds.
hanzo graph erase --entity <entity> --reason <reason>Removes every assertion that names an entity and returns a receipt.
hanzo graph extract --source <source> --text <text>Reads the relations a source states and returns them, recording nothing.
hanzo graph getLists the assertions recorded, every version, oldest first.
hanzo graph ingest --source <source> --text <text>Reads a source and records what it states, through the same admission as assert.
hanzo graph neighbors --seeds '["<seeds>"]'Walks the in-force edges from a set of seeds and lists every entity reached, bounded.
hanzo graph ontologyLists the entity classes, predicates, classifier features and kinship scorecard columns of the personal knowledge graph ontology.
hanzo graph path --from <from> --to <to>Finds the shortest chain of in-force edges from one entity to another.
hanzo graph resolve --entity <entity> --relation <relation>Answers what holds for one entity and relation at a point, winner first, with every weaker account that disagreed.
hanzo graph search --q <q>Finds assertions by their words, where read finds them by their keys, best match first.
hanzo graph vocabularyLists the relations in use, the schema declared for them and the rule that settles a conflict.

Graphql

CommandWhat it does
hanzo graph graphql createAsk the graph in one request, traversing.
hanzo graph graphql getRead the graph's GraphQL schema.
Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.