java.lang.Object
org.apache.jena.datatypes.BaseDatatype
org.apache.jena.datatypes.xsd.impl.RDFLangString
- All Implemented Interfaces:
RDFDatatype
rdf:dirLangString
- a literal with language and initial text direction.
This covers the unusual case of "foo"^^rdf:langString
.
When there is a language tag, there is a lexical form but it is in two parts lex@lang.
This is not rdf:plainLiteral!
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype
BaseDatatype.TypedValue
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEqual
(LiteralLabel value1, LiteralLabel value2) Compares two instances of values of the given datatype.static boolean
isRDFLangString
(RDFDatatype rdfDatatype) Test where anRDFDatatype
is that forrdf:langString
.This covers the unusual case of "foo"^^rdf:langString.Convert a value of this datatype out to lexical form.Methods inherited from class org.apache.jena.datatypes.BaseDatatype
cannonicalise, extendedTypeDefinition, getHashCode, getJavaClass, getURI, isValid, isValidLiteral, isValidValue, langTagCompatible, normalizeSubType, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.jena.datatypes.RDFDatatype
cannonicalise, extendedTypeDefinition, getHashCode, getJavaClass, getURI, isValid, isValidLiteral, isValidValue, normalizeSubType
-
Field Details
-
rdfLangStringURI
- See Also:
-
rdfLangString
Singleton instancePrefer
RDF.dtLangString
in applications.
-
-
Method Details
-
isRDFLangString
Test where anRDFDatatype
is that forrdf:langString
. -
isEqual
Compares two instances of values of the given datatype.- Specified by:
isEqual
in interfaceRDFDatatype
- Overrides:
isEqual
in classBaseDatatype
-
parse
This covers the unusual case of "foo"^^rdf:langString.- Specified by:
parse
in interfaceRDFDatatype
- Overrides:
parse
in classBaseDatatype
-
unparse
Description copied from class:BaseDatatype
Convert a value of this datatype out to lexical form.- Specified by:
unparse
in interfaceRDFDatatype
- Overrides:
unparse
in classBaseDatatype
-