Package cz.cvut.kbss.ontodriver.model
Class Literal
java.lang.Object
cz.cvut.kbss.ontodriver.model.Literal
- All Implemented Interfaces:
Serializable
Represents an RDF literal consisting of a lexical form and datatype IRI.
To represent language-tagged string values, use LangString
.
- See Also:
-
Constructor Details
-
Literal
-
-
Method Details
-
getLexicalForm
Gets the lexical form of this literal.- Returns:
- String containing the lexical form
-
getDatatype
Gets the datatype identifier.- Returns:
- String containing the datatype IRI
-
equals
-
hashCode
public int hashCode() -
toString
-
from
Creates a literal instance from the specified lexical form and datatype.Convenience factory method alternative to constructor.
- Parameters:
lexicalForm
- Lexical form of the literaldatatype
- Datatype of the literal- Returns:
- Literal instance
-