Class MultiSourceDispatcherTransitivePairsTextBased
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_base.multisource.MatcherMultiSourceURL
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.multisource.dispatchers.MultiSourceDispatcherTransitivePairsTextBased
- All Implemented Interfaces:
IMatcherMultiSourceCaller
,MultiSourceDispatcher
public class MultiSourceDispatcherTransitivePairsTextBased
extends MatcherMultiSourceURL
implements MultiSourceDispatcher, IMatcherMultiSourceCaller
This dispatcher will compare the texts in a model and match the ones which are textually the clostest such that a connection between all ontologies exists.
Therefore exactly (number of models)-1 matching operations and no merges are executed.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private double
private double
private final Object
-
Constructor Summary
ConstructorDescriptionMultiSourceDispatcherTransitivePairsTextBased
(Object oneToOneMatcher) MultiSourceDispatcherTransitivePairsTextBased
(Object oneToOneMatcher, double mindf, double maxdf) -
Method Summary
Modifier and TypeMethodDescriptionMatches multiple ontologies/knowledge graphs together.Matches multiple ontologies / knowledge graphs together.boolean
Returns a boolean value if the matcher needs a transitive closure for evaluation.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
oneToOneMatcher
-
mindf
private double mindf -
maxdf
private double maxdf
-
-
Constructor Details
-
MultiSourceDispatcherTransitivePairsTextBased
-
MultiSourceDispatcherTransitivePairsTextBased
public MultiSourceDispatcherTransitivePairsTextBased(Object oneToOneMatcher, double mindf, double maxdf)
-
-
Method Details
-
match
Description copied from class:MatcherMultiSourceURL
Matches multiple ontologies/knowledge graphs together.- Specified by:
match
in classMatcherMultiSourceURL
- Parameters:
models
- the ontologies/knowledge graphs as URLsinputAlignment
- the input alignment as URL (alignment API format)parameters
- the parameters file url. Format are currently json or yaml.- Returns:
- an alignment as URL (most often as file URL) the format is again the alignment API format.
- Throws:
Exception
- in case something went wrong
-
match
public AlignmentAndParameters match(List<Set<Object>> models, Object inputAlignment, Object parameters) throws Exception Description copied from interface:IMatcherMultiSourceCaller
Matches multiple ontologies / knowledge graphs together.- Specified by:
match
in interfaceIMatcherMultiSourceCaller
- Parameters:
models
- this is a list of sets of objects where each sets contains different representations of the dame ontologies/ knowledge graph.inputAlignment
- this object represents the input alignment.parameters
- object representing additional parameters. Only add to this object and do not create a new Object likeparameters= new ...()
because otherwise the parameters are lost (java ist call by value). Sensible classes areProperties
,Map<String, Object>
or any similar data structure. Some already specified keys (strings) can be found atParameterConfigKeys
.- Returns:
- the resulting alignment of the matching process.
- Throws:
Exception
- in case of any errors
-
needsTransitiveClosureForEvaluation
public boolean needsTransitiveClosureForEvaluation()Description copied from class:MatcherMultiSourceURL
Returns a boolean value if the matcher needs a transitive closure for evaluation. E.g. some matchers match only A-B-C and the testcase asks for A-C then this is only true, if the transitive closure is computed- Specified by:
needsTransitiveClosureForEvaluation
in interfaceIMatcherMultiSourceCaller
- Overrides:
needsTransitiveClosureForEvaluation
in classMatcherMultiSourceURL
- Returns:
- true if the transitive closure is need, false otherwise
-