java.lang.Object
eu.sealsproject.platform.res.tool.impl.AbstractPlugin
de.uni_mannheim.informatik.dws.melt.matching_base.MatcherURL
All Implemented Interfaces:
eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge, eu.sealsproject.platform.res.tool.api.IPlugin, eu.sealsproject.platform.res.tool.api.IToolBridge
Direct Known Subclasses:
AlcomoFilter, MatcherCLI, MatcherCombination, MatcherDockerFile, MatcherFile, MatcherHTTPCall, SealsWrapper

public abstract class MatcherURL
extends eu.sealsproject.platform.res.tool.impl.AbstractPlugin
implements eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge
RawMatcher which implements the minimal interface for being executed under the SEALS platform. The only method which should be implemented is the align(URL, URL, URL) method.
Author:
Sven Hertling
  • Field Summary

    Fields
    Modifier and Type Field Description
    private static org.slf4j.Logger LOGGER  
  • Constructor Summary

    Constructors
    Constructor Description
    MatcherURL()  
  • Method Summary

    Modifier and Type Method Description
    URL align​(URL source, URL target)
    Aligns two ontologies specified via their URL and returns the URL of the resulting alignment, which should be stored locally.
    URL align​(URL source, URL target, URL inputAlignment)
    Aligns two ontologies specified via their URL, with an input alignment specified by its URL, and returns the URL of the resulting alignment, which should be stored locally.
    boolean canExecute()
    In our case the DemoMatcher can be executed on the fly.
    eu.sealsproject.platform.res.tool.api.ToolType getType()
    This tool is an ontology matching tool.
    abstract URL match​(URL source, URL target, URL inputAlignment)
    Match two ontologies / knowledge graphs together and returns an alignment.

    Methods inherited from class eu.sealsproject.platform.res.tool.impl.AbstractPlugin

    getId, getVersion, setId, setVersion

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface eu.sealsproject.platform.res.tool.api.IPlugin

    getId, getVersion
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • Constructor Details

    • MatcherURL

      public MatcherURL()
  • Method Details

    • align

      public URL align​(URL source, URL target) throws eu.sealsproject.platform.res.tool.api.ToolBridgeException
      Aligns two ontologies specified via their URL and returns the URL of the resulting alignment, which should be stored locally.
      Specified by:
      align in interface eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge
      Parameters:
      source - this url represents the source ontology
      target - this url represents the target ontology
      Returns:
      a url which points to the resulting alignment, which should be stored locally
      Throws:
      eu.sealsproject.platform.res.tool.api.ToolBridgeException
    • align

      public URL align​(URL source, URL target, URL inputAlignment) throws eu.sealsproject.platform.res.tool.api.ToolBridgeException
      Aligns two ontologies specified via their URL, with an input alignment specified by its URL, and returns the URL of the resulting alignment, which should be stored locally.
      Specified by:
      align in interface eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge
      Parameters:
      source - this url represents the source ontology
      target - this url represents the target ontology
      inputAlignment - this url represents the input alignment
      Returns:
      a url which points to the resulting alignment, which should be stored locally in the alignment format http://alignapi.gforge.inria.fr/format.html
      Throws:
      eu.sealsproject.platform.res.tool.api.ToolBridgeException
    • match

      public abstract URL match​(URL source, URL target, URL inputAlignment) throws Exception
      Match two ontologies / knowledge graphs together and returns an alignment.
      Parameters:
      source - The source ontology / knowledge graph
      target - The target ontology / knowledge graph
      inputAlignment - The input alignment as URL (alignment API format)
      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.
    • canExecute

      public boolean canExecute()
      In our case the DemoMatcher can be executed on the fly. In case prerequisites are required it can be checked here.
      Specified by:
      canExecute in interface eu.sealsproject.platform.res.tool.api.IToolBridge
      Returns:
      Value which represents the boolean value if the matcher can be executed.
    • getType

      public eu.sealsproject.platform.res.tool.api.ToolType getType()
      This tool is an ontology matching tool. SEALS supports the evaluation of different tool types like e.g., reasoner and storage systems.
      Specified by:
      getType in interface eu.sealsproject.platform.res.tool.api.IToolBridge
      Returns:
      The type of system - in this case OntologyMatchingTool.