org.llm4s.knowledgegraph

Members list

Type members

Classlikes

case class Edge(source: String, target: String, relationship: String, properties: Map[String, Value])

Represents an edge (relationship) between two nodes.

Represents an edge (relationship) between two nodes.

Value parameters

properties

Additional attributes of the relationship (preserves JSON types)

relationship

The type of relationship (e.g., "WORKS_FOR", "LOCATED_IN")

source

The ID of the source node

target

The ID of the target node

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Graph(nodes: Map[String, Node], edges: List[Edge])

Represents a Knowledge Graph containing nodes and edges.

Represents a Knowledge Graph containing nodes and edges.

Value parameters

edges

List of Edges in the graph

nodes

Map of Node ID to Node object

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Graph

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Graph.type
case class Node(id: String, label: String, properties: Map[String, Value])

Represents a node (entity) in the knowledge graph.

Represents a node (entity) in the knowledge graph.

Value parameters

id

Unique identifier for the node

label

The type or category of the entity (e.g., "Person", "Organization")

properties

Additional attributes of the entity (preserves JSON types)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all