Class SimilarHierarchyFilter
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_yaaa.MatcherYAAA
de.uni_mannheim.informatik.dws.melt.matching_jena.MatcherYAAAJena
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.filter.instance.SimilarHierarchyFilter
- All Implemented Interfaces:
de.uni_mannheim.informatik.dws.melt.matching_base.IMatcher<de.uni_mannheim.informatik.dws.melt.yet_another_alignment_api.Alignment,URL>
,eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge
,eu.sealsproject.platform.res.tool.api.IPlugin
,eu.sealsproject.platform.res.tool.api.IToolBridge
public class SimilarHierarchyFilter extends MatcherYAAAJena
Check if already matched individuals has a similar hierarchy (class hierarchy).
For different computation methods see
SimilarHierarchyFilterApproach
.-
Field Summary
Fields Modifier and Type Field Description protected SimilarHierarchyFilterApproach
approach
Which approach to determine the confidence.protected MatcherYAAAJena
hierarchyMatcher
A matcher which selects or creates some correspondences which forms an alignment for the hierarchy nodes.protected org.apache.jena.rdf.model.Property
hierarchyPropery
Property connecting the hierarchy together (usually rdfs:subClassOf).protected org.apache.jena.rdf.model.Property
instanceToHierarchyProperty
Property connecting the instance to the hierarhcy (usually rdf:type).private static org.slf4j.Logger
LOGGER
protected double
threshold
The threshold to compare with the calculated confidence. -
Constructor Summary
Constructors Constructor Description SimilarHierarchyFilter()
SimilarHierarchyFilter(org.apache.jena.rdf.model.Property instanceToHierarchyProperty, org.apache.jena.rdf.model.Property hierarchyPropery, MatcherYAAAJena hierarchyMatcher, SimilarHierarchyFilterApproach approach, double threshold)
-
Method Summary
Modifier and Type Method Description Map<String,Double>
getNormalizedDepths(org.apache.jena.ontology.Individual i)
Map<String,Double>
getNormalizedHierarchyLevels(org.apache.jena.ontology.Individual i)
Returns the hierarchy levels computed by the agony algorithm.protected List<org.apache.jena.rdf.model.Resource>
getObjectAsResource(org.apache.jena.rdf.model.StmtIterator i)
private Map<String,Double>
inverseAndNormalizeMapValues(Map<org.apache.jena.rdf.model.Resource,Integer> map)
de.uni_mannheim.informatik.dws.melt.yet_another_alignment_api.Alignment
match(org.apache.jena.ontology.OntModel source, org.apache.jena.ontology.OntModel target, de.uni_mannheim.informatik.dws.melt.yet_another_alignment_api.Alignment inputAlignment, Properties properties)
String
toString()
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_base.MatcherURL
align, align, canExecute, getType
Methods inherited from class eu.sealsproject.platform.res.tool.impl.AbstractPlugin
getId, getVersion, setId, setVersion
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
instanceToHierarchyProperty
protected org.apache.jena.rdf.model.Property instanceToHierarchyPropertyProperty connecting the instance to the hierarhcy (usually rdf:type). -
hierarchyPropery
protected org.apache.jena.rdf.model.Property hierarchyProperyProperty connecting the hierarchy together (usually rdfs:subClassOf). -
hierarchyMatcher
A matcher which selects or creates some correspondences which forms an alignment for the hierarchy nodes. -
approach
Which approach to determine the confidence. -
threshold
protected double thresholdThe threshold to compare with the calculated confidence.
-
-
Constructor Details
-
SimilarHierarchyFilter
public SimilarHierarchyFilter() -
SimilarHierarchyFilter
public SimilarHierarchyFilter(org.apache.jena.rdf.model.Property instanceToHierarchyProperty, org.apache.jena.rdf.model.Property hierarchyPropery, MatcherYAAAJena hierarchyMatcher, SimilarHierarchyFilterApproach approach, double threshold)
-
-
Method Details
-
match
public de.uni_mannheim.informatik.dws.melt.yet_another_alignment_api.Alignment match(org.apache.jena.ontology.OntModel source, org.apache.jena.ontology.OntModel target, de.uni_mannheim.informatik.dws.melt.yet_another_alignment_api.Alignment inputAlignment, Properties properties) throws Exception- Specified by:
match
in classMatcherYAAAJena
- Throws:
Exception
-
getNormalizedHierarchyLevels
Returns the hierarchy levels computed by the agony algorithm.- Parameters:
i
- the individual to start with.- Returns:
- map from hierarchical element uri to the normalized hierarchy level
-
getNormalizedDepths
-
inverseAndNormalizeMapValues
-
getObjectAsResource
protected List<org.apache.jena.rdf.model.Resource> getObjectAsResource(org.apache.jena.rdf.model.StmtIterator i) -
toString
-