|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A URI. A URI consists of a local name and a namespace. The local name is defined as the part of the URI string after the last occurrence of the '#', ':' or '/' character, the rest of the URI string is the namespace. URI strings that do not contain any of these character are considered to be malformed.
| Method Summary | |
boolean |
equals(Object o)
Compares a URI object to another object. |
String |
getLocalName()
Gets the local name of this URI. |
String |
getNamespace()
Gets the namespace of this URI. |
StatementIterator |
getPredicateStatements()
Gets all statements from the RDF graph for which this URI is the predicate. |
String |
getURI()
Returns the String-representation of this URI. |
int |
hashCode()
The hash code of a URI is defined as follows: namespace.hashCode() ^ localName.hashCode() |
| 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 |
public String getNamespace()
public String getLocalName()
public String getURI()
public StatementIterator getPredicateStatements()
throws GraphException
GraphExceptionpublic boolean equals(Object o)
o - The object to compare this URI to.
URI
and their String-representations are equal, false otherwise.public int hashCode()
namespace.hashCode() ^ localName.hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||