Skip to main content

What are Graphs?

Graphs are a way to group related triples within an index. While indexes separate different knowledge domains, graphs organize triples within a domain. Think of:
  • Index = A database
  • Graph = A table or collection within that database

When to Use Graphs

By Session

Group triples created in one research session:

By Source

Group triples from the same document or URL:

By Topic

Group triples about a specific topic:

Creating a Graph

Response:

Using Graphs

Add Triples to a Graph

Include graph_id when creating triples:

Query Triples by Graph

Move Triple to Different Graph

Update the triple’s graph:

Listing Graphs

All Graphs

Search Graphs

Getting a Graph

Returns the graph with its triple count:

Deleting a Graph

Delete Graph Only

Delete the graph but keep its triples (they become ungrouped):

Delete Graph and Triples

Delete the graph and all its triples:
Deleting with deleteTriples=true permanently removes all triples in the graph.

Graph Properties

Best Practices

Descriptive Names

Use names that describe the content or context:

Use Metadata

Store additional context in metadata:

Graphs are Optional

You don’t have to use graphs. If organization isn’t important, just use indexes without graphs.

API Reference

See the complete Graphs API documentation.