Class SMOntologyAggAvgImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
-
- de.uni_trier.wi2.procake.similarity.base.ontology.impl.SMOntologyImpl
-
- de.uni_trier.wi2.procake.similarity.base.ontology.aggregate.impl.SMOntologyAggAvgImpl
-
- All Implemented Interfaces:
SMOntologyAggAvg,SMOntology,SimilarityMeasure
public class SMOntologyAggAvgImpl extends SMOntologyImpl implements SMOntologyAggAvg
This similarity measure calculates the similarity of to entities in an ontology. A description of the measure can be found inSMOntologyAggAvg.- Author:
- Tobias Dahlem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSMOntologyAggAvgImpl.InferredRelationInfoclassSMOntologyAggAvgImpl.RelationInfo
-
Field Summary
-
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
COMPONENT, COMPONENT_KEY, LOG_ORDER_NAME_NOT_FOUND
-
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.ontology.aggregate.SMOntologyAggAvg
NAME
-
-
Constructor Summary
Constructors Constructor Description SMOntologyAggAvgImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Similaritycompute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator)Map<String,SMOntologyAggAvgImpl.RelationInfo>getRelations()StringgetSystemName()The system name can be used to distinguish the similarity measures.voidsetInferredRelation(String relationName, String relationQuery, String relationQueryParamName, String simMeasure, double weight)voidsetRelation(String relationName, String simMeasure, double weight)-
Methods inherited from class de.uni_trier.wi2.procake.similarity.base.ontology.impl.SMOntologyImpl
checkArgumentApplicability, checkInstanceOntologyOrderPredicate, isSimilarityFor, validateNonNull, validateOntologyMatching, validateOntologyResource
-
Methods inherited from class de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
getDataClass, getName, initialize, initializeBasedOn, isAggregate, isForceOverride, isInterval, isNumeric, isObject, isReusable, isSet, isTable, isTaxonomy, isText, setDataClass, setForceOverride, setName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
getDataClass, getName, isForceOverride, isReusable, setForceOverride
-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.base.ontology.SMOntology
checkArgumentApplicability, checkInstanceOntologyOrderPredicate
-
-
-
-
Method Detail
-
compute
public Similarity compute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator)
- Specified by:
computein interfaceSimilarityMeasure- Returns:
-
setRelation
public void setRelation(String relationName, String simMeasure, double weight)
- Specified by:
setRelationin interfaceSMOntologyAggAvg- Parameters:
relationName- name of the relation to be inferredsimMeasure- similarity measure to be usedweight- weight of the relation
-
setInferredRelation
public void setInferredRelation(String relationName, String relationQuery, String relationQueryParamName, String simMeasure, double weight)
- Specified by:
setInferredRelationin interfaceSMOntologyAggAvg- 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
public Map<String,SMOntologyAggAvgImpl.RelationInfo> getRelations()
- Specified by:
getRelationsin interfaceSMOntologyAggAvg- Returns:
- map with all registered relations and corresponding weight and similarity measure
-
getSystemName
public String getSystemName()
Description copied from interface:SimilarityMeasureThe system name can be used to distinguish the similarity measures. Each similarity measure that can be instantiated contains a static final field called NAME representing the system name, e.g.,SMAggregateEuclidian.NAMEThe system name must also be given during initialization, see
SimilarityModel.createSimilarityMeasure(String, DataClass).- Specified by:
getSystemNamein interfaceSimilarityMeasure- Returns:
- The system name of the similarity measure. This is equal to SimilarityMeasure.NAME.
-
-