Interface SMOntologyAggAvg
-
- All Superinterfaces:
SimilarityMeasure,SMOntology
- All Known Implementing Classes:
SMOntologyAggAvgImpl
public interface SMOntologyAggAvg extends SMOntology
Calculates the similarity between query and case based on the local similarities of the connected objects of the query and case entities via specific relations in an ontology. The local similarity calculations can be defined by the name of the relation, a similarity measure to be used and a weight for the weighted average.- Author:
- Tobias Dahlem
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME-
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 Map<String,SMOntologyAggAvgImpl.RelationInfo>getRelations()voidsetInferredRelation(String relationName, String relationQuery, String relationQueryParamName, String simMeasure, double weight)voidsetRelation(String relationName, String simMeasure, double weight)-
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
-
setRelation
void setRelation(String relationName, String simMeasure, double weight)
- Parameters:
relationName- name of the relation to be inferredsimMeasure- similarity measure to be usedweight- weight of the relation
-
setInferredRelation
void setInferredRelation(String relationName, String relationQuery, String relationQueryParamName, String simMeasure, double weight)
- Parameters:
relationName- name of the relation to be inferredrelationQuery- SPARQL stringrelationQueryParamName- name of the parameter used in relationQuerysimMeasure- similarity measure to be usedweight- weight of the relation
-
getRelations
Map<String,SMOntologyAggAvgImpl.RelationInfo> getRelations()
- Returns:
- map with all registered relations and corresponding weight and similarity measure
-
-