de.fuberlin.wiwiss.semmf.descr
Interface PropertyMatchingDescription

All Known Implementing Classes:
PropertyMatchingDescriptionImpl

public interface PropertyMatchingDescription

Each object holding property matching information must implement this interface, in order to be compatible with the MatchingEngine.

Version:
1.0 last modified 29.11.2006
Author:
Radoslaw Oldakowski

Method Summary
 java.lang.String getLabel()
           
 Matcher getMatcher()
           
 java.lang.String getQueryPropertyURI()
           
 java.lang.String getResPropertyURI()
           
 float getWeight()
           
 boolean reverseMatching()
          In most cases the matching engine compares a value from a resource graph with the semantically corresponding value from a query graph (= the "required" value).
 

Method Detail

getLabel

java.lang.String getLabel()
Returns:
label of this property.

getWeight

float getWeight()
Returns:
weight which represents the importance of this property among other properties in a particular NodeMatchingDescription The weight is a float number [0..1]. The sum of all property weights equals 1.

getQueryPropertyURI

java.lang.String getQueryPropertyURI()
Returns:
URI of the property of the query node

getResPropertyURI

java.lang.String getResPropertyURI()
Returns:
URI of the property of the resource node

getMatcher

Matcher getMatcher()
Returns:
Matcher which will calculate the similarity of the query and res properties

reverseMatching

boolean reverseMatching()
In most cases the matching engine compares a value from a resource graph with the semantically corresponding value from a query graph (= the "required" value). But for some nodes it is reasonable to reverse the matching. A good example is comparing job requirements with applicant's profile. If a person (query graph) looks for a job (resource graph) then while comparing his skills with skills required for a certain position the required skills from a resource graph (job description) become the "should be" values, thus the matching has to be reversed.

Returns:
true if the matching should be reversed