de.fuberlin.wiwiss.semmf.result.impl
Class PropertyMatchingResultImpl

java.lang.Object
  extended by de.fuberlin.wiwiss.semmf.result.impl.PropertyMatchingResultImpl
All Implemented Interfaces:
PropertyMatchingResult

public class PropertyMatchingResultImpl
extends java.lang.Object
implements PropertyMatchingResult

Version:
1.0 last modified on 29.11.2006
Author:
Radoslaw Oldakowski

Field Summary
 java.lang.String label
           
 com.hp.hpl.jena.rdf.model.RDFNode queryPropVal
           
 com.hp.hpl.jena.rdf.model.RDFNode resPropVal
           
 boolean reversed
           
 float sim
           
 float weight
           
 
Constructor Summary
PropertyMatchingResultImpl()
           
 
Method Summary
 java.lang.String getLabel()
           
 com.hp.hpl.jena.rdf.model.RDFNode getQueryPropVal()
           
 com.hp.hpl.jena.rdf.model.RDFNode getResPropVal()
           
 float getSimilarity()
           
 float getWeight()
           
 boolean isReversed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queryPropVal

public com.hp.hpl.jena.rdf.model.RDFNode queryPropVal

resPropVal

public com.hp.hpl.jena.rdf.model.RDFNode resPropVal

label

public java.lang.String label

sim

public float sim

reversed

public boolean reversed

weight

public float weight
Constructor Detail

PropertyMatchingResultImpl

public PropertyMatchingResultImpl()
Method Detail

getQueryPropVal

public com.hp.hpl.jena.rdf.model.RDFNode getQueryPropVal()
Specified by:
getQueryPropVal in interface PropertyMatchingResult
Returns:
RDFNode representing the value of a particular property from the query graph.

getResPropVal

public com.hp.hpl.jena.rdf.model.RDFNode getResPropVal()
Specified by:
getResPropVal in interface PropertyMatchingResult
Returns:
RDFNode representing the value of a particular property from the resource graph.

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface PropertyMatchingResult
Returns:
label of the property

getSimilarity

public float getSimilarity()
Specified by:
getSimilarity in interface PropertyMatchingResult
Returns:
similarity of both property values

isReversed

public boolean isReversed()
Specified by:
isReversed in interface PropertyMatchingResult
Returns:
true if the matching has been reversed. (=> resource and query node have been switched at similarity calculation)

getWeight

public float getWeight()
Specified by:
getWeight in interface PropertyMatchingResult
Returns:
weight which represents the importance of this property among other properties of a single node type. The weight is a float number [0..1]. The sum of all property weights equals 1.