forked from peterataylor/om-json
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Common.json
103 lines (103 loc) · 2.2 KB
/
Common.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json",
"title": "Common",
"description": "A collection of commonly used types. Should maybe come from somehwere else, one day.",
"definitions": {
"@context": {
"oneOf": [{
"title": "@context",
"description": "A context header for JSON-LD applications - using string here to allow for a remote context",
"type": "string"},
{"title": "@context",
"description": "A context header for JSON-LD applications - using array here to allow for a local context",
"type": "array"}
]
},
"count": {
"title": "count",
"type": "integer"
},
"measure": {
"title": "measure",
"description": "scaled number - uom is optional, to support the case where a common uom is used in a collection",
"type": "object",
"properties": {
"value": {
"type": "number"
},
"uom": {
"oneOf": [
{"type": "string"},
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/vocabTerm" }]
}
},
"required": [
"value"
],
"additionalProperties": false
},
"text": {
"title": "text",
"type": "string"
},
"truth": {
"title": "truth",
"type": "boolean"
},
"vocabTerm": {
"title": "vocabTerm",
"description": "term with optional vocabulary source",
"type": "object",
"properties": {
"term": {
"type": "string"
},
"vocabulary": {
"type": "string",
"format": "uri"
}
},
"required": [
"term"
],
"additionalProperties": false
},
"link": {
"title": "link",
"type": "object",
"properties": {
"href": {
"type": "string",
"format": "uri"
},
"rel": {
"type": "string",
"format": "uri"
},
"title": {
"type": "string"
}
},
"required": [
"href"
],
"additionalProperties": false
},
"doi": {
"title": "doi",
"description": "A Digital Object Identifer to define a resource",
"type": "object",
"properties": {
"doi": {
"type": "string",
"format": "uri"
}
},
"required": [
"doi"
],
"additionalProperties": false
}
}
}