Class AMapper
- java.lang.Object
-
- org.aksw.limes.core.measures.mapper.AMapper
-
- All Implemented Interfaces:
IMapper
- Direct Known Subclasses:
AllenAlgebraMapper,Caverphone1Mapper,Caverphone2Mapper,ContainsMapper,CoveredbyMapper,CoversMapper,CrossesMapper,DaitchMokotoffMapper,DisjointMapper,DoubleMetaphoneMapper,DoubleMetaPhoneMapper,EdgeCountingSemanticMapper,EDJoinMapper,EqualsMapper,ExactMatchMapper,FastNGramMapper,HR3Mapper,IntersectsMapper,JaroMapper,JaroWinklerMapper,KoelnPhoneticMapper,KoelnPhoneticMapper,MatchRatingMapper,MetaPhoneMapper,MongeElkanMapper,NysiisMapper,OrchidMapper,OverlapsMapper,PPJoinPlusPlus,RatcliffObershelpMapper,RefinedSoundexMapper,SetJaccardMapper,SimpleTemporalMapper,SoundexMapper,SymmetricHausdorffMapper,TouchesMapper,WithinMapper
public abstract class AMapper extends Object implements IMapper
Implements the mapper abstract class.- Version:
- 1.0
- Author:
- Axel-C. Ngonga Ngomo <ngonga @ 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 AMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AMappinggetUriToUriMapping(Map<String,Map<String,Double>> valueMap, Map<String,Set<String>> sourceValueToUriMap, Map<String,Set<String>> targetValueToUriMap)protected AMappinggetUriToUriMapping(Map<String,Map<String,Double>> valueMap, Map<String,Set<String>> sourceValueToUriMap, Map<String,Set<String>> targetValueToUriMap, boolean swapped)Helper method, re-factored from common return code blocks.protected Map<String,Set<String>>getValueToUriMap(ACache cache, String property)Helper method, re-factored from common setup code of Mappers.voidsetNo(int no)-
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.IMapper
getMapping, getMappingSizeApproximation, getName, getRuntimeApproximation
-
-
-
-
Method Detail
-
getValueToUriMap
protected Map<String,Set<String>> getValueToUriMap(ACache cache, String property)
Helper method, re-factored from common setup code of Mappers.- Parameters:
cache- , Input cacheproperty- , Input linking property- Returns:
- reversed Map from literal values to resource uris for a specified property
-
getUriToUriMapping
protected AMapping getUriToUriMapping(Map<String,Map<String,Double>> valueMap, Map<String,Set<String>> sourceValueToUriMap, Map<String,Set<String>> targetValueToUriMap, boolean swapped)
Helper method, re-factored from common return code blocks.- Parameters:
valueMap- Mapping from values to values with similarity scoresourceValueToUriMap- ValueToUriMap constructed from a source cachetargetValueToUriMap- ValueToUriMap constructed from a target cacheswapped- True if source and target have been swapped in the valueMap- Returns:
- Mapping from source resource uri to target resource uri
-
getUriToUriMapping
protected AMapping getUriToUriMapping(Map<String,Map<String,Double>> valueMap, Map<String,Set<String>> sourceValueToUriMap, Map<String,Set<String>> targetValueToUriMap)
-
-