public class RDFLiteralNode extends RDFNode implements Comparable<RDFNode>
Constructor and Description |
---|
RDFLiteralNode(String literal,
IRI datatype) |
RDFLiteralNode(String literal,
String lang) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RDFNode b) |
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()
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 String getLiteral()
public String getLang()
null
if there is no langpublic IRI getDatatype()
null
if there is no datatypepublic boolean isTyped()
public boolean isLiteral()
public int compareTo(RDFNode b)
compareTo
in interface Comparable<RDFNode>
Copyright © 2017 The University of Manchester. All Rights Reserved.