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.

1.2 last modified 29.11.2006
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.

Method Detail


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.

queryNode - node from the query graph
resNode - node from the resource graph
the similarity between both nodes. The sim is a float number from [0,1]