edu.stanford.db.rdf.model.i
Class ResourceImpl
edu.stanford.db.rdf.model.i.RDFNodeImpl
|
+--edu.stanford.db.rdf.model.i.ResourceImpl
- All Implemented Interfaces:
- RDFNode, Resource
- public class ResourceImpl
- extends RDFNodeImpl
- implements Resource
Method Summary |
boolean |
equals(java.lang.Object that)
That's the beauty of it... |
java.lang.String |
getLabel()
The formal string label of the node. |
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. |
qname
protected QName qname
ResourceImpl
public ResourceImpl(int nodeID,
QName qname)
throws ModelException
ResourceImpl
protected ResourceImpl()
getNamespace
public java.lang.String getNamespace()
- Description copied from interface:
Resource
- Returns the namespace of the resource. May return null.
- Specified by:
getNamespace
in interface Resource
- Following copied from interface:
org.w3c.rdf.model.Resource
- Returns:
- the namespace of the resource
- See Also:
Statement
,
Model
getLocalName
public java.lang.String getLocalName()
- Description copied from interface:
Resource
- Returns the local name of the resource. May not return null.
- Specified by:
getLocalName
in interface Resource
- Following copied from interface:
org.w3c.rdf.model.Resource
- Returns:
- the local name of the resource
- See Also:
Statement
,
Model
getURI
public java.lang.String getURI()
- Description copied from interface:
Resource
- Returns the URI of the resource. Triples and models must implement this method in a standard way.
- Specified by:
getURI
in interface Resource
- Following copied from interface:
org.w3c.rdf.model.Resource
- Returns:
- the URI of the resource
- See Also:
Statement
,
Model
getLabel
public java.lang.String getLabel()
- Description copied from interface:
RDFNode
- The formal string label of the node.
URI in case of a resource, string in case of a literal.
- Specified by:
getLabel
in interface RDFNode
- Overrides:
getLabel
in class RDFNodeImpl
equals
public boolean equals(java.lang.Object that)
- Description copied from class:
RDFNodeImpl
- That's the beauty of it...
- Overrides:
equals
in class RDFNodeImpl