org.openrdf.model
Interface Resource
- All Superinterfaces:
- Comparable, Serializable, Value
- All Known Subinterfaces:
- BNode, IdResource, NativeResource, ResourceNode, URI
- All Known Implementing Classes:
- BNodeImpl, BNodeNode, IdBNode, IdURI, Intersection, NativeBNode, NativeURI, URIImpl, URINode
- public interface Resource
- extends Value
The supertype of all RDF resources (URIs and blank nodes).
addProperty
public void addProperty(URI property,
Value value)
throws GraphException
- Adds a property to this Resource in the RDF graph. The result is that a
statement of the form (this, property, value) is added.
- 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
- Gets all statements from the RDF graph for which this resource is the subject.
- Throws:
GraphException
Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.