Interface IFilter

  • All Known Implementing Classes:
    LinearFilter

    public interface IFilter
    Implements the filter interface.
    Version:
    1.0
    Author:
    Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de), Kleanthi Georgala (georgala@informatik.uni-leipzig.de)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      AMapping filter​(AMapping map, double threshold)
      Naive filter function for mapping using a threshold as filtering criterion.
      AMapping filter​(AMapping map, String condition, double threshold, double mainThreshold, ACache source, ACache target, String sourceVar, String targetVar)
      Filter function for mapping using a condition and two thresholds as filtering criterion.
      AMapping filter​(AMapping map, String condition, double threshold, ACache source, ACache target, String sourceVar, String targetVar)
      Filter function for mapping using a condition and a threshold as filtering criterion.
      AMapping filter​(AMapping map1, AMapping map2, double coef1, double coef2, double threshold, String operation)
      Filter for linear combinations when operation is set to "add", given the expression a*sim1 + b*sim2 >= t or multiplication given the expression (a*sim1)*(b*sim2) >= t, which is not likely to be used.
      AMapping reversefilter​(AMapping map, String condition, double threshold, double mainThreshold, ACache source, ACache target, String sourceVar, String targetVar)
      Reverse filter function for mapping using a condition and two thresholds as filtering criterion.
    • Method Detail

      • filter

        AMapping filter​(AMapping map,
                        double threshold)
        Naive filter function for mapping using a threshold as filtering criterion.
        Parameters:
        map - Map bearing the results of Link Specification
        threshold - Value of threshold
        Returns:
        a filtered mapping that satisfies sim >= threshold
      • filter

        AMapping filter​(AMapping map,
                        String condition,
                        double threshold,
                        ACache source,
                        ACache target,
                        String sourceVar,
                        String targetVar)
        Filter function for mapping using a condition and a threshold as filtering criterion.
        Parameters:
        map - Map bearing the results of Link Specification
        condition - The condition for filtering
        threshold - Value of threshold
        source - Source knowledge base
        target - Target knowledge base
        sourceVar - Source property
        targetVar - Target property
        Returns:
        a filtered mapping that satisfies both the condition and the threshold
      • filter

        AMapping filter​(AMapping map,
                        String condition,
                        double threshold,
                        double mainThreshold,
                        ACache source,
                        ACache target,
                        String sourceVar,
                        String targetVar)
        Filter function for mapping using a condition and two thresholds as filtering criterion.
        Parameters:
        map - map bearing the results of Link Specification
        condition - The condition for filtering
        threshold - Value of the first threshold
        mainThreshold - Value of second threshold
        source - Source knowledge base
        target - Target knowledge base
        sourceVar - Source property
        targetVar - Target property
        Returns:
        a filtered mapping that satisfies both the condition and the thresholds
      • reversefilter

        AMapping reversefilter​(AMapping map,
                               String condition,
                               double threshold,
                               double mainThreshold,
                               ACache source,
                               ACache target,
                               String sourceVar,
                               String targetVar)
        Reverse filter function for mapping using a condition and two thresholds as filtering criterion.
        Parameters:
        map - Map bearing the results of Link Specification
        condition - The condition for filtering
        threshold - Value of the first threshold
        mainThreshold - Value of second threshold
        source - Source knowledge base
        target - Target knowledge base
        sourceVar - Source property
        targetVar - Target property
        Returns:
        a filtered mapping that satisfies both the condition and the thresholds
      • filter

        AMapping filter​(AMapping map1,
                        AMapping map2,
                        double coef1,
                        double coef2,
                        double threshold,
                        String operation)
        Filter for linear combinations when operation is set to "add", given the expression a*sim1 + b*sim2 >= t or multiplication given the expression (a*sim1)*(b*sim2) >= t, which is not likely to be used.
        Parameters:
        map1 - Map bearing the results of sim1 >= (t-b)/a for add, sim1 >= t/(a*b) for mult
        map2 - Map bearing the results of sim2 >= (t-a)/b for add, sim2 >= t/(a*b) for mult
        coef1 - Value of first coefficient
        coef2 - Value of second coefficient
        threshold - Value of threshold
        operation - Mathematical operation
        Returns:
        a filtered mapping that satisfies a*sim1 + b*sim2 >= t for add, (a*sim1)*(b*sim2) >= t for mult