Class BoundedPathMatching
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_base.MatcherFile
de.uni_mannheim.informatik.dws.melt.matching_jena.MatcherYAAA
de.uni_mannheim.informatik.dws.melt.matching_jena.MatcherYAAAJena
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.structurelevel.BoundedPathMatching
- 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
Structure based matcher which allows to find matches in hierarchies which are between two already matched entities.
Example:
SourceSuperClass ---already matched with c=0.8--- TargetSuperClass ^ ^ | | rdfs:subClassOf rdfs:subClassOf | | SourceIntermediateClass --new with c=(0.8+0.9)/2=0.85-- TargetIntermediateClass ^ ^ | | rdfs:subClassOf rdfs:subClassOf | | SourceSubclass ----already matched with c=0.9--- TargetSubclassPer default it only matches the class hierarchy but it can be customized for further hierarchies like properties via the configurations object within this class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<BoundedPathMatchingConfiguration>
private static final org.slf4j.Logger
Fields inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherFile
FILE_PREFIX, FILE_SUFFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfiguration
(BoundedPathMatchingConfiguration configuration) void
void
private void
dfs
(List<org.apache.jena.rdf.model.Resource> currentPath, Set<String> targetNodes, Set<org.apache.jena.rdf.model.Resource> visited, List<List<org.apache.jena.rdf.model.Resource>> results, BoundedPathMatchingConfiguration config) 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.runDfs
(org.apache.jena.ontology.OntResource start, Set<String> targetNodes, BoundedPathMatchingConfiguration config) void
setConfigurations
(List<BoundedPathMatchingConfiguration> configurations) Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_jena.MatcherYAAAJena
getModelSpec, match, readOntology
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
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
configurations
-
-
Constructor Details
-
BoundedPathMatching
public BoundedPathMatching() -
BoundedPathMatching
-
-
Method Details
-
match
public Alignment match(org.apache.jena.ontology.OntModel source, org.apache.jena.ontology.OntModel target, Alignment inputAlignment, Properties properties) throws Exception Description copied from class:MatcherYAAAJena
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 interfaceIMatcher<org.apache.jena.ontology.OntModel,
Alignment, Properties> - Specified by:
match
in classMatcherYAAAJena
- 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.
-
runDfs
private List<List<org.apache.jena.rdf.model.Resource>> runDfs(org.apache.jena.ontology.OntResource start, Set<String> targetNodes, BoundedPathMatchingConfiguration config) -
dfs
-
getConfigurations
-
setConfigurations
-
addConfiguration
-
addConfigurationClassHierarchy
public void addConfigurationClassHierarchy() -
addConfigurationPropertyHierarchy
public void addConfigurationPropertyHierarchy()
-