-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjavert_schema.xsd
232 lines (209 loc) · 7.26 KB
/
javert_schema.xsd
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?xml version="1.0" encoding="UTF-8"?>
<!--
external_mandate:
kind=(law|regulation|guideline)
name
citation
description
link
effective_date
current_as_of_date
text
subitems
external_mandate_content:
citation
name
description
link
text
content
base [id]:
designation=string
last_updated=datetime
associations=guids
risk
base
risk_description
risk_type
internal_mandate:
base
kind=(policy|procedure|process_document)
process?
standard?
control?
entity?
base
kind=(person|company|process|unit)
assessment?
finding?
item?
evidence?
file?
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xs:annotation>
<xs:documentation xml:lang="en">
This is the schema for JavertXML, which is intended to be used for
the exchange and storage of governance, risk, and compliance data.
</xs:documentation>
<xs:appinfo>
<author>
Theo Naunheim
</author>
<copyright>
Copyright 2020, Theo Naunheim
</copyright>
<license>
MIT License
</license>
<license_uri>
https://opensource.org/licenses/MIT
</license_uri>
<version>
0.1.0
</version>
</xs:appinfo>
</xs:annotation>
<xs:simpleType name="guid_type">
<xs:annotation>
<xs:documentation xml:lang="en">
This defines a simple GUID string used in references and as the
ID attribute for base classes.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="base_type">
<xs:annotation>
<xs:documentation xml:lang="en">
This base type contains information that should accompany every
type of JavertXML element.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="designation">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="1000" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="description" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10000" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="last_updated" type="xs:dateTime" />
<xs:element name="associations" type="guid_type" minOccurs="0" maxOccurs="1000" />
</xs:sequence>
<xs:attribute name="id" type="guid_type" />
</xs:complexType>
<xs:complexType name="file_type">
<xs:annotation>
<xs:documentation>
Extends javert_base. This type contains a document type; it can
either store a URI or base64 encoded file data.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="base_type">
<xs:sequence>
<xs:element name="filename">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:choice>
<xs:element name="base64_data">
<xs:simpleType>
<xs:restriction base="xs:base64Binary">
<xs:maxLength value="1333333334" /> <!-- 1GB as base64 is 1,333,333,333.3 bytes -->
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="data_uri" type="xs:anyURI"/>
</xs:choice>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="external_mandate">
<xs:annotation>
<xs:documentation>
Extends javert_base. Element is intended to represent a law,
regulation, guideline, or other standard outside the entity.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="base_type">
<xs:sequence>
<xs:element name="effective_date" type="xs:date" minOccurs="0" />
<xs:element name="current_as_of_date" type="xs:date" minOccurs="0" />
<xs:element name="link" type="xs:anyURI" minOccurs="0"/>
<xs:element name="kind">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="law" />
<xs:enumeration value="regulation" />
<xs:enumeration value="guideline" />
<xs:enumeration value="other" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="citation">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="contents" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element ref="external_mandate_content" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="external_mandate_content">
<xs:annotation>
<xs:documentation>
Extends javert_base.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="base_type">
<xs:sequence>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!--
link
effective_date
current_as_of_date
text
subitems
external_mandate_content:
citation
name
description
link
text
content
-->
</xs:schema>