Class IsStartedByMapper
- java.lang.Object
-
- org.aksw.limes.core.measures.mapper.AMapper
-
- org.aksw.limes.core.measures.mapper.temporal.allenAlgebra.AllenAlgebraMapper
-
- org.aksw.limes.core.measures.mapper.temporal.allenAlgebra.complex.IsStartedByMapper
-
- All Implemented Interfaces:
IMapper,IAllenAlgebraMapper
public class IsStartedByMapper extends AllenAlgebraMapper
Class for Allen's temporal relation "IsStartedBy". Given two events X and Y, it implements X si Y.- Version:
- 1.0
- Author:
- Kleanthi Georgala (georgala@informatik.uni-leipzig.de)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.aksw.limes.core.measures.mapper.IMapper
IMapper.Language
-
-
Constructor Summary
Constructors Constructor Description IsStartedByMapper()Constructor of IsStartedByMapper class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AMappinggetMapping(ArrayList<TreeMap<String,Set<String>>> maps)Maps each source instance to a set of target instances that begin at the same time of the aforementioned source instance but terminate before, using the BeginBegin and EndEnd Allen relations.AMappinggetMapping(ACache source, ACache target, String sourceVar, String targetVar, String expression, double threshold)Maps each source instance to a set of target instances that begin at the same time of the aforementioned source instance but terminate earlier, using the BeginBegin and EndEnd Allen relations.doublegetMappingSizeApproximation(int sourceSize, int targetSize, double theta, IMapper.Language language)Returns the estimated mapping size of the mapping computed by the mapper.StringgetName()Returns the name of the mapper.doublegetRuntimeApproximation(int sourceSize, int targetSize, double theta, IMapper.Language language)Returns the estimated time needed to obtain the mapping computed by the mapper.-
Methods inherited from class org.aksw.limes.core.measures.mapper.temporal.allenAlgebra.AllenAlgebraMapper
difference, getRequiredAtomicRelations, intersection, union
-
Methods inherited from class org.aksw.limes.core.measures.mapper.AMapper
getUriToUriMapping, getUriToUriMapping, getValueToUriMap, setNo
-
-
-
-
Method Detail
-
getName
public String getName()
Returns the name of the mapper.- Returns:
- Mapper name as a string
-
getMapping
public AMapping getMapping(ArrayList<TreeMap<String,Set<String>>> maps)
Maps each source instance to a set of target instances that begin at the same time of the aforementioned source instance but terminate before, using the BeginBegin and EndEnd Allen relations. The mapping contains 1-to-m relations. A source event is linked to a target event if the begin date of the source event is the same as the begin date of the target event and the end date of the source instance is higher than the end date of the target event.- Parameters:
maps- , The input set of atomic mappings- Returns:
- a mapping, the resulting mapping
-
getMapping
public AMapping getMapping(ACache source, ACache target, String sourceVar, String targetVar, String expression, double threshold)
Maps each source instance to a set of target instances that begin at the same time of the aforementioned source instance but terminate earlier, using the BeginBegin and EndEnd Allen relations.- Parameters:
source- source cachetarget- target cachesourceVar- source property variabletargetVar- size property variableexpression- metric expression of link specificationthreshold- threshold of link specification- Returns:
- a mapping, the resulting mapping
-
getRuntimeApproximation
public double getRuntimeApproximation(int sourceSize, int targetSize, double theta, IMapper.Language language)Returns the estimated time needed to obtain the mapping computed by the mapper.- Parameters:
sourceSize- source sizetargetSize- target sizetheta- atomic specification thresholdlanguage- language of source and target variables- Returns:
- estimated runtime, as double
-
getMappingSizeApproximation
public double getMappingSizeApproximation(int sourceSize, int targetSize, double theta, IMapper.Language language)Returns the estimated mapping size of the mapping computed by the mapper.- Parameters:
sourceSize- source sizetargetSize- target sizetheta- atomic specification thresholdlanguage- language of source and target variables- Returns:
- estimated execution time, as double
-
-