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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.jena.ontology.OntModel
protected org.apache.jena.ontology.OntModelSpec
Matches multiple ontologies/knowledge graphs together.abstract Alignment
match
(List<org.apache.jena.ontology.OntModel> graphs, Alignment inpuAlignment, Properties parameters) Matches multiple ontologies / knowledge graphs together.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_base.multisource.MatcherMultiSourceURL
needsTransitiveClosureForEvaluation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uni_mannheim.informatik.dws.melt.matching_base.multisource.IMatcherMultiSource
needsTransitiveClosureForEvaluation
-
Constructor Details
-
MatcherMultiSourceYAAAJena
public MatcherMultiSourceYAAAJena()
-
-
Method Details
-
match
Description copied from class:MatcherMultiSourceURL
Matches multiple ontologies/knowledge graphs together.- Specified by:
match
in classMatcherMultiSourceURL
- Parameters:
graphs
- the ontologies/knowledge graphs as URLsinputAlignment
- 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 interfaceIMatcherMultiSource<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 likeparameters= new ...()
because otherwise the parameters are lost (java ist call by value). Sensible classes areProperties
,Map<String, Object>
or any similar data structure. Some already specified keys (strings) can be found atParameterConfigKeys
.- 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 ontologyspec
- the spec which should be used- Returns:
- ont model
-
createOntology
protected org.apache.jena.ontology.OntModel createOntology()
-