#\#CIF_2.0
##############################################################################
#                                                                            #
#                   DICTIONARY FOR IMPORT TESTING PURPOSES                   #
#                                                                            #
##############################################################################
data_BASE_DIC

    _dictionary.title            BASE_DIC
    _dictionary.class            Instance
    _dictionary.version          1.0.0
    _dictionary.date             2023-09-13
    _dictionary.uri              http://www.example.org/base.dic
    _dictionary.ddl_conformance  4.2.0
    _dictionary.namespace        BaseDic
    _description.text
;
    This is a test dictionary.

    This dictionary contains data item definitions without a _name.category_id
    attribute. Although this is not allowed by the DDLm specification, such
    situations should still preferably be handled without data loss.
;
    loop_
    _dictionary_audit.version
    _dictionary_audit.date
    _dictionary_audit.revision
    1.0.0 2023-09-13 'Created the dictionary.'

save_BASE_HEAD_CATEGORY_ID
    _definition.id               BASE_HEAD_CATEGORY_ID
    _definition.scope            Category
    _definition.class            Head
    _definition.update           2023-09-13
    _description.text
;
    This category is parent of all other categories in the
    BASE_DIC dictionary.
;
    _name.category_id            BASE_DIC
    _name.object_id              BASE_HEAD_CATEGORY_ID
save_

save_TEST_IMPORT_CATEGORY_ID
    _definition.id               TEST_IMPORT_CATEGORY_ID
    _definition.scope            Category
    _definition.class            Set
    _definition.update           2019-03-28
    _description.text
;
    A category that contains items with the import statement.
;
    _name.category_id            BASE_HEAD_CATEGORY_ID
    _name.object_id              TEST_IMPORT_CATEGORY_ID
save_

save_test_import_category_id.item_1
    _definition.id               '_test_import_category_id.item_1'
    _definition.update            2023-09-13
    _description.text
;
    A faulty data item definition that imports the _name.category_id attribute
    instead of having in the main definition body.
;
    _name.object_id               item_1
    _type.purpose                 Describe
    _type.source                  Recorded
    _type.container               Single
    _type.contents                Text
save_

save_test_import_category_id.item_2
    _definition.id               '_test_import_category_id.item_2'
    _definition.update            2023-09-13
    _description.text
;
    A faulty data item definition that imports the _name.category_id attribute
    instead of having in the main definition body.
;
    _name.object_id               item_2
    _type.purpose                 Describe
    _type.source                  Recorded
    _type.container               Single
    _type.contents                Text
save_

save_test_import_category_id.item_3
    _definition.id               '_test_import_category_id.item_3'
    _definition.update            2023-09-13
    _description.text
;
    A faulty data item definition that imports the _name.category_id attribute
    instead of having in the main definition body.
;
    _name.object_id               item_3
    _type.purpose                 Describe
    _type.source                  Recorded
    _type.container               Single
    _type.contents                Text
save_

save_test_import_category_id.item_4
    _definition.id                '_test_import_category_id.item_4'
    _definition.update            2023-09-13
    _description.text
;
    A data item definition that does contain the _name.category_id attribute.
;
    _name.category_id             test_import_category_id
    _name.object_id               item_4
    _type.purpose                 Describe
    _type.source                  Recorded
    _type.container               Single
    _type.contents                Text
save_

save_ORPHAN_CATEGORY
    _definition.id                ORPHAN_CATEGORY
    _definition.scope             Category
    _definition.class             Set
    _definition.update            2019-03-28
    _description.text
;
    A category that does not contains the _name.category_id attribute.
;
    _name.object_id               ORPHAN_CATEGORY
save_

save_orphan_category.item_1
    _definition.id                '_orphan_category.item_1'
    _definition.update            2023-09-13
    _description.text
;
    A data item definition that belongs to an orphan category.
;
    _name.category_id             orphan_category
    _name.object_id               item_1
    _type.purpose                 Describe
    _type.source                  Recorded
    _type.container               Single
    _type.contents                Text
save_

save_ORPHAN_SUBCATEGORY
    _definition.id                ORPHAN_SUBCATEGORY
    _definition.scope             Category
    _definition.class             Set
    _definition.update            2019-03-28
    _description.text
;
    A category that is a child of an orphan category.
;
    _name.category_id             ORPHAN_CATEGORY
    _name.object_id               ORPHAN_SUBCATEGORY
save_


save_orphan_subcategory.item_1
    _definition.id                '_orphan_subcategory.item_1'
    _definition.update            2023-09-13
    _description.text
;
    A data item definition that belongs to the ORPHAN_SUBCATEGORY category.
;
    _name.category_id             orphan_subcategory
    _name.object_id               item_1
    _type.purpose                 Describe
    _type.source                  Recorded
    _type.container               Single
    _type.contents                Text
save_
