Package com.apicatalog.rdf
Interface RdfLiteral
-
- All Superinterfaces:
RdfValue
- All Known Implementing Classes:
ImmutableRdfLiteral
@Deprecated public interface RdfLiteral extends RdfValue
Deprecated.since 1.7.0 - use an alternative RDF primitives library.This class is deprecated as of version 1.7.0.Please use Titanium RDF Primitives or any other third-party library to materialize RDF primitives.
- See Also:
- Titanium RDF Primitives
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default RdfLiteralasLiteral()Deprecated.Return the RdfValue as a RdfLiteraljava.lang.StringgetDatatype()Deprecated.An absolute IRI denoting the datatype IRI of the literal.java.util.Optional<java.lang.String>getLanguage()Deprecated.An optional language tag.java.lang.StringgetValue()Deprecated.Get the lexical value of the literal.default booleanisBlankNode()Deprecated.Indicates if the value type is blank node identifier.default booleanisIRI()Deprecated.Indicates if the value type is an absolute IRI.
-
-
-
Method Detail
-
getValue
java.lang.String getValue()
Deprecated.Get the lexical value of the literal.
-
getDatatype
java.lang.String getDatatype()
Deprecated.An absolute IRI denoting the datatype IRI of the literal. If the value is rdf:langString,getLanguage()value is present.- Returns:
- an absolute IRI, never
null
-
getLanguage
java.util.Optional<java.lang.String> getLanguage()
Deprecated.An optional language tag. If this value is specified,getDatatype()returns rdf:langString.- Returns:
- language tag or
Optional.empty()if not set
-
isIRI
default boolean isIRI()
Deprecated.Description copied from interface:RdfValueIndicates if the value type is an absolute IRI.
-
isBlankNode
default boolean isBlankNode()
Deprecated.Description copied from interface:RdfValueIndicates if the value type is blank node identifier.- Specified by:
isBlankNodein interfaceRdfValue- Returns:
trueif the value type is blank node,falseotherwise.
-
asLiteral
default RdfLiteral asLiteral()
Deprecated.Description copied from interface:RdfValueReturn the RdfValue as a RdfLiteral
-
-