Class MatcherMultiSourceYAAAJena

java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_base.multisource.MatcherMultiSourceURL
de.uni_mannheim.informatik.dws.melt.matching_jena.multisource.MatcherMultiSourceYAAAJena
All Implemented Interfaces:
IMatcherMultiSource<org.apache.jena.ontology.OntModel,Alignment,Properties>

public abstract class MatcherMultiSourceYAAAJena extends MatcherMultiSourceURL implements IMatcherMultiSource<org.apache.jena.ontology.OntModel,Alignment,Properties>
  • Constructor Details

    • MatcherMultiSourceYAAAJena

      public MatcherMultiSourceYAAAJena()
  • Method Details

    • match

      public URL match(List<URL> graphs, URL inputAlignment, URL parameters) throws Exception
      Description copied from class: MatcherMultiSourceURL
      Matches multiple ontologies/knowledge graphs together.
      Specified by:
      match in class MatcherMultiSourceURL
      Parameters:
      graphs - the ontologies/knowledge graphs as URLs
      inputAlignment - the input alignment as URL (alignment API format)
      parameters - the parameters file url. Format are currently json or yaml.
      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 abstract Alignment match(List<org.apache.jena.ontology.OntModel> graphs, Alignment inpuAlignment, Properties parameters) throws Exception
      Description copied from interface: IMatcherMultiSource
      Matches multiple ontologies / knowledge graphs together.
      Specified by:
      match in interface IMatcherMultiSource<org.apache.jena.ontology.OntModel,Alignment,Properties>
      Parameters:
      graphs - a list of ontologies / knowledge graphs in the desired format.
      inpuAlignment - this object represents the input alignment.
      parameters - 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, 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 - in case of any errors
    • 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
    • createOntology

      protected org.apache.jena.ontology.OntModel createOntology()