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 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 Exception
      Calls 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, or IMatcherMultiSourceCaller
      • 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.
      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 Exception
      Calls 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, or IMatcherMultiSourceCaller
      • 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.
      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 Exception
      Calls 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, or IMatcherMultiSourceCaller
      • 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.
      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 Exception
      Calls a multi source matcher object with the provided arguments.
      Parameters:
      matcher - the matcher can be:
      • an object / instance which implements/extends IMatcherMultiSource, or IMatcherMultiSourceCaller
      • 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.
      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 Exception
      Calls a multi source matcher object with the provided arguments.
      Parameters:
      matcher - the matcher can be:
      • an object / instance which implements/extends IMatcherMultiSource, or IMatcherMultiSourceCaller
      • 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.
      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 Exception
      Calls a multi source matcher object with the provided arguments.
      Parameters:
      matcher - the matcher can be:
      • an object / instance which implements/extends IMatcherMultiSource, or IMatcherMultiSourceCaller
      • 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.
      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 Exception
      Calls a multi source matcher object with the provided arguments.
      Parameters:
      matcher - the matcher can be:
      • an object / instance which implements/extends IMatcherMultiSource, or IMatcherMultiSourceCaller
      • 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.
      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 Exception
      Calls a multi source matcher object with the provided arguments.
      Parameters:
      matcher - the matcher can be:
      • an object / instance which implements/extends IMatcherMultiSource, or IMatcherMultiSourceCaller
      • 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.
      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 Exception
      Calls a multi source matcher object with the provided arguments.
      Parameters:
      matcher - the matcher can be:
      • an object / instance which implements/extends IMatcherMultiSource, or IMatcherMultiSourceCaller
      • 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.
      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 Exception
      Runs a matcher which implements the IMatcherMultiSource interface.
      Parameters:
      matcher - the matcher object
      ontologies - this is a list of sets of objects where each sets contains different representations of the dame ontologies/ knowledge graph.
      inputAlignment - the input alignment
      parameters - the parameters
      Returns:
      alignment and parameters
      Throws:
      Exception - in case somethign goes wrong
    • getIMatcherMultiSourceMethod

      private static Method getIMatcherMultiSourceMethod(Class<?> clazz)
    • runIMatcherMultiSourceCaller

      private static AlignmentAndParameters runIMatcherMultiSourceCaller(IMatcherMultiSourceCaller matcher, List<Set<Object>> ontologies, Object inputAlignment, Object parameters) throws Exception
      Runs a matcher which implements the IMatcherMultiSourceCaller interface.
      Parameters:
      matcher - the matcher object
      ontologies - this is a list of sets of objects where each sets contains different representations of the dame ontologies/ knowledge graph.
      inputAlignment - the input alignment
      parameters - 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 Exception
      Runs a matcher which implements the IMatcherMultiSourceCaller interface.
      Parameters:
      matcher - the matcher object
      ontologies - this is a list of sets of objects where each sets contains different representations of the dame ontologies/ knowledge graph.
      inputAlignment - the input alignment
      parameters - the parameters
      Returns:
      alignment and parameters
      Throws:
      Exception - in case somethign goes wrong
    • needsTransitiveClosureForEvaluation

      public static boolean needsTransitiveClosureForEvaluation(Object matcher)