#\#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_
