Relation

@Serializable
value class Relation : Comparable<Relation>

A combination of a data kind and target entity that represents a relation between two entities.

When a relation is added to a source entity, we say the source has a relation of the kind kind with target.

For example: Alice has a relation of the kind Friend with Bob.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun compareTo(other: Relation): Int
Link copied to clipboard
inline fun Relation.hasRole(role: ULong): Boolean
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard
inline fun Relation.withoutRole(role: ULong): Relation
Link copied to clipboard
inline fun Relation.withRole(role: ULong): Relation

Properties

Link copied to clipboard
Link copied to clipboard

The part of the relation which determines its data type. It includes all the relation's type roles, except the RELATION role.

Link copied to clipboard

The part of the relation that points to another entity.