org.openrdf.model
Interface Literal

All Superinterfaces:
java.lang.Comparable, java.io.Serializable, Value
All Known Implementing Classes:
Literal

public interface Literal
extends Value

An RDF literal consisting of a label (the value) and optionally a language tag or a datatype (but not both).


Method Summary
 URI getDatatype()
          Gets the datatype for this literal.
 java.lang.String getLabel()
          Gets the label of this literal.
 java.lang.String getLanguage()
          Gets the language tag for this literal, normalized to lowercase.
 
Methods inherited from interface org.openrdf.model.Value
getObjectStatements
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getLabel

public java.lang.String getLabel()
Gets the label of this literal.

Returns:
The literal's label.

getLanguage

public java.lang.String getLanguage()
Gets the language tag for this literal, normalized to lowercase.

Returns:
The language tag for this literal, or null if it doesn't have one.

getDatatype

public URI getDatatype()
Gets the datatype for this literal.

Returns:
The datatype for this literal, or null if it doesn't have one.