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 Summary
Fields Modifier and Type Field Description static String
NAME
-
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
COMPONENT, COMPONENT_KEY, LOG_ORDER_NAME_NOT_FOUND
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addEquivalenceRelation(String r, Boolean b)
Add a relation to set of equivalence relations.void
addEquivalenceRelations(Map<String,Boolean> r)
Add several relations to set of equivalence relations.Map<String,Boolean>
getEquivalenceRelations()
void
setEquivalenceRelations(Map<String,Boolean> r)
Replace the set of equivalence relations.-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
compute, getDataClass, getName, getSystemName, isForceOverride, isReusable, setForceOverride
-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.base.ontology.SMOntology
checkArgumentApplicability, checkInstanceOntologyOrderPredicate
-
-
-
-
Field Detail
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
-