public class RDFResource extends RDFNode implements Serializable
Constructor and Description |
---|
RDFResource(IRI resource)
Create an RDFResource that is NOT anonymous.
|
RDFResource(IRI resource,
boolean anonymous) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RDFNode o) |
boolean |
equals(Object o) |
IRI |
getResource() |
int |
hashCode() |
boolean |
isAnonymous() |
boolean |
isLiteral()
Determines if this node is a literal node.
|
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()
RDFNode
public IRI getResource()
public boolean isAnonymous()
public int compareTo(RDFNode o)
compareTo
in interface Comparable<RDFNode>
Copyright © 2017 The University of Manchester. All Rights Reserved.