public class RDFLiteralNode extends RDFNode implements Comparable<RDFNode>
| Constructor and Description |
|---|
RDFLiteralNode(String literal,
org.semanticweb.owlapi.model.IRI datatype) |
RDFLiteralNode(String literal,
String lang) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RDFNode b) |
boolean |
equals(Object obj) |
org.semanticweb.owlapi.model.IRI |
getDatatype() |
org.semanticweb.owlapi.model.IRI |
getIRI()
Gets the URI of the resource.
|
String |
getLang()
Gets the lang
|
String |
getLiteral()
Gets the lexical form of this literal.
|
int |
hashCode() |
boolean |
isAnonymous()
Determines if this node is a resource and is anonymous.
|
boolean |
isLiteral() |
boolean |
isTyped() |
String |
toString() |
public RDFLiteralNode(String literal, org.semanticweb.owlapi.model.IRI datatype)
literal - lexical formdatatype - typepublic org.semanticweb.owlapi.model.IRI getIRI()
RDFNodepublic 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.public String getLiteral()
public String getLang()
null if there is no langpublic org.semanticweb.owlapi.model.IRI getDatatype()
null if there is no datatypepublic boolean isTyped()
public boolean isLiteral()
public int compareTo(RDFNode b)
compareTo in interface Comparable<RDFNode>Copyright © 2014 The University of Manchester. All Rights Reserved.