org.openrdf.model
Interface URI

All Superinterfaces:
java.lang.Comparable, Resource, java.io.Serializable, Value
All Known Implementing Classes:
Node

public interface URI
extends Resource

A URI resource.


Method Summary
 java.lang.String getLocalName()
          Gets the local name of this URI.
 java.lang.String getNamespace()
          Gets the namespace of this URI.
 StatementIterator getPredicateStatements()
          Gets all statements from the RDF graph for which this URI is the predicate.
 java.lang.String getURI()
          Returns the String-representation of this URI.
 
Methods inherited from interface org.openrdf.model.Resource
addProperty, getSubjectStatements
 
Methods inherited from interface org.openrdf.model.Value
getObjectStatements
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getNamespace

public java.lang.String getNamespace()
Gets the namespace of this URI.

Returns:
The URI's namespace.

getLocalName

public java.lang.String getLocalName()
Gets the local name of this URI.

Returns:
The URI's local name.

getURI

public java.lang.String getURI()
Returns the String-representation of this URI. The String-representation consists of the concatenation of the namespace and the local name.

Returns:
The String-representation of this URI.

getPredicateStatements

public StatementIterator getPredicateStatements()
                                         throws GraphException
Gets all statements from the RDF graph for which this URI is the predicate.

Throws:
GraphException