Skip to content

Instantly share code, notes, and snippets.

@almibe
Last active March 1, 2024 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almibe/323eb2cd3f1e954f8e3f012b4e891726 to your computer and use it in GitHub Desktop.
Save almibe/323eb2cd3f1e954f8e3f012b4e891726 to your computer and use it in GitHub Desktop.

Older Model

enum Value = Id | Int | String | Bytes
Statement = (Id, Id, Value)
Ligature = Map[DatasetName, Set[Statement]]

Graph-like Model

enum Value = Label | Int | String | Bytes
Edge = (Label, Label, Value)
Ligature = Map[GraphName, Set[Edge]]

Newer Model

Entity Attribute Value Class Type
Id Id Role = (Id, Id)
Id Id Id Link = (Id, Id, Id)
Id Id String StringProperty = (Id, Id, String)
Id Id Int IntProperty = (Id, Id, Int)
Id Id Bytes BytesProperty = (Id, Id, Bytes)
enum Statement = Role | Link | StringProperty | IntProperty | BytesProperty

Ligature = Map[DatasetName, Set[Statement]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment