public class RDFResource extends RDFNode
Constructor and Description |
---|
RDFResource(IRI resource)
Create an RDFResource that is NOT anonymous
|
RDFResource(IRI resource,
boolean anonymous) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
IRI |
getResource() |
int |
hashCode() |
boolean |
isAnonymous() |
boolean |
isLiteral()
Determines if this node is a literal node.
|
java.lang.String |
toString() |
public RDFResource(IRI resource, boolean anonymous)
resource
- the resourceanonymous
- true if the resource is anonymouspublic RDFResource(IRI resource)
resource
- The IRI of the resourcepublic boolean isLiteral()
public IRI getResource()
public boolean isAnonymous()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object