Class MatcherYAAAJena

All Implemented Interfaces:
IMatcher<org.apache.jena.ontology.OntModel,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:
AddAlignmentExtensions, AddAlignmentMatcher, AdditionalConfidenceByFunction, AdditionalConfidenceFilter, AddNegativesRandomly, AddNegativesViaAlignment, AddNegativesViaMatcher, AddPositivesWithReference, AlignmentSaveMatcher, AnonymousNodeFilter, BackgroundMatcher, BackgroundMatcherStandAlone, BadHostsFilter, BaseFilterWithSetComparison, BaselineStringMatcher, BoundedPathMatching, CardinalityFilter, ConfidenceCombiner, ConfidenceCurvatureFilter, ConfidenceFilter, DocumentSimilarityBase, FileSaveMatcher, ForwardAlwaysMatcher, ForwardMatcher, HighPrecisionMatcher, HungarianExtractor, MachineLearningScikitFilter, MachineLearningWEKAFilter, MatchClassBasedOnInstances, MatcherPipelineYAAAJena, MatcherPipelineYAAAJenaConstructor, MatchPropBasedOnClass, MatchPropBasedOnInstances, MaxWeightBipartiteExtractor, MixedTypFilter, NaiveAscendingExtractor, NaiveDescendingExtractor, NtoMCorrespondenceFilter, OpenEAMatcher, ParisMatcher, ReferenceMatcher, ReflexiveCorrespondenceFilter, ScalableStringProcessingMatcher, ScaleAdditionalConfidence, ScaleConfidence, SimilarHierarchyFilter, SimpleStringMatcher, StopwordExtraction, StringMatcher, SynonymTextMatcher, TopXFilter, TransformersBase, TypeFilter

public abstract class MatcherYAAAJena extends MatcherYAAA implements IMatcher<org.apache.jena.ontology.OntModel,Alignment,Properties>
A matcher template for matchers that are based on Apache Jena.
  • Field Summary

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

    FILE_PREFIX, FILE_SUFFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.jena.ontology.OntModelSpec
     
    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.apache.jena.ontology.OntModel source, org.apache.jena.ontology.OntModel target, Alignment inputAlignment, Properties properties)
    Aligns two ontologies specified via a Jena OntModel, with an input alignment as Alignment object, and returns the mapping of the resulting alignment.
    protected org.apache.jena.ontology.OntModel
    readOntology(URL url, org.apache.jena.ontology.OntModelSpec spec)
    Default implementation to load an ontology from an url with jena.

    Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_jena.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

    • MatcherYAAAJena

      public MatcherYAAAJena()
  • Method Details

    • getModelSpec

      protected org.apache.jena.ontology.OntModelSpec getModelSpec()
    • readOntology

      protected org.apache.jena.ontology.OntModel readOntology(URL url, org.apache.jena.ontology.OntModelSpec spec)
      Default implementation to load an ontology from an url with jena. Uses the cache. It can be changed by subclasses.
      Parameters:
      url - the url pointing to an ontology
      spec - the spec which should be used
      Returns:
      ont model
    • 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.apache.jena.ontology.OntModel source, org.apache.jena.ontology.OntModel target, Alignment inputAlignment, Properties properties) throws Exception
      Aligns two ontologies specified via a Jena OntModel, 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 interface IMatcher<org.apache.jena.ontology.OntModel,Alignment,Properties>
      Parameters:
      source - This OntModel represents the source ontology.
      target - This OntModel represents the target ontology.
      inputAlignment - This mapping represents the input alignment.
      properties - Additional properties.
      Returns:
      The resulting alignment of the matching process.
      Throws:
      Exception - Any exception which occurs during matching.