TaxonomicUnitMatcher
Source: TaxonomicUnitMatcher.js:16
The TaxonomicUnitMatcher matches pairs of taxonomic units and provides a consistent report on:
- Which taxonomic units have matched, and
- Why the match occurred.
In Model 2.0, we start by using direct matching in OWL, so this should no longer be needed. However, I'll leave this around to provide matching in the Curation Tool UI and in case it's needed again later.
Constructor
new TaxonomicUnitMatcher(tunit1, tunit2): TaxonomicUnitMatcherCreate a Taxonomic Unit Matcher to match two taxonomic units. Matching will occur immediately, so when this method returns, you can check tuMatch.matched and tuMatch.matchReason to determine if the two TUs matched and why.
Instance Methods
asJSONLD()
Return this TUMatch as a JSON object for insertion into the PHYX file.
match()
Try to match the two taxonomic units using a number of matching methods.
matchByNameComplete()
Try to match by nameComplete, and return true if it could be matched.
matchByExternalReferences()
Match by external references.
matchByOccurrenceID()
Match by occurrence ID