Class OrchidMapper

  • All Implemented Interfaces:
    IMapper

    public class OrchidMapper
    extends AMapper
    Author:
    Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de)
    • Constructor Detail

      • OrchidMapper

        public OrchidMapper()
    • Method Detail

      • getPolygon

        public static Polygon getPolygon​(String wktString)
        Computes a polygon out of a WKT string
        Parameters:
        wktString - An WKT string
        Returns:
        A polygon
      • getMapping

        public AMapping getMapping​(ACache source,
                                   ACache target,
                                   String sourceVar,
                                   String targetVar,
                                   String expression,
                                   double threshold)
        Computes a mapping using the setMeasure distance
        Parameters:
        source - Source cache
        target - Target cache
        sourceVar - Variable for the source dataset
        targetVar - Variable for the target dataset
        expression - Expression to process. Leads to termination if the expression is not atomic
        threshold - Similarity threshold. Is transformed internally into a distance threshold theta with threshold = 1/(1+theta)
        Returns:
        A mapping which contains uris whose polygons are such that their distance is below the set threshold
      • getPolygons

        public Set<Polygon> getPolygons​(ACache c,
                                        String property)
        Computes polygons out of strings in the WKT format. Currently works for LINESTRING, POINT, POLYGON
        Parameters:
        c - Cache from which the data is to be fetched
        property - Property to use
        Returns:
        Set of polygons. Each polygon contains the uri to which it matches
      • getName

        public String getName()
        Description copied from interface: IMapper
        Returns the name of the mapper.
        Returns:
        Mapper name as a string
      • getRuntimeApproximation

        public double getRuntimeApproximation​(int sourceSize,
                                              int targetSize,
                                              double threshold,
                                              IMapper.Language language)
        Description copied from interface: IMapper
        Returns the estimated time needed to obtain the mapping computed by the mapper.
        Parameters:
        sourceSize - source size
        targetSize - target size
        threshold - atomic specification threshold
        language - language of source and target variables
        Returns:
        estimated runtime, as double
      • getMappingSizeApproximation

        public double getMappingSizeApproximation​(int sourceSize,
                                                  int targetSize,
                                                  double threshold,
                                                  IMapper.Language language)
        Description copied from interface: IMapper
        Returns the estimated mapping size of the mapping computed by the mapper.
        Parameters:
        sourceSize - source size
        targetSize - target size
        threshold - atomic specification threshold
        language - language of source and target variables
        Returns:
        estimated execution time, as double