Adding Fact Triples
How to add fact triples to your Graphiti graph
A โfact tripleโ consists of two nodes and an edge between them, where the edge typically contains some fact. You can manually add a fact triple of your choosing to the graph like this:
When you add a fact triple, Graphiti will attempt to deduplicate your passed in nodes and edge with the already existing nodes and edges in the graph. If there are no duplicates, it will add them as new nodes and edges.
Also, you can avoid constructing EntityEdge
or EntityNode
objects manually by using the results of a Graphiti search (see Searching the Graph).