|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.model.impl.URIImpl
An implementation of the URI interface.
| Field Summary | |
static URI |
RDF_ALT
Constant URI for rdf:Alt |
static URI |
RDF_BAG
Constant URI for rdf:Bag |
static URI |
RDF_FIRST
Constant URI for rdf:first |
static URI |
RDF_LIST
Constant URI for rdf:List |
static URI |
RDF_NIL
Constant URI for rdf:nil |
static URI |
RDF_OBJECT
Constant URI for rdf:object |
static URI |
RDF_PREDICATE
Constant URI for rdf:predicate |
static URI |
RDF_PROPERTY
Constant URI for rdf:Property |
static URI |
RDF_REST
Constant URI for rdf:rest |
static URI |
RDF_SEQ
Constant URI for rdf:Seq |
static URI |
RDF_STATEMENT
Constant URI for rdf:Statement |
static URI |
RDF_SUBJECT
Constant URI for rdf:subject |
static URI |
RDF_TYPE
Constant URI for rdf:type |
static URI |
RDF_VALUE
Constant URI for rdf:value |
static URI |
RDF_XMLLITERAL
Constant URI for rdf:XMLLiteral |
static URI |
RDFS_CLASS
Constant URI for rdfs:Class |
static URI |
RDFS_COMMENT
Constant URI for rdfs:comment |
static URI |
RDFS_CONTAINER
Constant URI for rdfs:Container |
static URI |
RDFS_CONTAINERMEMBERSHIPPROPERTY
Constant URI for rdfs:ContainerMembershipProperty |
static URI |
RDFS_DATATYPE
Constant URI for rdfs:Datatype |
static URI |
RDFS_DOMAIN
Constant URI for rdfs:domain |
static URI |
RDFS_ISDEFINEDBY
Constant URI for rdfs:isDefinedBy |
static URI |
RDFS_LABEL
Constant URI for rdfs:label |
static URI |
RDFS_LITERAL
Constant URI for rdfs:Literal |
static URI |
RDFS_MEMBER
Constant URI for rdfs:member |
static URI |
RDFS_RANGE
Constant URI for rdfs:range |
static URI |
RDFS_RESOURCE
Constant URI for rdfs:Resource |
static URI |
RDFS_SEEALSO
Constant URI for rdfs:seeAlso |
static URI |
RDFS_SUBCLASSOF
Constant URI for rdfs:subClassOf |
static URI |
RDFS_SUBPROPERTYOF
Constant URI for rdfs:subPropertyOf |
| Constructor Summary | |
URIImpl(String uri)
Creates a new URI from the supplied string. |
|
URIImpl(String namespace,
String localName)
Creates a new URI that will get the supplied namespace and local name. |
|
| Method Summary | |
void |
addProperty(URI property,
Value value)
Adds a property to this Resource in the RDF graph. |
int |
compareTo(Object o)
Compares this URI with the supplied object. |
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 |
getObjectStatements()
Gets all statements from the RDF graph for which this value is the object. |
StatementIterator |
getPredicateStatements()
Gets all statements from the RDF graph for which this URI is the predicate. |
StatementIterator |
getSubjectStatements()
Gets all statements from the RDF graph for which this resource is the subject. |
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() |
String |
toString()
Returns the String-representation of this URI. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final URI RDF_TYPE
public static final URI RDF_PROPERTY
public static final URI RDF_XMLLITERAL
public static final URI RDF_SUBJECT
public static final URI RDF_PREDICATE
public static final URI RDF_OBJECT
public static final URI RDF_STATEMENT
public static final URI RDF_ALT
public static final URI RDF_BAG
public static final URI RDF_SEQ
public static final URI RDF_VALUE
public static final URI RDF_LIST
public static final URI RDF_FIRST
public static final URI RDF_REST
public static final URI RDF_NIL
public static final URI RDFS_RESOURCE
public static final URI RDFS_CLASS
public static final URI RDFS_LITERAL
public static final URI RDFS_SUBCLASSOF
public static final URI RDFS_SUBPROPERTYOF
public static final URI RDFS_DOMAIN
public static final URI RDFS_RANGE
public static final URI RDFS_COMMENT
public static final URI RDFS_LABEL
public static final URI RDFS_ISDEFINEDBY
public static final URI RDFS_SEEALSO
public static final URI RDFS_DATATYPE
public static final URI RDFS_CONTAINER
public static final URI RDFS_MEMBER
public static final URI RDFS_CONTAINERMEMBERSHIPPROPERTY
| Constructor Detail |
public URIImpl(String uri)
uri - A String representing a legal, absolute URI.
IllegalArgumentException - If the supplied URI is not a
legal (absolute) URI.
public URIImpl(String namespace,
String localName)
namespace - A namespace.localName - A legal local name. A legal local name adheres to the definition of an NCName as specified at
http://www.w3.org/TR/REC-xml-names/#NT-NCName.| Method Detail |
public String getNamespace()
URI
getNamespace in interface URIpublic String getLocalName()
URI
getLocalName in interface URIpublic String getURI()
URI
getURI in interface URIpublic boolean equals(Object o)
URI
equals in interface URIpublic int hashCode()
URInamespace.hashCode() ^ localName.hashCode()
hashCode in interface URIpublic int compareTo(Object o)
compareTo in interface ComparableClassCastException - if o is not of type ValueComparablepublic String toString()
public StatementIterator getPredicateStatements()
throws GraphException
URI
getPredicateStatements in interface URIGraphException
public void addProperty(URI property,
Value value)
throws GraphException
Resource
addProperty in interface Resourceproperty - the predicate of the statement that should be added.value - the value of the statements that should be added.
GraphException
public StatementIterator getSubjectStatements()
throws GraphException
Resource
getSubjectStatements in interface ResourceGraphException
public StatementIterator getObjectStatements()
throws GraphException
Value
getObjectStatements in interface ValueGraphException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||