Typed relationship between knowledge graph nodes. Relation types are themselves nodes with subkind=relation.
any
Any valid record key
Properties
createdAt
string
datetime
Required
An RFC 3339 formatted timestamp.
createdBy
string
did
Optional
DID of creator or governance
id
string
Required
UUID identifier (also used as rkey)
metadata
ref
#edgeMetadata
Optional
Edge-specific metadata
proposalUri
string
at-uri
Optional
AT-URI of the proposal that created this edge (null for seeded)
relationSlug
string
Required
Relation slug for queries (broader, narrower, related, etc.)
maxLength: 50 bytesrelationUri
string
at-uri
Optional
AT-URI of relation type node (subkind=relation)
schemaRevision
integer
Optional
Schema revision this record was created with. Absent means revision 1.
minimum: 1sourceUri
string
at-uri
Required
AT-URI of source node
status
string
Required
Edge lifecycle status
proposed, established, deprecatedtargetUri
string
at-uri
Required
AT-URI of target node
updatedAt
string
datetime
Optional
An RFC 3339 formatted timestamp.
weight
integer
Optional
Optional edge weight for ranking (scaled by 1000 for 0.0-1.0 range)
minimum: 0maximum: 1000View raw schema
{
"key": "any",
"type": "record",
"record": {
"type": "object",
"required": [
"id",
"sourceUri",
"targetUri",
"relationSlug",
"status",
"createdAt"
],
"properties": {
"id": {
"type": "string",
"description": "UUID identifier (also used as rkey)"
},
"status": {
"type": "string",
"description": "Edge lifecycle status",
"knownValues": [
"proposed",
"established",
"deprecated"
]
},
"weight": {
"type": "integer",
"maximum": 1000,
"minimum": 0,
"description": "Optional edge weight for ranking (scaled by 1000 for 0.0-1.0 range)"
},
"metadata": {
"ref": "#edgeMetadata",
"type": "ref",
"description": "Edge-specific metadata"
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"createdBy": {
"type": "string",
"format": "did",
"description": "DID of creator or governance"
},
"sourceUri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of source node"
},
"targetUri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of target node"
},
"updatedAt": {
"type": "string",
"format": "datetime"
},
"proposalUri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the proposal that created this edge (null for seeded)"
},
"relationUri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of relation type node (subkind=relation)"
},
"relationSlug": {
"type": "string",
"maxLength": 50,
"description": "Relation slug for queries (broader, narrower, related, etc.)"
},
"schemaRevision": {
"type": "integer",
"minimum": 1,
"description": "Schema revision this record was created with. Absent means revision 1."
}
}
},
"description": "Typed relationship between knowledge graph nodes. Relation types are themselves nodes with subkind=relation."
}