Class MatcherYAAAOwlApi

All Implemented Interfaces:
IMatcher<org.semanticweb.owlapi.model.OWLOntology,​Alignment,​Properties>, eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge, eu.sealsproject.platform.res.tool.api.IPlugin, eu.sealsproject.platform.res.tool.api.IToolBridge
Direct Known Subclasses:
MatcherPipelineYAAAOwlApi

public abstract class MatcherYAAAOwlApi
extends MatcherYAAA
implements IMatcher<org.semanticweb.owlapi.model.OWLOntology,​Alignment,​Properties>
  • Field Summary

    Fields inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherFile

    FILE_PREFIX, FILE_SUFFIX
  • Constructor Summary

    Constructors
    Constructor Description
    MatcherYAAAOwlApi()  
  • Method Summary

    Modifier and Type Method Description
    Alignment match​(URL source, URL target, Alignment inputAlignment, Properties properties)
    Aligns two ontologies specified via URL, with an input alignment as Alignment object, and returns the mapping of the resulting alignment.
    abstract Alignment match​(org.semanticweb.owlapi.model.OWLOntology source, org.semanticweb.owlapi.model.OWLOntology target, Alignment inputAlignment, Properties p)
    Aligns two ontologies/knowledge graphs given as the first and second parameter.
    protected org.semanticweb.owlapi.model.OWLOntology readOntology​(URL url)
    Default implementation to load an ontology from an url with the owlapi.

    Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_owlapi.MatcherYAAA

    match

    Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherFile

    match

    Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherURL

    align, align, canExecute, getType

    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
  • Constructor Details

    • MatcherYAAAOwlApi

      public MatcherYAAAOwlApi()
  • Method Details

    • readOntology

      protected org.semanticweb.owlapi.model.OWLOntology readOntology​(URL url)
      Default implementation to load an ontology from an url with the owlapi. It can be changed by subclasses.
      Parameters:
      url - a location where an ontology can be found
      Returns:
      the loaded ontology as an OWLOntology object
    • match

      public Alignment match​(URL source, URL target, Alignment inputAlignment, Properties properties) throws Exception
      Description copied from class: MatcherYAAA
      Aligns two ontologies specified via URL, with an input alignment as Alignment object, and returns the mapping of the resulting alignment. Note: This method might be called multiple times in a row when using the evaluation framework. Make sure to return a mapping which is specific to the given inputs.
      Specified by:
      match in class MatcherYAAA
      Parameters:
      source - this url represents the source ontology
      target - this url represents the target ontology
      inputAlignment - this mapping represents the input alignment
      properties - additional properties
      Returns:
      The resulting mapping of the matching process.
      Throws:
      Exception - An exception that was risen while matching.
    • match

      public abstract Alignment match​(org.semanticweb.owlapi.model.OWLOntology source, org.semanticweb.owlapi.model.OWLOntology target, Alignment inputAlignment, Properties p) throws Exception
      Description copied from interface: IMatcher
      Aligns two ontologies/knowledge graphs given as the first and second parameter. An additional input alignment can be given as well as parameters which further define how and what to match. In case inputAlignment or parameters is not used, making them to the Object class, will required no additional transformations of these objects (no overhead).
      Specified by:
      match in interface IMatcher<org.semanticweb.owlapi.model.OWLOntology,​Alignment,​Properties>
      Parameters:
      source - this object represents the source ontology/knowledge graph
      target - this object represents the target ontology/knowledge graph
      inputAlignment - this object represents the input alignment.
      p - object representing additional parameters. Only add to this object and do not create a new Object like parameters= new ...() because otherwise the parameters are lost (java ist call by value). Sensible classes are Properties (preferred), Map<String, Object> or any similar data structure. Some already specified keys (strings) can be found at ParameterConfigKeys.
      Returns:
      the resulting alignment of the matching process.
      Throws:
      Exception - any exception which occurs during matching