de.fuberlin.wiwiss.semmf.result.impl
Class PropertyMatchingResultImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
PropertyMatchingResultImpl
public PropertyMatchingResultImpl()
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.