File: ddlm_invalid_purpose.dic

package info (click to toggle)
cod-tools 3.11.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 159,136 kB
  • sloc: perl: 58,707; sh: 41,323; ansic: 7,268; xml: 1,982; yacc: 1,117; makefile: 731; python: 166
file content (206 lines) | stat: -rw-r--r-- 6,448 bytes parent folder | download | duplicates (2)
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
#\#CIF_2.0
##############################################################################
#                                                                            #
#    FAKE DICTIONARY WITH INVALID DATA ITEM PURPOSES FOR TESTING PURPOSES    #
#                                                                            #
##############################################################################
data_FAKE_INVALID_PURPOSE_DIC
_dictionary.title            FAKE_INVALID_PURPOSE_DIC
_dictionary.class            Instance
_dictionary.version          0.1.0
_dictionary.date             2023-07-12
_dictionary.uri              http://www.fake.org/invalid_purpose.dic
_dictionary.ddl_conformance  3.13.1
_dictionary.namespace        FakeInvalidPurposeDic
_description.text
;
 This dictionary purposely contains data item definitions with
 invalid purposes.
;
loop_
_dictionary_audit.version
_dictionary_audit.date
_dictionary_audit.revision
0.1.0 2023-07-12 'Creating the dictionary.'

save_INVALID_PURPOSE_HEAD
_definition.id               INVALID_PURPOSE_HEAD
_definition.scope            Category
_definition.class            HEAD
_definition.update           2019-02-11
_description.text
;
 The HEAD category of the dictionary.
;
_name.category_id            FAKE_INVALID_PURPOSE_DIC
_name.object_id              INVALID_PURPOSE_HEAD
save_

save_VALID_PURPOSE
_definition.id               VALID_PURPOSE
_definition.scope            Category
_definition.class            Set
_definition.update           2020-10-12
_description.text
;
 Data items in the VALID_PURPOSE category contain valid purposes.
;
_name.category_id            INVALID_PURPOSE_HEAD
_name.object_id              VALID_PURPOSE
save_

save_valid_purpose.state
_definition.id               '_valid_purpose.state'
_definition.update           2020-10-12
_description.text
;
 Data item definition that contains a valid 'State' purpose with
 the required _enumeration_set.state data item.
;
_name.category_id            valid_purpose
_name.object_id              state
_type.purpose                State
_type.source                 Assigned
_type.container              Single
_type.contents               Text
loop_
_enumeration_set.state
state_1
state_2
save_

save_valid_purpose.link
_definition.id               '_valid_purpose.link'
_definition.update           2020-10-12
_description.text
;
 Data item definition that contains a valid 'Link' purpose
 with the _name.linked_item_id data item.
;
_name.category_id            valid_purpose
_name.object_id              link
_type.purpose                Link
_type.source                 Assigned
_type.container              Single
_type.contents               Integer
_units.code                  kelvins
_name.linked_item_id         '_valid_purpose.linked_item'
save_

save_valid_purpose.linked_item
_definition.id               '_valid_purpose.linked_item'
_definition.update           2020-10-12
_description.text
;
 Data item definition that is linked by the _valid_purpose.link data item.
;
_name.category_id            valid_purpose
_name.object_id              linked_item
_type.purpose                Describe
_type.source                 Assigned
_type.container              Single
_type.contents               Integer
_units.code                  kelvins
save_

save_valid_purpose.measured_item_su
_definition.id               '_valid_purpose.measured_item_su'
_definition.update           2020-10-12
_description.text
;
 Data item definition that contains a valid 'SU' purpose
 with the _name.linked_item_id data item.
;
_name.category_id            valid_purpose
_name.object_id              measured_item_su
_type.purpose                SU
_type.source                 Related
_type.container              Single
_type.contents               Integer
_units.code                  kelvins
_name.linked_item_id         '_valid_purpose.measured_item'
save_


save_valid_purpose.measured_item
_definition.id               '_valid_purpose.measured_item'
_definition.update            2020-10-12
_description.text
;
 Data item definition to which the _valid_purpose.measured_item_su
 data item definition links to.
;
_name.category_id            valid_purpose
_name.object_id              measured_item
_type.purpose                Measurand
_type.source                 Assigned
_type.container              Single
_type.contents               Integer
_units.code                  kelvins
save_

save_INVALID_PURPOSE
_definition.id               INVALID_PURPOSE
_definition.scope            Category
_definition.class            Set
_definition.update           2019-02-11
_description.text
;
 Data items in the INVALID_PURPOSE category intentionally contain
 invalid purposes.
;
_name.category_id            INVALID_PURPOSE_HEAD
_name.object_id              INVALID_PURPOSE
save_

save_invalid_purpose.link
_definition.id               '_invalid_purpose.link'
_definition.update            2019-02-11
_description.text
;
 Data item definition that contains an invalid 'Link' purpose due
 to the missing _name.linked_item_id data item.
;
_name.category_id             invalid_purpose
_name.object_id               link
_type.purpose                 Link
_type.source                  Assigned
_type.container               Single
_type.contents                Text
save_

save_invalid_purpose.su

    _definition.id               '_invalid_purpose.su'
    _definition.update           2023-07-12
    _description.text
;
    Definition that is incorrect in regards to the 'SU' purpose in two ways:
    - The definition does not contain the _name.linked_item_id attribute.
    - The `_type.source` is not set the 'Related'.
;
    _name.category_id            invalid_purpose
    _name.object_id              su
    _type.purpose                SU
    _type.source                 Assigned
    _type.container              Single
    _type.contents               Integer
    _units.code                  kelvins

save_

save_invalid_purpose.state
_definition.id               '_invalid_purpose.state'
_definition.update            2019-02-11
_description.text
;
 Data item definition that contains an invalid 'State' purpose due
 to the missing _enumeration_set.state data item.
;
_name.category_id             invalid_purpose
_name.object_id               state
_type.purpose                 State
_type.source                  Assigned
_type.container               Single
_type.contents                Text
save_