Validation and Rules for the Creation of Metadata and Feeds

Data Hub defines metadata using rules and then validates the metadata is sound.

Validation Rules for the Creation of Raw Attributes

Here is the scenario for the creation of raw attributes:

  1. Validate that the RawItem type is not null and not blank
  2. Validate that the Name is not null and not blank
  3. Validate that the RawAttribute does not already exist
  4. Validate that the type is a subtype of RawItem
  5. If RawAttribute is defined as secured, enable an Encryption Strategy

Rules for the Creation of Canonical Attributes

  1. The Name is not blank
  2. The ItemType is not blank
  3. The ItemType is defined in the type system

Validation Process for the Creation of Canonical Attributes

Here is a scenario for the creation of canonical attributes:

  1. Validate that the CanonicalItem type is of canonical item
  2. Validate that the canonical metadata exists and is active
  3. Validate that the CanonicalAttribute does not already exist
  4. Validate that the CanonicalAttributeDefinition does not already exist for this name and type
  5. If CanonicalAttribute is defined as secured, enable an Encryption Strategy

Rules for the Raw Section (If Specified):

  1. The CanonicalItem type exists in Data Hub type system
  2. The CanonicalItem type is a subtype of RawItem
  3. The RawAttribute must be defined as a data item attribute
  4. If there is a RawAttribute, there has to be a RawType

Validation Process for the Raw Section (If Specified):

  1. Validate that a RawAttribute of the same name exists for the RawType specified

Rules for the Foreign Key (If Specified)

  1. The ItemType is defined
  2. The canonical metadata item is defined

Validation Rules for the Creation of Target Systems

Here is the scenario for the creation of target systems:

  1. Validate that the TargetSystemName is not null and not blank
  2. Validate that the TargetSystemType is defined in the Adapter Service Registry
  3. If TargetSystem has a password, enable an Encryption Strategy

Validation Rules for the Creation of Target Items

Here is the scenario for the creation of target items:

  1. Validate the TargetSystem exists in Data Hub type system
  2. Validate the TargetItem does not already exist in this TargetSystem
  3. Validate the CanonicalItemSource exists
  4. Validate the TargetItemType s declared as dependencies exist

Validation Process for the Creation of Target Item Attributes

  1. If TargetItemAttribute is defined as secured, enable an Encryption Strategy

Validation Rules for the Creation of Feeds

Here is a scenario for the creation of feeds:

  1. Validate that the Name is not null and not blank
  2. Validate that the Name does not already exist
  3. Validate that the Pooling Strategy is not null and not blank
  4. Validate that the Pooling Strategy is defined in the Pooling Strategy Registry