Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
692 changes: 692 additions & 0 deletions data/rules/legal.json

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions data/schemas/legal/analysis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://gobl.org/draft-0/legal/analysis",
"$ref": "#/$defs/legal.Analysis",
"$defs": {
"legal.Analysis": {
"properties": {
"uuid": {
"type": "string",
"format": "uuid",
"title": "UUID",
"description": "Universally Unique Identifier."
},
"contract": {
"$ref": "https://gobl.org/draft-0/legal/reference",
"title": "Contract"
},
"produced_at": {
"$ref": "https://gobl.org/draft-0/cal/timestamp",
"title": "Produced At"
},
"method": {
"$ref": "https://gobl.org/draft-0/cbc/code",
"title": "Method"
},
"annotations": {
"items": {
"$ref": "https://gobl.org/draft-0/legal/annotation"
},
"type": "array",
"title": "Annotations"
}
},
"type": "object",
"required": [
"contract",
"produced_at",
"method",
"annotations"
],
"description": "Analysis is a replaceable, non-authoritative interpretation of an exact contract version produced by an LLM, rules engine, or human reviewer."
}
}
}
42 changes: 42 additions & 0 deletions data/schemas/legal/annotation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://gobl.org/draft-0/legal/annotation",
"$ref": "#/$defs/legal.Annotation",
"$defs": {
"legal.Annotation": {
"properties": {
"anchor": {
"type": "string",
"title": "Anchor"
},
"kind": {
"$ref": "https://gobl.org/draft-0/cbc/key",
"title": "Kind"
},
"subject": {
"$ref": "https://gobl.org/draft-0/cbc/key",
"title": "Subject Party"
},
"object": {
"$ref": "https://gobl.org/draft-0/cbc/key",
"title": "Object Party"
},
"summary": {
"type": "string",
"title": "Summary"
},
"data": {
"$ref": "https://gobl.org/draft-0/cbc/meta",
"title": "Data"
}
},
"type": "object",
"required": [
"anchor",
"kind",
"summary"
],
"description": "Annotation links a semantic observation to an anchored fragment."
}
}
}
58 changes: 58 additions & 0 deletions data/schemas/legal/assent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://gobl.org/draft-0/legal/assent",
"$ref": "#/$defs/legal.Assent",
"$defs": {
"legal.Assent": {
"properties": {
"uuid": {
"type": "string",
"format": "uuid",
"title": "UUID",
"description": "Universally Unique Identifier."
},
"contract": {
"$ref": "https://gobl.org/draft-0/legal/reference",
"title": "Contract"
},
"party": {
"$ref": "https://gobl.org/draft-0/cbc/key",
"title": "Party"
},
"entity": {
"$ref": "https://gobl.org/draft-0/org/party",
"title": "Entity",
"description": "Entity identifies the concrete legal person taking an open party role.\nIt may be omitted when the Contract already identifies that entity."
},
"signatory": {
"$ref": "https://gobl.org/draft-0/cbc/key",
"title": "Signatory"
},
"representative": {
"$ref": "https://gobl.org/draft-0/org/person",
"title": "Representative",
"description": "Representative identifies a person acting for Entity when the contract\ndid not name that person in advance."
},
"intent": {
"$ref": "https://gobl.org/draft-0/cbc/key",
"title": "Intent"
},
"capacity": {
"type": "string",
"title": "Capacity"
},
"statement": {
"type": "string",
"title": "Statement"
}
},
"type": "object",
"required": [
"contract",
"party",
"intent"
],
"description": "Assent is a separately signed declaration of intent concerning one exact contract artifact."
}
}
}
51 changes: 51 additions & 0 deletions data/schemas/legal/chapter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://gobl.org/draft-0/legal/chapter",
"$ref": "#/$defs/legal.Chapter",
"$defs": {
"legal.Chapter": {
"properties": {
"$anchor": {
"type": "string",
"title": "Anchor",
"description": "Unique anchor for this chapter inside the document"
},
"idx": {
"type": "integer",
"title": "Index",
"description": "Index of this chapter inside its context.",
"calculated": true
},
"$ref": {
"type": "string",
"title": "Ref",
"description": "Link to the source material for this chapter"
},
"title": {
"type": "string",
"title": "Title",
"description": "Chapter title"
},
"sub_title": {
"type": "string",
"title": "Sub Title",
"description": "Additional sub-title for the chapter."
},
"sections": {
"items": {
"$ref": "https://gobl.org/draft-0/legal/section"
},
"type": "array",
"title": "Sections",
"description": "Sections containing the chapter's contents."
}
},
"type": "object",
"required": [
"idx",
"title"
],
"description": "Chapter represents a chapter inside a document."
}
}
}
Loading
Loading