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