public class RDFResourceNode extends RDFNode implements Comparable<RDFNode>
Constructor and Description |
---|
RDFResourceNode(int anonId,
boolean isIndividual,
boolean forceId)
Constructs an anonymous node, which has the specified ID.
|
RDFResourceNode(IRI iri)
Constructs a named resource (i.e.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RDFNode b) |
boolean |
equals(Object obj) |
int |
getId() |
IRI |
getIRI()
Gets the URI of the resource.
|
int |
hashCode() |
boolean |
isAnonymous()
Determines if this node is a resource and is anonymous.
|
boolean |
isIndividual() |
boolean |
isLiteral() |
boolean |
shouldOutputId() |
String |
toString() |
public RDFResourceNode(IRI iri)
iri
- the IRIpublic RDFResourceNode(int anonId, boolean isIndividual, boolean forceId)
anonId
- The id of the nodepublic boolean isIndividual()
public boolean shouldOutputId()
public int getId()
public 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 compareTo(RDFNode b)
compareTo
in interface Comparable<RDFNode>
Copyright © 2017 The University of Manchester. All Rights Reserved.