Interface SMOntologyIsEquivalent

All Superinterfaces:
SimilarityMeasure, SMOntology
All Known Implementing Classes:
SMOntologyIsEquivalentImpl

public interface SMOntologyIsEquivalent extends SMOntology
Calculates the similarity between query and case based on the existence of specific relations between query and case entity in an ontology. Different Relations can be defined and the check of existence can also be done transitive. If there is a connection between the query and case entities with a defined relation the similarity is 1.0, otherwise 0 .
Author:
Tobias Dahlem
  • Field Details

  • Method Details

    • getEquivalenceRelations

      Map<String,Boolean> getEquivalenceRelations()
      Returns:
      all relations for the existence check.
    • setEquivalenceRelations

      void setEquivalenceRelations(Map<String,Boolean> r)
      Replace the set of equivalence relations.
      Parameters:
      r - the new set of the relations.
    • addEquivalenceRelation

      void addEquivalenceRelation(String r, Boolean b)
      Add a relation to set of equivalence relations.
      Parameters:
      r - the name of the relation.
      b - whether the relation should be considered transitive.
    • addEquivalenceRelations

      void addEquivalenceRelations(Map<String,Boolean> r)
      Add several relations to set of equivalence relations.
      Parameters:
      r - the set of the relations.