forked from datatagsuite/schema
-
Notifications
You must be signed in to change notification settings - Fork 4
/
annotation_schema.json
60 lines (60 loc) · 1.36 KB
/
annotation_schema.json
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"id": "https://w3id.org/dats/schema/annotation_schema.json",
"$schema": "http://json-schema.org/draft-04/schema",
"title": "DATS annotation schema",
"description": "A pair of value (string or numeric) with a corresponding ontology term (IRI), if applicable.",
"type": "object",
"properties": {
"@context": {
"description": "The JSON-LD context",
"anyOf": [
{
"type": "string"
},
{
"type": "object"
},
{
"type": "array"
}
]
},
"@id": {
"description": "The JSON-LD identifier",
"type": "string",
"format": "uri"
},
"@type": {
"description": "The JSON-LD type",
"type": "string",
"enum": [
"Annotation"
]
},
"value": {
"description": "The value of the annotation - it can be a string or a number (for coded values).",
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"valueIRI": {
"description": "The IRI of a concept or ontology term associated with the value. It can also be an empty string",
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "string",
"maxLength": 0
}
]
}
},
"additionalProperties": false
}