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
    • Method Detail

      • setRelation

        void setRelation​(String relationName,
                         String simMeasure,
                         double weight)
        Parameters:
        relationName - name of the relation to be inferred
        simMeasure - similarity measure to be used
        weight - 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 inferred
        relationQuery - SPARQL string
        relationQueryParamName - name of the parameter used in relationQuery
        simMeasure - similarity measure to be used
        weight - weight of the relation