Wiki

Clone wiki

OYSTER / Term_Tag

#!xml

<Term Item="name" DataPrep="code" Similarity="code" CompareTo="list"/>

The Term tag has up to four attributes. * Item - (REQUIRED)Assigned value must correspond to the value of one of the Item attributes defined in the Attributes section. * DataPrep -(OPTIONAL) Oyster function used to transform the Item values before comparison is made by the Similarity function. * See Appendix A for complete list of Oyster functions available for DataPrep. These functions are designated as DataPrep functions in Appendix A.

  • Similarity (REQUIRED)- Oyster function used to determine the similarity between the Item values. In previous versions of Oyster this attribute was named "MatchCode". You can still use MatchCode, but Similarity is now the preferred attribute name.

    • See Appendix A for complete list of Oyster functions available for Similarity. These functions are designated as Similarity functions in Appendix A.
  • CompareTo - (OPTIONAL) When the <Term> element contains the CompareTo attribute, the <Term> will define a cross-attribute comparison (see section "2.12 Cross-Attribute Compare (CAC)" for a full example)

    • Valid values consist of either be a single OYSTER attribute identifier defined in the same Attributes script defining the <Term> element or a list of valid OYSTER attribute identifiers separated with a semi-colon (;)
      • e.g. CompareTo="Item_A; Item_B; Item_C".
    • The combined list of OYSTER attribute identifiers defined by both the Item and the CompareTo attributes must all be distinct (not repeated).

Multiple Term tags are used to build a single matching rule. The <Term> element of an identity rule must enclose only one of the following combinations of attributes

    1.Item and MatchResult
    2.Item, MatchResult, CompareTo

OYSTERs default matching algorithm supports the above matching codes but this can be extended by the user by extending the base class OysterComparator.java as a new class with a name starting with "OysterCompare" and implementing the method String: getMatchCode(String, String).

Back to OYSTER Reference Guide page

Click Prev Rule Tag page

Click Next Indices Tag page

Updated