Mapping rules determine how to map the metadata in the metadata source files to model components, like classes, class attributes, associations, and lineage associations. You can group mapping rules into a mapping rule set. You create mapping rules and mapping rule sets in a load template.
You can create the following types of mapping rules:
Class Rules
You can create a rule for a class of objects. Each class rule maps class attributes to object properties in the metadata source files. In each class rule, you can also create associations and lineage associations between the class and other classes.
Property Rules
You can create a rule for a class attribute. Create the property rule to map a class attribute to the object property.
Association Rules
You can create a rule for an association. In the rule, you specify the "from" and "to" objects in the association. Associations identify relationships between parent and child objects. For example, a database table is the parent object of a column in a database table.
Lineage Association Rules
You can create a rule for a lineage association. In the rule, you specify the "from" and "to" objects in the lineage association. Lineage associations identify data lineage between two classes of objects within the same custom resource. You can create multiple lineage associations for a class. To create lineage between two objects in different resources, use rule-based links.
You can apply a condition to each mapping rule to filter rows from the metadata source file that do not apply. You specify an expression in the condition. When you run the custom XConnect, Metadata Manager evaluates the expression for every row in the metadata source file.
You can group mapping rules into mapping rule sets in the load template. You apply mapping rules and mapping rule sets to a custom resource when you create the resource. You can apply the same mapping rule or mapping rule set to one or more metadata source files.
You can reuse the mapping rules and mapping rule sets for other custom metadata resources of the same resource type. Because mapping rules are specific to a model, you can only apply them to resources of the same resource type.