com.franz.ag
Class ResourceNode

java.lang.Object
  extended bycom.franz.ag.ValueObject
      extended bycom.franz.ag.ValueNode
          extended bycom.franz.ag.ResourceNode
All Implemented Interfaces:
java.lang.Comparable, Resource, java.io.Serializable, Value
Direct Known Subclasses:
BlankNode, DefaultGraph, Node

public class ResourceNode
extends ValueNode
implements Resource

This intermediate class implements the methods in the interface defined by org.openrdf.model.Resource.

See Also:
Serialized Form

Method Summary
 void addProperty(URI property, Value value)
          Adds a property to this Resource in the RDF graph.
 StatementIterator getSubjectStatements()
          Gets all statements from the RDF graph for which this resource is the subject.
 
Methods inherited from class com.franz.ag.ValueNode
compareTo, getObjectStatements, queryAGId
 
Methods inherited from class com.franz.ag.ValueObject
compareTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.model.Value
getObjectStatements
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

addProperty

public void addProperty(URI property,
                        Value value)
                 throws GraphException
Description copied from interface: Resource
Adds a property to this Resource in the RDF graph. The result is that a statement of the form (this, property, value) is added.

Specified by:
addProperty in interface Resource
Parameters:
property - the predicate of the statement that should be added.
value - the value of the statements that should be added.
Throws:
GraphException

getSubjectStatements

public StatementIterator getSubjectStatements()
                                       throws GraphException
Description copied from interface: Resource
Gets all statements from the RDF graph for which this resource is the subject.

Specified by:
getSubjectStatements in interface Resource
Throws:
GraphException