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

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

public class NodeMatchingResultImpl
extends java.lang.Object
implements NodeMatchingResult

Version:
1.0 last modified on 29.11.2006
Author:
Radoslaw Oldakowski

Field Summary
 java.lang.String label
           
 java.util.List propertyMatchingResultList
           
 com.hp.hpl.jena.rdf.model.RDFNode queryNode
           
 com.hp.hpl.jena.rdf.model.RDFNode resNode
           
 boolean reversed
           
 float sim
           
 float weight
           
 
Constructor Summary
NodeMatchingResultImpl()
           
 
Method Summary
 java.lang.String getLabel()
           
 java.util.List getPropertyMatchingResultList()
           
 com.hp.hpl.jena.rdf.model.RDFNode getQueryNode()
           
 com.hp.hpl.jena.rdf.model.RDFNode getResNode()
           
 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

queryNode

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

resNode

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

label

public java.lang.String label

sim

public float sim

weight

public float weight

reversed

public boolean reversed

propertyMatchingResultList

public java.util.List propertyMatchingResultList
Constructor Detail

NodeMatchingResultImpl

public NodeMatchingResultImpl()
Method Detail

getQueryNode

public com.hp.hpl.jena.rdf.model.RDFNode getQueryNode()
Specified by:
getQueryNode in interface NodeMatchingResult
Returns:
RDFNode from a query graph

getResNode

public com.hp.hpl.jena.rdf.model.RDFNode getResNode()
Specified by:
getResNode in interface NodeMatchingResult
Returns:
RDFNode resource graph

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface NodeMatchingResult
Returns:
node label specified in a matching description.

getSimilarity

public float getSimilarity()
Specified by:
getSimilarity in interface NodeMatchingResult
Returns:
similarity value of both nodes. If the node is a resource having properties this similarity value includes the similarity of the nodes and the similarities of their properties.

getWeight

public float getWeight()
Specified by:
getWeight in interface NodeMatchingResult
Returns:
weight which represents the importance of this node among other nodes in this particular cluster. The weight is a float number [0..1]. The sum of all node weights inside each cluster equals 1.

isReversed

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

getPropertyMatchingResultList

public java.util.List getPropertyMatchingResultList()
Specified by:
getPropertyMatchingResultList in interface NodeMatchingResult
Returns:
List of objects implementing the PropertyMatchingResult interface. Each of this objects holds information about the matching of a certain property of a node from a query graph with a coersponding property of a coresponding node from a resource graph. The list returned does not contain all properties of the node, but only those of them which have been specified in the matching description and thus considered by the matching engine. If the list returned is empty, is means that this node similarity is merely based on the node similarity itself without considering any properties.