Raw Metadata

Raw items in Data Hub contain metadata that describe the structure of the raw data entering the data pool. It is a direct analog of the source system data structure. The metadata forms the basis for the raw to canonical item mapping during the composition phase of Data Hub workflow.

Raw Item Metadata Entities

The raw item metadata consists of RawItemMetadata, which contains a description of the raw item categories, such as RawProduct. It also contains the RawAttributeModelDefinition, which contains a description of the data fields for each of these categories. The raw item entity relationships are shown in the following diagram.

RawItemMetadata

The RawItemMetadata describes a RawItem type. An example of the RawItemMeta table from a sample data set, and its related XML definition, is shown in the following.

RawItemMeta Table

+---------------------+-------------+----------------+----------------------------------------+-------------------------------------------------------------+---------------------+---------+-----------------+--------+------------------+
| modifiedtime        | itemtype    | itemmetadataid | description                            | id                                                          | creationtime        | version | typecode        | tenant | schemaless_attrs |
+---------------------+-------------+----------------+----------------------------------------+-------------------------------------------------------------+---------------------+---------+-----------------+--------+------------------+
| 2015-10-23 12:50:47 | RawCategory |        2.00000 | Raw representation of apparel category | single|RawItemMetadata|b2d0635e-ff46-49a7-b46a-7865960a0536 | 2015-10-23 12:50:47 |    NULL | RawItemMetadata | single | NULL             |
| 2015-10-23 12:50:47 | RawProduct  |        1.00000 | Raw representation of apparel product  | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed | 2015-10-23 12:50:47 |    NULL | RawItemMetadata | single | NULL             |
+---------------------+-------------+----------------+----------------------------------------+-------------------------------------------------------------+---------------------+---------+-----------------+--------+------------------+

RawItemMetadata XML

<rawItems>
		<item>
			<type>RawProduct</type>
			<description>Raw representation of apparel product</description>
			<attributes>

			...
 
			</attributes>
		</item>
		<item>
			<type>RawCategory</type>
			<description>Raw representation of apparel category</description>
			<attributes>
					
					...
 
			</attributes>
		</item>
	</rawItems>

RawAttributeModelDefinition

RawAttributeModelDefinitions function similarly to the CanonicalAttributeModelDefinition and describe the data fields for each raw item category as defined in the source system. This forms the basis for the composition mapping found in the CanonicalAttributeDefinition. An example of the RawAttrModDef table from a sample data set, and its related XML definition is shown in the following.

RawAttrModDef Table

+---------------------+-------------------------------------------------------------+-------------+--------------------+-------------------------------------------------------------------------+---------------------+------------+---------+-----------------------------+--------+------------------+
| modifiedtime        | rawitemmetadata                                             | localizable | attributename      | id                                                                      | creationtime        | collection | secured | typecode                    | tenant | schemaless_attrs |
+---------------------+-------------------------------------------------------------+-------------+--------------------+-------------------------------------------------------------------------+---------------------+------------+---------+-----------------------------+--------+------------------+
| 2015-10-23 12:50:47 | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed |           0 | sourceId           | single|RawAttributeModelDefinition|0c5de599-23b1-498d-8f76-51316e77b5cf | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed |           0 | size               | single|RawAttributeModelDefinition|0deb5d54-2e21-48a7-bab7-d7a0ca3b2f5d | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed |           0 | styleDescription   | single|RawAttributeModelDefinition|442a2d49-1a08-446a-90b3-cad92d43c803 | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed |           0 | SKU                | single|RawAttributeModelDefinition|4693f452-e4f6-4d0c-acba-617004aa67f3 | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed |           0 | ean                | single|RawAttributeModelDefinition|5b4966f0-57b5-4a1a-9681-861fb0c96814 | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b2d0635e-ff46-49a7-b46a-7865960a0536 |           0 | name               | single|RawAttributeModelDefinition|5f6eb5c2-fbcb-493a-b9a3-be21bb0de267 | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed |           0 | numberContentUnits | single|RawAttributeModelDefinition|89d39e4c-b467-4497-955d-33fca9e89e89 | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed |           0 | baseDescription    | single|RawAttributeModelDefinition|9ed72784-f275-4a5e-9f4e-c356cffb8a2a | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed |           0 | style              | single|RawAttributeModelDefinition|b1e15bd5-a40e-4b8a-bc4f-ddb2819e3de4 | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed |           0 | category           | single|RawAttributeModelDefinition|ba904092-3082-4e17-9108-de38bfd23fa6 | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed |           0 | manufacturerAID    | single|RawAttributeModelDefinition|c27fd6b2-4b4b-421e-b5af-9ed13951356d | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed |           0 | unit               | single|RawAttributeModelDefinition|cf5729f8-9103-4adf-a1be-b6699a159264 | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b2d0635e-ff46-49a7-b46a-7865960a0536 |           0 | parent             | single|RawAttributeModelDefinition|d30a0f74-7573-4200-ab90-5a1932e8fa03 | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b2d0635e-ff46-49a7-b46a-7865960a0536 |           0 | sourceId           | single|RawAttributeModelDefinition|db3ced09-d7a7-4c89-b04b-cc2b6f648f19 | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b8573865-0d6c-488d-87f8-59970720beed |           0 | baseName           | single|RawAttributeModelDefinition|f6761c46-90f7-4a25-98c8-16bbe3810bc9 | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
| 2015-10-23 12:50:47 | single|RawItemMetadata|b2d0635e-ff46-49a7-b46a-7865960a0536 |           0 | description        | single|RawAttributeModelDefinition|f6d9eb4e-55d7-41b8-a8bd-c15ad2bf3293 | 2015-10-23 12:50:47 |          0 |       0 | RawAttributeModelDefinition | single | NULL             |
+---------------------+-------------------------------------------------------------+-------------+--------------------+-------------------------------------------------------------------------+---------------------+------------+---------+-----------------------------+--------+------------------+

RawAttributeModelDefinition XML

...
<item>
	<type>RawProduct</type>
	<description>Raw representation of apparel product</description>
	<attributes>
		<attribute>
			<name>baseName</name>
		</attribute>
		<attribute>
			<name>baseDescription</name>
		</attribute>
		<attribute>
			<name>ean</name>
		</attribute>
		<attribute>
			<name>manufacturerAID</name>
		</attribute>
		<attribute>
			<name>unit</name>
		</attribute>
		<attribute>
			<name>numberContentUnits</name>
		</attribute>
		<attribute>
			<name>category</name>
		</attribute>
		<attribute>
			<name>style</name>
		</attribute>
		<attribute>
			<name>styleDescription</name>
		</attribute>
		<attribute>
			<name>size</name>
		</attribute>
		<attribute>
			<name>SKU</name>
		</attribute>
		<attribute>
			<name>sourceId</name>
		</attribute>
	</attributes>
</item>
...