Class GenericMatcherMultiSourceCaller
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_base.typetransformer.GenericMatcherMultiSourceCaller
public class GenericMatcherMultiSourceCaller extends Object
This matcher caller expects some matcher object and all other paramters as objects as well
and call it with apropiate type transformers such that the call can actually happen.
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description GenericMatcherMultiSourceCaller()
-
Method Summary
Modifier and Type Method Description private static Method
getIMatcherMultiSourceMethod(Class<?> clazz)
static boolean
needsTransitiveClosureForEvaluation(Object matcher)
private static AlignmentAndParameters
runIMatcherMultiSource(IMatcherMultiSource matcher, List<Set<Object>> ontologies, Object inputAlignment, Object parameters)
Runs a matcher which implements theIMatcherMultiSource
interface.private static AlignmentAndParameters
runIMatcherMultiSourceCaller(IMatcherMultiSourceCaller matcher, List<Set<Object>> ontologies, Object inputAlignment, Object parameters)
Runs a matcher which implements theIMatcherMultiSourceCaller
interface.static AlignmentAndParameters
runMatcherMultiSource(Object matcher, List<Object> ontologies)
Calls a multi source matcher object with the provided arguments.static AlignmentAndParameters
runMatcherMultiSource(Object matcher, List<Object> ontologies, Object inputAlignment)
Calls a multi source matcher object with the provided arguments.static AlignmentAndParameters
runMatcherMultiSource(Object matcher, List<Object> ontologies, Object inputAlignment, Object parameters)
Calls a multi source matcher object with the provided arguments.static AlignmentAndParameters
runMatcherMultiSourceMultipleRepresentations(Object matcher, List<Set<Object>> ontologies)
Calls a multi source matcher object with the provided arguments.static AlignmentAndParameters
runMatcherMultiSourceMultipleRepresentations(Object matcher, List<Set<Object>> ontologies, Object inputAlignment)
Calls a multi source matcher object with the provided arguments.static AlignmentAndParameters
runMatcherMultiSourceMultipleRepresentations(Object matcher, List<Set<Object>> ontologies, Object inputAlignment, Object parameters)
Calls a multi source matcher object with the provided arguments.static <T> AlignmentAndParameters
runMatcherMultiSourceSpecificType(Object matcher, List<T> ontologies)
Calls a multi source matcher object with the provided arguments.The type of ontologies must be same same for all ontologies e.g.static <T> AlignmentAndParameters
runMatcherMultiSourceSpecificType(Object matcher, List<T> ontologies, Object inputAlignment)
Calls a multi source matcher object with the provided arguments.static <T> AlignmentAndParameters
runMatcherMultiSourceSpecificType(Object matcher, List<T> ontologies, Object inputAlignment, Object parameters)
Calls a multi source matcher object with the provided arguments.private static AlignmentAndParameters
runMatcherMultiSourceURL(MatcherMultiSourceURL matcher, List<Set<Object>> ontologies, Object inputAlignment, Object parameters)
Runs a matcher which implements theIMatcherMultiSourceCaller
interface.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
GenericMatcherMultiSourceCaller
public GenericMatcherMultiSourceCaller()
-
-
Method Details
-
runMatcherMultiSourceSpecificType
public static <T> AlignmentAndParameters runMatcherMultiSourceSpecificType(Object matcher, List<T> ontologies) throws ExceptionCalls a multi source matcher object with the provided arguments.The type of ontologies must be same same for all ontologies e.g. all URLs.- Type Parameters:
T
- the type of the ontologies ( have to be the same for all ontologies)- Parameters:
matcher
- the matcher can be:- an object / instance which implements/extends
IMatcherMultiSource
, orIMatcherMultiSourceCaller
- a class object: a class which implements one of the above interfaces/classes - a new instance of this class will be created.
- a string: the fully qualified name of a class which implements one of the above interfaces/classes like de.uni_mannheim.informatik.dws.melt.matching_base.MyMatcher - a new instance of this class will be created.
- an object / instance which implements/extends
ontologies
- a list of objects which represents the different ontologies/ knowledge graphs to be aligned.- Returns:
- the object which is returned by the matcher. This can be any arbitrary object, but you can call the TypeTransformerRegistry to get the representation you want.
- Throws:
Exception
- in case something goes wrong
-
runMatcherMultiSourceSpecificType
public static <T> AlignmentAndParameters runMatcherMultiSourceSpecificType(Object matcher, List<T> ontologies, Object inputAlignment) throws ExceptionCalls a multi source matcher object with the provided arguments. The type of ontologies must be same same for all ontologies e.g. all URLs.- Type Parameters:
T
- the type of the ontologies ( have to be the same for all ontologies)- Parameters:
matcher
- the matcher can be:- an object / instance which implements/extends
IMatcherMultiSource
, orIMatcherMultiSourceCaller
- a class object: a class which implements one of the above interfaces/classes - a new instance of this class will be created.
- a string: the fully qualified name of a class which implements one of the above interfaces/classes like de.uni_mannheim.informatik.dws.melt.matching_base.MyMatcher - a new instance of this class will be created.
- an object / instance which implements/extends
ontologies
- a list of objects which represents the different ontologies/ knowledge graphs to be aligned.inputAlignment
- the object which represents an input alignment. Can be null.- Returns:
- the object which is returned by the matcher. This can be any arbitrary object, but you can call the TypeTransformerRegistry to get the representation you want.
- Throws:
Exception
- in case something goes wrong
-
runMatcherMultiSourceSpecificType
public static <T> AlignmentAndParameters runMatcherMultiSourceSpecificType(Object matcher, List<T> ontologies, Object inputAlignment, Object parameters) throws ExceptionCalls a multi source matcher object with the provided arguments. The type of ontologies must be same same for all ontologies e.g. all URLs.- Type Parameters:
T
- the type of the ontologies ( have to be the same for all ontologies)- Parameters:
matcher
- the matcher can be:- an object / instance which implements/extends
IMatcherMultiSource
, orIMatcherMultiSourceCaller
- a class object: a class which implements one of the above interfaces/classes - a new instance of this class will be created.
- a string: the fully qualified name of a class which implements one of the above interfaces/classes like de.uni_mannheim.informatik.dws.melt.matching_base.MyMatcher - a new instance of this class will be created.
- an object / instance which implements/extends
ontologies
- a list of objects which represents the different ontologies/ knowledge graphs to be aligned.inputAlignment
- the object which represents an input alignment. Can be null.parameters
- an objetc which represents parameters. Can be null.- Returns:
- the object which is returned by the matcher. This can be any arbitrary object, but you can call the TypeTransformerRegistry to get the representation you want.
- Throws:
Exception
- in case something goes wrong
-
runMatcherMultiSource
public static AlignmentAndParameters runMatcherMultiSource(Object matcher, List<Object> ontologies) throws ExceptionCalls a multi source matcher object with the provided arguments.- Parameters:
matcher
- the matcher can be:- an object / instance which implements/extends
IMatcherMultiSource
, orIMatcherMultiSourceCaller
- a class object: a class which implements one of the above interfaces/classes - a new instance of this class will be created.
- a string: the fully qualified name of a class which implements one of the above interfaces/classes like de.uni_mannheim.informatik.dws.melt.matching_base.MyMatcher - a new instance of this class will be created.
- an object / instance which implements/extends
ontologies
- a list of objects which represents the different ontologies/ knowledge graphs to be aligned.- Returns:
- the object which is returned by the matcher. This can be any arbitrary object, but you can call the TypeTransformerRegistry to get the representation you want.
- Throws:
Exception
- in case something goes wrong
-
runMatcherMultiSource
public static AlignmentAndParameters runMatcherMultiSource(Object matcher, List<Object> ontologies, Object inputAlignment) throws ExceptionCalls a multi source matcher object with the provided arguments.- Parameters:
matcher
- the matcher can be:- an object / instance which implements/extends
IMatcherMultiSource
, orIMatcherMultiSourceCaller
- a class object: a class which implements one of the above interfaces/classes - a new instance of this class will be created.
- a string: the fully qualified name of a class which implements one of the above interfaces/classes like de.uni_mannheim.informatik.dws.melt.matching_base.MyMatcher - a new instance of this class will be created.
- an object / instance which implements/extends
ontologies
- a list of objects which represents the different ontologies/ knowledge graphs to be aligned.inputAlignment
- the object which represents an input alignment. Can be null.- Returns:
- the object which is returned by the matcher. This can be any arbitrary object, but you can call the TypeTransformerRegistry to get the representation you want.
- Throws:
Exception
- in case something goes wrong
-
runMatcherMultiSource
public static AlignmentAndParameters runMatcherMultiSource(Object matcher, List<Object> ontologies, Object inputAlignment, Object parameters) throws ExceptionCalls a multi source matcher object with the provided arguments.- Parameters:
matcher
- the matcher can be:- an object / instance which implements/extends
IMatcherMultiSource
, orIMatcherMultiSourceCaller
- a class object: a class which implements one of the above interfaces/classes - a new instance of this class will be created.
- a string: the fully qualified name of a class which implements one of the above interfaces/classes like de.uni_mannheim.informatik.dws.melt.matching_base.MyMatcher - a new instance of this class will be created.
- an object / instance which implements/extends
ontologies
- a list of objects which represents the different ontologies/ knowledge graphs to be aligned.inputAlignment
- the object which represents an input alignment. Can be null.parameters
- an objetc which represents parameters. Can be null.- Returns:
- the object which is returned by the matcher. This can be any arbitrary object, but you can call the TypeTransformerRegistry to get the representation you want.
- Throws:
Exception
- in case something goes wrong
-
runMatcherMultiSourceMultipleRepresentations
public static AlignmentAndParameters runMatcherMultiSourceMultipleRepresentations(Object matcher, List<Set<Object>> ontologies) throws ExceptionCalls a multi source matcher object with the provided arguments.- Parameters:
matcher
- the matcher can be:- an object / instance which implements/extends
IMatcherMultiSource
, orIMatcherMultiSourceCaller
- a class object: a class which implements one of the above interfaces/classes - a new instance of this class will be created.
- a string: the fully qualified name of a class which implements one of the above interfaces/classes like de.uni_mannheim.informatik.dws.melt.matching_base.MyMatcher - a new instance of this class will be created.
- an object / instance which implements/extends
ontologies
- this is a list of sets of objects where each sets contains different representations of the dame ontologies/ knowledge graph.- Returns:
- the object which is returned by the matcher. This can be any arbitrary object, but you can call the TypeTransformerRegistry to get the representation you want.
- Throws:
Exception
- in case something goes wrong
-
runMatcherMultiSourceMultipleRepresentations
public static AlignmentAndParameters runMatcherMultiSourceMultipleRepresentations(Object matcher, List<Set<Object>> ontologies, Object inputAlignment) throws ExceptionCalls a multi source matcher object with the provided arguments.- Parameters:
matcher
- the matcher can be:- an object / instance which implements/extends
IMatcherMultiSource
, orIMatcherMultiSourceCaller
- a class object: a class which implements one of the above interfaces/classes - a new instance of this class will be created.
- a string: the fully qualified name of a class which implements one of the above interfaces/classes like de.uni_mannheim.informatik.dws.melt.matching_base.MyMatcher - a new instance of this class will be created.
- an object / instance which implements/extends
ontologies
- this is a list of sets of objects where each sets contains different representations of the dame ontologies/ knowledge graph.inputAlignment
- the object which represents an input alignment. Can be null.- Returns:
- the object which is returned by the matcher. This can be any arbitrary object, but you can call the TypeTransformerRegistry to get the representation you want.
- Throws:
Exception
- in case something goes wrong
-
runMatcherMultiSourceMultipleRepresentations
public static AlignmentAndParameters runMatcherMultiSourceMultipleRepresentations(Object matcher, List<Set<Object>> ontologies, Object inputAlignment, Object parameters) throws ExceptionCalls a multi source matcher object with the provided arguments.- Parameters:
matcher
- the matcher can be:- an object / instance which implements/extends
IMatcherMultiSource
, orIMatcherMultiSourceCaller
- a class object: a class which implements one of the above interfaces/classes - a new instance of this class will be created.
- a string: the fully qualified name of a class which implements one of the above interfaces/classes like de.uni_mannheim.informatik.dws.melt.matching_base.MyMatcher - a new instance of this class will be created.
- an object / instance which implements/extends
ontologies
- this is a list of sets of objects where each sets contains different representations of the dame ontologies/ knowledge graph.inputAlignment
- the object which represents an input alignment. Can be null.parameters
- an objetc which represents parameters. Can be null.- Returns:
- the object which is returned by the matcher. This can be any arbitrary object, but you can call the TypeTransformerRegistry to get the representation you want.
- Throws:
Exception
- in case something goes wrong
-
runIMatcherMultiSource
private static AlignmentAndParameters runIMatcherMultiSource(IMatcherMultiSource matcher, List<Set<Object>> ontologies, Object inputAlignment, Object parameters) throws ExceptionRuns a matcher which implements theIMatcherMultiSource
interface.- Parameters:
matcher
- the matcher objectontologies
- this is a list of sets of objects where each sets contains different representations of the dame ontologies/ knowledge graph.inputAlignment
- the input alignmentparameters
- the parameters- Returns:
- alignment and parameters
- Throws:
Exception
- in case somethign goes wrong
-
getIMatcherMultiSourceMethod
-
runIMatcherMultiSourceCaller
private static AlignmentAndParameters runIMatcherMultiSourceCaller(IMatcherMultiSourceCaller matcher, List<Set<Object>> ontologies, Object inputAlignment, Object parameters) throws ExceptionRuns a matcher which implements theIMatcherMultiSourceCaller
interface.- Parameters:
matcher
- the matcher objectontologies
- this is a list of sets of objects where each sets contains different representations of the dame ontologies/ knowledge graph.inputAlignment
- the input alignmentparameters
- the parameters- Returns:
- alignment and parameters
- Throws:
Exception
- in case somethign goes wrong
-
runMatcherMultiSourceURL
private static AlignmentAndParameters runMatcherMultiSourceURL(MatcherMultiSourceURL matcher, List<Set<Object>> ontologies, Object inputAlignment, Object parameters) throws ExceptionRuns a matcher which implements theIMatcherMultiSourceCaller
interface.- Parameters:
matcher
- the matcher objectontologies
- this is a list of sets of objects where each sets contains different representations of the dame ontologies/ knowledge graph.inputAlignment
- the input alignmentparameters
- the parameters- Returns:
- alignment and parameters
- Throws:
Exception
- in case somethign goes wrong
-
needsTransitiveClosureForEvaluation
-