-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathrelationship-footnote.schema.json
More file actions
45 lines (45 loc) · 1.52 KB
/
relationship-footnote.schema.json
File metadata and controls
45 lines (45 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://mda.sno.dev/spec/v1.0/schemas/relationship-footnote.schema.json",
"title": "MDA relationship payload",
"description": "Schema for the JSON payload of an MDA relationship footnote (`[^id]: { ... }`) and for entries in the `metadata.mda.relationships` mirror in compiled outputs.",
"type": "object",
"required": ["rel-type", "doc-id"],
"properties": {
"rel-type": {
"type": "string",
"enum": ["parent", "child", "related", "cites", "supports", "contradicts", "extends"],
"description": "The kind of relationship to the target document."
},
"doc-id": {
"type": "string",
"description": "Target document's `doc-id`. UUID format recommended.",
"minLength": 1
},
"rel-desc": {
"type": "string",
"description": "Human-readable description of the relationship."
},
"rel-strength": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Optional confidence/relevance score [0,1]."
},
"bi-directional": {
"type": "boolean",
"default": false,
"description": "Whether the relationship implies a link back from the target."
},
"context": {
"type": "object",
"description": "Optional details about where/how this link applies.",
"properties": {
"section": { "type": "string" },
"relevance": { "type": "string" }
},
"additionalProperties": true
}
},
"additionalProperties": false
}