Class CommonPropertiesFilter
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.filter.BaseFilterWithSetComparison
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.filter.instance.CommonPropertiesFilter
- All Implemented Interfaces:
Filter
,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
Filter which deletes instance mappings if they have no matched properties in common.
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
If true, this excludes correspondences which maps to the same URI.private static final org.slf4j.Logger
Default loggerprivate double
The minimum confidence for which a property mapping is counted.Fields inherited from class de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.filter.BaseFilterWithSetComparison
setSimilarity, threshold
Fields inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherFile
FILE_PREFIX, FILE_SUFFIX
-
Constructor Summary
ConstructorDescriptionConstructor with default parameters.CommonPropertiesFilter
(double minNumberOfCommonProperties) Constructor with reduced parameters.CommonPropertiesFilter
(double threshold, SetSimilarity setSimilarity) Constructor with reduced parameters.CommonPropertiesFilter
(double threshold, SetSimilarity setSimilarity, boolean excludeSameURIMapping, double minPropertyConfidence) Constructor with all necessary parameters. -
Method Summary
Modifier and TypeMethodDescriptionfilter
(org.apache.jena.ontology.OntModel source, org.apache.jena.ontology.OntModel target, Alignment inputAlignment) getDistinctProperties
(org.apache.jena.ontology.Individual resource) 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.static double
sharedProperties
(org.apache.jena.ontology.Individual individualSource, org.apache.jena.ontology.Individual individualTarget, Alignment inputAlignment, boolean excludeSameURIMapping, double minPropertyConfidence, SetSimilarity setComparator) Return the number of overlapping distinct properties.toString()
Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.filter.BaseFilterWithSetComparison
getSetSimilarity, getThreshold, setSetSimilarity, setThreshold
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, 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 LOGGERDefault logger -
excludeSameURIMapping
private boolean excludeSameURIMappingIf true, this excludes correspondences which maps to the same URI. e.g. rdf:type = rdf:type -
minPropertyConfidence
private double minPropertyConfidenceThe minimum confidence for which a property mapping is counted.
-
-
Constructor Details
-
CommonPropertiesFilter
public CommonPropertiesFilter(double threshold, SetSimilarity setSimilarity, boolean excludeSameURIMapping, double minPropertyConfidence) Constructor with all necessary parameters.- Parameters:
threshold
- The threshold which should be larger or equal to be a valid match.setSimilarity
- The set similarity to choose when computing similarity value between the two distinct property sets.excludeSameURIMapping
- If true, this excludes correspodences which maps to the same URI e.g. rdf:type = rdf:typeminPropertyConfidence
- The minimum confidence for which a property mapping is counted.
-
CommonPropertiesFilter
Constructor with reduced parameters. Only threshold and setSimilarity is used.- Parameters:
threshold
- The threshold which should be larger or equal to be a valid match.setSimilarity
- The set similarity to choose when computing similarity value between the two distinct property sets.
-
CommonPropertiesFilter
public CommonPropertiesFilter(double minNumberOfCommonProperties) Constructor with reduced parameters. It count all Property mappings in the alignment (regardless of their confidence - at least non negative) and excludes correspondences which maps to the same URI e.g. rdf:type = rdf:type- Parameters:
minNumberOfCommonProperties
- Minimum number of properties which two instances has to have to be a valid and non filtered match.
-
CommonPropertiesFilter
public CommonPropertiesFilter()Constructor with default parameters. It count all Property mappings in the alignment (regardless of their confidence - at least non negative) and excludes correspondences which maps to the same URI e.g. rdf:type = rdf:type. Furthermore it needs to have at least one overlapping property.
-
-
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.
-
filter
-
getDistinctProperties
-
toString
-