Knowledge Graph
Every registered knowledge graph instance operation, with source-derived inputs, outputs, access policy, and errors.
This reference covers 17 HTTP operations registered by the Akasha daemon. Call these paths on your instance base URL. See authentication, errors, and coverage before integrating.
| Method | Path | Operation |
|---|---|---|
POST | /v1/graph/cypher | Graph cypher |
POST | /v1/graph/cypher-lite | Graph cypher lite |
POST | /v1/graph/index/ensure/property | Graph index ensure property |
POST | /v1/graph/index/ensure/composite | Graph index ensure composite |
GET | /v1/graph/index/stats | Graph index stats |
POST | /v1/graph/fulltext/search | Graph fulltext search |
POST | /v1/graph/subdomain/query | Graph subdomain query |
POST | /v1/graph/alg/pagerank | Graph pagerank |
POST | /v1/graph/alg/shortest_path | Graph shortest path |
POST | /v1/graph/alg/components | Graph components |
POST | /v1/graph/microtheory/switch | Graph microtheory switch |
POST | /v1/graph/microtheory/keyspace | Graph microtheory keyspace |
POST | /v1/graph/tx/begin | Graph tx begin |
POST | /v1/graph/tx/commit | Graph tx commit |
POST | /v1/graph/tx/rollback | Graph tx rollback |
GET | /v1/graph/schema | Graph schema metadata |
GET | /v1/graph/health | Graph health |
POST /v1/graph/cypher
Graph cypher
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — CypherRequest
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
query | String | Yes |
struct CypherRequest {
query: String,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"rows": rows})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2292. Registration: akasha-daemon/src/main.rs:4426.
POST /v1/graph/cypher-lite
Graph cypher lite
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — CypherLiteRequest
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
query | String | Yes | |
allow_updates | Option<bool> | No; optional or defaulted | |
enforce_transactions | Option<bool> | No; optional or defaulted | |
temporal | Option<TemporalClauseRequest> | No; optional or defaulted |
struct CypherLiteRequest {
query: String,
allow_updates: Option<bool>,
enforce_transactions: Option<bool>,
temporal: Option<TemporalClauseRequest>,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"rows": rows})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2306. Registration: akasha-daemon/src/main.rs:4427.
POST /v1/graph/index/ensure/property
Graph index ensure property
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — EnsurePropertyIndexRequest
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
property_name | String | Yes |
struct EnsurePropertyIndexRequest {
property_name: String,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"ok": true})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2369. Registration: akasha-daemon/src/main.rs:4428.
POST /v1/graph/index/ensure/composite
Graph index ensure composite
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — EnsureCompositeIndexRequest
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
properties | Vec<String> | Yes |
struct EnsureCompositeIndexRequest {
properties: Vec<String>,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"ok": true})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2386. Registration: akasha-daemon/src/main.rs:4432.
GET /v1/graph/index/stats
Graph index stats
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
No typed JSON, query, or path extractor is declared in the handler signature. Headers or request objects may still be consumed; the signature below is authoritative.
Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
statsErrors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2399. Registration: akasha-daemon/src/main.rs:4436.
POST /v1/graph/fulltext/search
Graph fulltext search
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — GraphFulltextRequest
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
query | String | Yes | |
limit | Option<usize> | No; optional or defaulted |
struct GraphFulltextRequest {
query: String,
limit: Option<usize>,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"rows": rows})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2417. Registration: akasha-daemon/src/main.rs:4437.
POST /v1/graph/subdomain/query
Graph subdomain query
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — SubdomainQueryReq
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
namespace | String | Yes | |
domain | String | Yes | |
subdomain | String | Yes | |
limit | Option<usize> | No; optional or defaulted |
struct SubdomainQueryReq {
namespace: String,
domain: String,
subdomain: String,
limit: Option<usize>,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"rows": rows})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2459. Registration: akasha-daemon/src/main.rs:4438.
POST /v1/graph/alg/pagerank
Graph pagerank
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — PagerankRequest
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
damping | Option<f64> | No; optional or defaulted |
struct PagerankRequest {
damping: Option<f64>,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
rErrors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2477. Registration: akasha-daemon/src/main.rs:4439.
POST /v1/graph/alg/shortest_path
Graph shortest path
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — ShortestPathRequest
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
source | String | Yes | |
target | String | Yes |
struct ShortestPathRequest {
source: String,
target: String,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
rErrors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2497. Registration: akasha-daemon/src/main.rs:4440.
POST /v1/graph/alg/components
Graph components
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — ComponentsRequest
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
strong | Option<bool> | No; optional or defaulted |
struct ComponentsRequest {
strong: Option<bool>,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"communities": serde_json::to_value(&r).unwrap_or_default()}),Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2520. Registration: akasha-daemon/src/main.rs:4441.
POST /v1/graph/microtheory/switch
Graph microtheory switch
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — MicrotheorySwitchRequest
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
name | String | Yes |
struct MicrotheorySwitchRequest {
name: String,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"ok": true, "keyspace": keyspace})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2540. Registration: akasha-daemon/src/main.rs:4442.
POST /v1/graph/microtheory/keyspace
Graph microtheory keyspace
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — MicrotheoryKeyspaceRequest
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
name | String | Yes |
struct MicrotheoryKeyspaceRequest {
name: String,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"ok": true, "keyspace": keyspace})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2558. Registration: akasha-daemon/src/main.rs:4446.
POST /v1/graph/tx/begin
Graph tx begin
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
No typed JSON, query, or path extractor is declared in the handler signature. Headers or request objects may still be consumed; the signature below is authoritative.
Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"tx_id": id.to_string()})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9565. Registration: akasha-daemon/src/main.rs:4450.
POST /v1/graph/tx/commit
Graph tx commit
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — GraphTxIdReq
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
id | String | Yes |
struct GraphTxIdReq {
id: String,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"ok": true})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9583. Registration: akasha-daemon/src/main.rs:4451.
POST /v1/graph/tx/rollback
Graph tx rollback
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — GraphTxIdReq
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
id | String | Yes |
struct GraphTxIdReq {
id: String,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"ok": true})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9602. Registration: akasha-daemon/src/main.rs:4452.
GET /v1/graph/schema
Graph schema metadata
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
No typed JSON, query, or path extractor is declared in the handler signature. Headers or request objects may still be consumed; the signature below is authoritative.
Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
metadataErrors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:2431. Registration: akasha-daemon/src/main.rs:4453.
GET /v1/graph/health
Graph health
| Availability | Source contract |
|---|---|
| Registration | config.enable_graph |
| Runtime service | graph |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
No typed JSON, query, or path extractor is declared in the handler signature. Headers or request objects may still be consumed; the signature below is authoritative.
Response
Declared return: Result<impl IntoResponse, DaemonError>
Serialization is delegated or the handler returns a raw response. Consult the exact handler below; the OpenAPI response intentionally remains unconstrained.
Errors and validation
Directly referenced error variants: none in the handler body. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:10285. Registration: akasha-daemon/src/main.rs:4454.