org.jrdf.graph.local
Class URIReferenceImpl
java.lang.Object
org.jrdf.graph.AbstractURIReference
org.jrdf.graph.local.URIReferenceImpl
- All Implemented Interfaces:
- Serializable, LocalizedNode, Node, ObjectNode, PredicateNode, SubjectNode, TypedNodeVisitable, URIReference
public class URIReferenceImpl
- extends AbstractURIReference
- implements LocalizedNode, Serializable
RDF URI reference - resource node. Some RDF resources are properties. It's
not always possible to say whether a resource is a property or not until
it's used as a predicate, because we don't always have access to an RDF
Schema that defines the property.
A URI Reference can be any part of an RDF Triple: subject, predicate or
object.
- Version:
- $Revision: 1871 $
- Author:
- Paul Gearon
- See Also:
- Serialized Form
Method Summary |
Long |
getId()
Retrieves an internal identifier for this node. |
URIReferenceImpl
public URIReferenceImpl(URI newUri,
Long newId)
- Constructor for use by GraphElementFactory only.
- Parameters:
newUri
- The newUri of this node.newId
- The internal identifier for this node.
URIReferenceImpl
public URIReferenceImpl(URI newUri,
boolean validate,
Long newId)
- Constructor for use by GraphElementFactory only.
- Parameters:
newUri
- The uri of this node.validate
- whether to enforce valid RDF URIs.newId
- The internal identifier for this node.
getId
public Long getId()
- Retrieves an internal identifier for this node.
- Specified by:
getId
in interface LocalizedNode
- Returns:
- A numeric identifier for this node.