- All Known Implementing Classes:
ARPDatatypeLiteral
,ARPString
A string literal property value from an RDF/XML file.
-
Method Summary
Modifier and TypeMethodDescriptionThe datatype URI of a typed literal, or null for an untyped literal.getLang()
The value of xml:lang for this literal, often the empty string.boolean
True if this literal was formed from a rdf:parseType="Literal" construction.toString()
The string value of the literal.
-
Method Details
-
isWellFormedXML
boolean isWellFormedXML()True if this literal was formed from a rdf:parseType="Literal" construction.- Returns:
- true for rdf:parseType="Literal" or any other unrecognised parseType.
-
getDatatypeURI
String getDatatypeURI()The datatype URI of a typed literal, or null for an untyped literal.- Returns:
- the URI as a String, or null
-
toString
String toString()The string value of the literal. -
getLang
String getLang()The value of xml:lang for this literal, often the empty string.- Returns:
- xml:lang.
-