public class RDFResourceNode extends RDFNode
Constructor and Description |
---|
RDFResourceNode(int anonId)
Constructs an anonymous node, which has the specified ID.
|
RDFResourceNode(IRI iri)
Constructs a named resource (i.e.
|
public RDFResourceNode(IRI iri)
iri
- the IRIpublic RDFResourceNode(int anonId)
anonId
- The id of the nodepublic boolean isLiteral()
public boolean isAnonymous()
RDFNode
isAnonymous
in class RDFNode
true
if this is a resource node (i.e.
isLiteral
returns false
) and the
node is anonymous, or false
if this is a
resource node and is not anonymous.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object