public class RDFLiteral extends RDFNode
| Constructor and Description |
|---|
RDFLiteral(OWLLiteral literal) |
RDFLiteral(String literal,
String lang,
IRI datatype)
Constructor for plain literal wrappers
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RDFNode o) |
boolean |
equals(Object obj) |
IRI |
getDatatype() |
IRI |
getIRI()
Gets the IRI of this object
|
String |
getLang() |
String |
getLexicalValue() |
int |
hashCode() |
boolean |
hasLang() |
boolean |
isAnonymous()
Determines if this node is a resource and is anonymous.
|
boolean |
isLiteral()
Determines if this node is a literal node.
|
boolean |
isPlainLiteral() |
String |
toString() |
isIndividual, shouldOutputIdpublic RDFLiteral(@Nonnull String literal, @Nonnull String lang, @Nullable IRI datatype)
literal - lexical formlang - language tagdatatype - datatype IRIpublic RDFLiteral(@Nonnull OWLLiteral literal)
literal - the wrapped literalpublic boolean isLiteral()
RDFNodepublic IRI getIRI()
HasIRIpublic 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 boolean hasLang()
public boolean isPlainLiteral()
public int compareTo(RDFNode o)
Copyright © 2016 The University of Manchester. All Rights Reserved.