Package org.aksw.limes.core.io.mapping
Class AMapping
- java.lang.Object
-
- org.aksw.limes.core.io.mapping.AMapping
-
- All Implemented Interfaces:
Serializable,IMapping
- Direct Known Subclasses:
FileMapping,HybridMapping,MemoryMapping
public abstract class AMapping extends Object implements IMapping
- Version:
- 2015-11-24
- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de), Mohamed Sherif <sherif @ informatik.uni-leipzig.de>, Tommaso Soru <tsoru @ informatik.uni-leipzig.de>, Klaus Lyko <lyko @ informatik.uni-leipzig.de>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AMapping()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidadd(String key, String value, double confidence)abstract voidadd(String key, HashMap<String,Double> hashMap)abstract booleancontains(String key, String value)booleanequals(Object obj)abstract AMappinggetBestOneToNMapping()AMappinggetBestOneToOneMappings(AMapping m)Returns the best one to one mapping with a bias towards the source Should actually be solved with Hospital residentsabstract doublegetConfidence(String key, String value)LinkSpecificationgetLinkSpecification()HashMap<String,HashMap<String,Double>>getMap()abstract intgetNumberofMappings()abstract intgetNumberofPositiveMappings()abstract AMappinggetOnlyPositiveExamples()StringgetPredicate()StringgetPredicateURI()HashMap<Double,HashMap<String,TreeSet<String>>>getReversedMap()Get the predicate URI, which defaults to OWL.sameAs.intgetSize()abstract AMappinggetSubMap(double threshold)inthashCode()abstract AMappingreverseSourceTarget()voidsetLinkSpecification(LinkSpecification linkSpecification)voidsetMap(HashMap<String,HashMap<String,Double>> map)voidsetPredicate(String mappingPredicate)voidsetSize(int size)abstract intsize()
-
-
-
Method Detail
-
size
public abstract int size()
-
reverseSourceTarget
public abstract AMapping reverseSourceTarget()
-
getNumberofMappings
public abstract int getNumberofMappings()
-
getNumberofPositiveMappings
public abstract int getNumberofPositiveMappings()
-
getOnlyPositiveExamples
public abstract AMapping getOnlyPositiveExamples()
-
getBestOneToNMapping
public abstract AMapping getBestOneToNMapping()
-
getSubMap
public abstract AMapping getSubMap(double threshold)
-
getBestOneToOneMappings
public AMapping getBestOneToOneMappings(AMapping m)
Returns the best one to one mapping with a bias towards the source Should actually be solved with Hospital residents- Parameters:
m- , the input mapping- Returns:
- the best one-to-one mapping of m
-
getReversedMap
public HashMap<Double,HashMap<String,TreeSet<String>>> getReversedMap()
Get the predicate URI, which defaults to OWL.sameAs.- Returns:
- the predicate URI
-
getPredicateURI
public String getPredicateURI()
-
getSize
public int getSize()
-
setSize
public void setSize(int size)
-
getPredicate
public String getPredicate()
-
setPredicate
public void setPredicate(String mappingPredicate)
-
getLinkSpecification
public LinkSpecification getLinkSpecification()
-
setLinkSpecification
public void setLinkSpecification(LinkSpecification linkSpecification)
-
-