Class AllenAlgebraMapper
- java.lang.Object
-
- org.aksw.limes.core.measures.mapper.AMapper
-
- org.aksw.limes.core.measures.mapper.temporal.allenAlgebra.AllenAlgebraMapper
-
- All Implemented Interfaces:
IMapper,IAllenAlgebraMapper
- Direct Known Subclasses:
AfterMapper,BeforeMapper,DuringMapper,DuringReverseMapper,EqualsMapper,FinishesMapper,IsFinishedByMapper,IsMetByMapper,IsOverlappedByMapper,IsStartedByMapper,MeetsMapper,OverlapsMapper,StartsMapper
public abstract class AllenAlgebraMapper extends AMapper implements IAllenAlgebraMapper
Abstract class of Allen's temporal relations mapper. It computes basic functions between uris. For more information about Allen's Algebra @see https://en.wikipedia.org/wiki/Allen's_interval_algebra- 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 AllenAlgebraMapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Set<String>difference(Set<String> set1, Set<String> set2)Performs difference between two sets of uris.ArrayList<Integer>getRequiredAtomicRelations()Returns the set of atomic relations.protected static Set<String>intersection(Set<String> set1, Set<String> set2)Performs intersection between two sets of uris.protected static Set<String>union(Set<String> set1, Set<String> set2)Performs union between two sets of uris.-
Methods inherited from class org.aksw.limes.core.measures.mapper.AMapper
getUriToUriMapping, getUriToUriMapping, getValueToUriMap, setNo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.aksw.limes.core.measures.mapper.temporal.allenAlgebra.IAllenAlgebraMapper
getMapping
-
Methods inherited from interface org.aksw.limes.core.measures.mapper.IMapper
getMapping, getMappingSizeApproximation, getName, getRuntimeApproximation, setNo
-
-
-
-
Method Detail
-
union
protected static Set<String> union(Set<String> set1, Set<String> set2)
Performs union between two sets of uris.- Parameters:
set1- , first set of urisset2- , second set of uris- Returns:
- the union of set1 and set2
-
intersection
protected static Set<String> intersection(Set<String> set1, Set<String> set2)
Performs intersection between two sets of uris.- Parameters:
set1- , first set of urisset2- , second set of uris- Returns:
- the intersection of set1 and set2
-
difference
protected static Set<String> difference(Set<String> set1, Set<String> set2)
Performs difference between two sets of uris.- Parameters:
set1- , first set of urisset2- , second set of uris- Returns:
- the difference of set1 and set2
-
-