public class ALDecider extends Object
Class to get the most controversy matches out of n Mappings. The
most controversy matches are those contained in close to n/2 Mappings
and vice versa.
This functionality is required by the Active Learning approach of the
genetics package.
NOTE: Functionality requires de.uni_leipzig.simba.data.Triple.class to implement the
Comparable interface and overrides hashCode() function such that a
Triple t1 is considered to equals another Triple t2 iff both source and
target URIs are equal.
| Modifier and Type | Class and Description |
|---|---|
class |
ALDecider.Triple |
| Constructor and Description |
|---|
ALDecider() |
| Modifier and Type | Method and Description |
|---|---|
List<ALDecider.Triple> |
getControversyCandidates(List<AMapping> mapList) |
List<ALDecider.Triple> |
getControversyCandidates(List<AMapping> mapList,
int n)
Function to get the n most controversy matching candidates of the given mappings.
|
HashMap<ALDecider.Triple,Integer> |
getControversyMatches(List<AMapping> mapList)
Method returns the controversy matches of the given
Mapping. |
static void |
main(String[] args) |
void |
setKnown(AMapping m)
To set already retrieved instances.
|
public static void main(String[] args)
public HashMap<ALDecider.Triple,Integer> getControversyMatches(List<AMapping> mapList)
Mapping. This is just a
HashMap, whereas the keys are the Triples and the values the number of
Mappings holding this Triple.mapList - A List of all Mappings to process.HashMap a map of Triples (matches) and the number of Mappings holding them.public List<ALDecider.Triple> getControversyCandidates(List<AMapping> mapList, int n)
mapList - List of Mappings.n - Controls how many candidates should be retrieved.public List<ALDecider.Triple> getControversyCandidates(List<AMapping> mapList)
mapList - public void setKnown(AMapping m)
m - Mapping of already asked URIs of source and target.Copyright © 2020. All rights reserved.