monarch-initiative / owlsim-v3

Ontology Based Profile Matching
16 stars 5 forks source link

ProfileMatcher should have a isNegationAware method #61

Open julesjacobsen opened 7 years ago

julesjacobsen commented 7 years ago

This will avoid this kind of code:

    // Verify that matcher is negation aware if negated IDs are used
    if (!negatedIds.isEmpty()
        && !NegationAwareProfileMatcher.class.isAssignableFrom(matcher.getClass())) {
      throw new NonNegatedMatcherException(matcherName);
    }