public interface Literal extends RDFTerm
Modifier and Type | Method and Description |
---|---|
IRI |
getDatatype()
The IRI identifying the datatype that determines how the lexical form
maps to a literal value.
|
Optional<String> |
getLanguageTag()
If and only if the datatype IRI is http://www.w3.org/1999/02/22-rdf-syntax-ns#langString, the language
tag for this Literal is a non-empty language tag as defined by BCP47.
If the datatype IRI is not http://www.w3.org/1999/02/22-rdf-syntax-ns#langString, this method must return Optional.empty() . |
String |
getLexicalForm()
The lexical form of this literal, represented by a Unicode string.
|
ntriplesString
String getLexicalForm()
IRI getDatatype()
Optional<String> getLanguageTag()
Optional.empty()
.Optional
language tag for this literal. If
Optional.isPresent()
returns true, the value returned by
Optional.get()
must be a non-empty string conforming to
BCP47.Copyright © 2014. All rights reserved.