java.lang.Object
eu.sealsproject.platform.res.tool.impl.AbstractPlugin
de.uni_mannheim.informatik.dws.melt.matching_base.MatcherURL
de.uni_mannheim.informatik.dws.melt.matching_owlapi_matchers.AlcomoFilter
All Implemented Interfaces:
Filter, eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge, eu.sealsproject.platform.res.tool.api.IPlugin, eu.sealsproject.platform.res.tool.api.IToolBridge

public class AlcomoFilter extends MatcherURL implements Filter
Filter which makes and alignment coherent. When using this component, please cite: Christian Meilicke. Alignment Incoherence in Ontology Matching. University Mannheim 2011. This filter wraps the original implementation.
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • isOneToOneAlignment

      private boolean isOneToOneAlignment
      True if a one-to-one alignment is required. Access only through getter/setter.
    • IS_ONE_TO_ONE_ALIGNMENT_DEFAULT_VALUE

      private static final boolean IS_ONE_TO_ONE_ALIGNMENT_DEFAULT_VALUE
      See Also:
    • extractionProblem

      private de.uni_mannheim.informatik.dws.alcomo.ExtractionProblem extractionProblem
    • reasoner

      private de.uni_mannheim.informatik.dws.alcomo.Settings.BlackBoxReasoner reasoner
      The reasoner that is to be used. Access only through getter/setter.
    • DEFAULT_REASONER

      private static final de.uni_mannheim.informatik.dws.alcomo.Settings.BlackBoxReasoner DEFAULT_REASONER
  • Constructor Details

    • AlcomoFilter

      public AlcomoFilter()
      Constructor. Will set default values.
  • Method Details

    • match

      public URL match(URL source, URL target, URL inputAlignment) throws Exception
      Description copied from class: MatcherURL
      Match two ontologies / knowledge graphs together and returns an alignment.
      Specified by:
      match in class MatcherURL
      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.
    • match

      public Alignment match(org.semanticweb.owlapi.model.OWLOntology source, org.semanticweb.owlapi.model.OWLOntology target, Alignment inputAlignment, Properties p) throws Exception
      OwlAPI implementation.
      Parameters:
      source - Source ontology.
      target - Target ontology.
      inputAlignment - Input alignment (required for this filter).
      p - Parameters (ignored by this filter).
      Returns:
      Filtered Alignment.
      Throws:
      Exception - May be thrown in the case of error.
    • alcomoAlignmentToYaaaAlignment

      public static Alignment alcomoAlignmentToYaaaAlignment(de.uni_mannheim.informatik.dws.alcomo.mapping.Mapping alcomoAlignment)
      Mapping from Alcomo Mapping to YAAA's Alignment.
      Parameters:
      alcomoAlignment - The ALCOMO alignment ("mapping").
      Returns:
      Alignment instance.
    • alcomoSemanticRelationToYaaaCorrespondenceRelation

      public static CorrespondenceRelation alcomoSemanticRelationToYaaaCorrespondenceRelation(int alcomoSemanticRelationCode)
      Mapping of the ALCOMO semantic relation code to YAAA's CorrespondenceRelation.
      Parameters:
      alcomoSemanticRelationCode - The ALCOMO semantic code (an integer).
      Returns:
      Corresponding MELT/YAAA CorrespondenceRelation.
    • serializeAlignmentToTemporaryFile

      static String serializeAlignmentToTemporaryFile(Alignment alignment) throws AlcomoException
      Serialize the alignment to a file and return its path.
      Parameters:
      alignment - The alignment to be serialized.
      Returns:
      The path (as String) to the serialized alignment.
      Throws:
      AlcomoException - Thrown if there are problems with the file.
    • serializeOntologyToTemporaryFile

      static String serializeOntologyToTemporaryFile(org.semanticweb.owlapi.model.OWLOntology ontology) throws AlcomoException
      Serializes the ontology to a file and returns its path.
      Parameters:
      ontology - The ontology of which the file path shall be obtained.
      Returns:
      String file path.
      Throws:
      AlcomoException - Risen if there occurs an exception in the process.
    • isOneToOneAlignment

      public boolean isOneToOneAlignment()
    • setOneToOneAlignment

      public void setOneToOneAlignment(boolean oneToOneAlignment)
    • getReasoner

      public de.uni_mannheim.informatik.dws.alcomo.Settings.BlackBoxReasoner getReasoner()
    • setReasoner

      public void setReasoner(de.uni_mannheim.informatik.dws.alcomo.Settings.BlackBoxReasoner reasoner)
    • getExtractionProblem

      public de.uni_mannheim.informatik.dws.alcomo.ExtractionProblem getExtractionProblem()
    • setExtractionProblem

      public void setExtractionProblem(de.uni_mannheim.informatik.dws.alcomo.ExtractionProblem extractionProblem)