org.w3c.rdf.model
Interface Resource
- All Superinterfaces:
- RDFNode
- All Known Subinterfaces:
- Model, SetModel, Statement, VirtualModel
- All Known Implementing Classes:
- ResourceImpl, ResourceImpl
- public interface Resource
- extends RDFNode
An RDF resource. Every RDF resource must have a URI. Many RDF
resources are pieces of vocabulary. They typically have a namespace
and a local name. In this case, a URI is composed as a
concatenation of the namespace and the local name.
For other kinds of identifiers (e.g. autogenerated UUIDs), the namespace is null.
Method Summary |
java.lang.String |
getLocalName()
Returns the local name of the resource. |
java.lang.String |
getNamespace()
Returns the namespace of the resource. |
java.lang.String |
getURI()
Returns the URI of the resource. |
getURI
public java.lang.String getURI()
throws ModelException
- Returns the URI of the resource. Triples and models must implement this method in a standard way.
- Returns:
- the URI of the resource
- See Also:
Statement
,
Model
getNamespace
public java.lang.String getNamespace()
throws ModelException
- Returns the namespace of the resource. May return null.
- Returns:
- the namespace of the resource
- Since:
- 2000-10-21
- See Also:
Statement
,
Model
getLocalName
public java.lang.String getLocalName()
throws ModelException
- Returns the local name of the resource. May not return null.
- Returns:
- the local name of the resource
- Since:
- 2000-10-21
- See Also:
Statement
,
Model