com.hp.hpl.jena.rdf.arp
Interface AResource


public interface AResource

A resource from the input file.

Author:
jjc

Method Summary
 java.lang.String getAnonymousID()
          A string distinguishing this anonymous resource, from other anonymous resources.
 java.lang.String getURI()
          If the input file specifies a URI reference for this resource, return it.
 java.lang.Object getUserData()
          The user data allows the RDF application to store one Object with each resource during parsing.
 boolean isAnonymous()
          Was this resource not given a URI in the file.
 void setUserData(java.lang.Object d)
          The user data allows the RDF application to store one Object with each resource during parsing.
 

Method Detail

isAnonymous

public boolean isAnonymous()
Was this resource not given a URI in the file.
Returns:
True if this resource is anonymous.

getAnonymousID

public java.lang.String getAnonymousID()
A string distinguishing this anonymous resource, from other anonymous resources. Not defined if isAnonymous() returns false.
Returns:
A gensym String.

getURI

public java.lang.String getURI()
If the input file specifies a URI reference for this resource, return it. Not defined if isAnonymous() returns true.
Returns:
The URI reference of this resource.

getUserData

public java.lang.Object getUserData()
The user data allows the RDF application to store one Object with each resource during parsing. This may help with garbage collect strategies when parsing huge files.
Returns:
A user data object previously stored with setUserData; or null if none.

setUserData

public void setUserData(java.lang.Object d)
The user data allows the RDF application to store one Object with each resource during parsing. This may help with garbage collect strategies when parsing huge files.
Parameters:
d - A user data object which may be retrieved later with getUserData.


Copyright © 2001 Hewlett-Packard. All Rights Reserved.