-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjson-schema-basic.json
More file actions
81 lines (79 loc) · 1.85 KB
/
json-schema-basic.json
File metadata and controls
81 lines (79 loc) · 1.85 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"title": "Schema for RESTful Open Annotation in JSON-LD",
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"listOfUri": {
"oneOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "array",
"items":{
"type":"string",
"format": "uri"
}
}
]
},
"xsd:dateTime": {
"type": "string",
"pattern": "^[1-9][0-9]{3}-[0-1][0-9]-[0-3][0-9]T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z?|[+-].+)$"
}
},
"type": "object",
"properties": {
"@context": {
"description": "Used to define the short-hand names that are used throughout a JSON-LD document.",
"type": ["object", "string", "array", "null"]
},
"@graph": {
"type": ["array"],
"items": {
"type": ["object"],
"properties": {
"body": {
"description": "the comment or other descriptive resource",
"oneOf": [
{"$ref": "#/definitions/listOfUri"},
{
"type": "object",
"properties": {
"@id": {"type": "string", "format": "uri"}
},
"additionalProperties": true
}
]
},
"target": {
"description": "the body is somehow about",
"$ref": "#/definitions/listOfUri"
},
"annotatedBy": {
"description": "the agent creating the annotation",
"$ref": "#/definitions/listOfUri"
},
"serializedBy": {
"description": "the agent serialzing the annotation",
"$ref": "#/definitions/listOfUri"
},
"serializedAt": {
"description": "the time when the annotation is serialized",
"$ref": "#/definitions/xsd:dateTime"
},
"annotatedAt": {
"description": "the time when the annotation is created",
"type": "string",
"$ref": "#/definitions/xsd:dateTime"
},
"@id": {
"type": "string",
"format": "uri"
}
},
"required": ["target", "@id"]
}
}
}
}