public class RDFLiteralNode extends RDFNode
| Constructor and Description |
|---|
RDFLiteralNode(String literal,
IRI datatype) |
RDFLiteralNode(String literal,
String lang) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
IRI |
getDatatype() |
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, IRI datatype)
literal - lexical formdatatype - typepublic 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 IRI getDatatype()
null if there is no datatypepublic boolean isTyped()
public boolean isLiteral()
Copyright © 2012 The University of Manchester. All Rights Reserved.