| com.hp.hpl.jena.rdf.arp.AResource
AResource | public interface AResource (Code) | | A URI or blank node reported to a
StatementHandler .
Note: equality (.equals ) rather than identity
(== ) must be used to compare AResource s.
author: Jeremy Carroll |
Method Summary | |
public String | getAnonymousID() A string distinguishing this anonymous resource, from other anonymous resources. | public String | getURI() The URI reference for this resource, if any. | public Object | getUserData() The user data allows the RDF application to store one Object with each blank node during parsing. | public boolean | hasNodeID() True, if this is an anonymous resource with an explicit rdf:nodeID. | public boolean | isAnonymous() True if this resource does not have an associated URI. | public void | setUserData(Object d) The user data allows the RDF application to store one Object with each blank node during parsing. |
getAnonymousID | public String getAnonymousID()(Code) | | A string distinguishing this anonymous resource, from other anonymous resources.
Undefined if
AResource.isAnonymous returns false.
An identifier with file scope for this anonymous resource.. |
getURI | public String getURI()(Code) | | The URI reference for this resource, if any.
Not defined if
AResource.isAnonymous returns true.
The URI reference of this resource. |
getUserData | public Object getUserData()(Code) | | The user data allows the RDF application to store one Object with each blank node during parsing.
This may help with garbage collect strategies when parsing huge files.
No references to the user data are maintained after a blank node goes out of
scope.
A user data object previously stored with AResource.setUserData; or null if none. |
hasNodeID | public boolean hasNodeID()(Code) | | True, if this is an anonymous resource with an explicit rdf:nodeID.
true if this resource has a nodeID |
isAnonymous | public boolean isAnonymous()(Code) | | True if this resource does not have an associated URI.
True if this resource is anonymous. |
setUserData | public void setUserData(Object d)(Code) | | The user data allows the RDF application to store one Object with each blank node during parsing.
This may help with garbage collect strategies when parsing huge files.
No references to the user data are maintained after a blank node goes out of
scope.
See note about large files in class documentation for
ARP .
Parameters: d - A user data object which may be retrieved later with AResource.getUserData. |
|
|