de.fuberlin.wiwiss.semmf.engine
Interface Matcher
- All Known Implementing Classes:
- NumericMatcher, StringMatcher, TaxonomicMatcher
public interface Matcher
Each Matcher assigned to a NodeMatchingDescription and therefore passed to the
matching engine must implement this interface.
- Version:
- 1.2
last modified 29.11.2006
- Author:
- Radoslaw Oldakowski
Method Summary |
float |
calcSim(com.hp.hpl.jena.rdf.model.RDFNode queryNode,
com.hp.hpl.jena.rdf.model.RDFNode resNode)
Calculates the similarity of two given RDFNodes. |
calcSim
float calcSim(com.hp.hpl.jena.rdf.model.RDFNode queryNode,
com.hp.hpl.jena.rdf.model.RDFNode resNode)
- Calculates the similarity of two given RDFNodes.
The RDFNodes may be Resources (having unique URI) or Literals
with numeric or String values.
It is up to the certain Matcher implementing this interface to handle these
values correctly according to their format.
- Parameters:
queryNode
- node from the query graphresNode
- node from the resource graph
- Returns:
- the similarity between both nodes. The sim is a
float number from [0,1]