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() |
idRequired, isAxiom, isIndividual, shouldOutputId
public 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()
RDFNode
public IRI getIRI()
HasIRI
public 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 boolean hasLang()
public boolean isPlainLiteral()
public int compareTo(RDFNode o)
Copyright © 2020 The University of Manchester. All rights reserved.