Class ImmutableRdfLiteral

  • All Implemented Interfaces:
    RdfLiteral, RdfValue

    @Deprecated
    final class ImmutableRdfLiteral
    extends java.lang.Object
    implements RdfLiteral
    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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String dataType
      Deprecated.
       
      private java.lang.String langTag
      Deprecated.
       
      private java.lang.String value
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ImmutableRdfLiteral​(java.lang.String value, java.lang.String langTag, java.lang.String datatype)
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      private static java.lang.String datatype​(java.lang.String langTag, java.lang.String datatype)
      Deprecated.
       
      boolean equals​(java.lang.Object obj)
      Deprecated.
       
      java.lang.String getDatatype()
      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.String getValue()
      Deprecated.
      Get the lexical value of the literal.
      int hashCode()
      Deprecated.
       
      boolean isLiteral()
      Deprecated.
      Indicates if the value type is RDF literal.
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • value

        private final java.lang.String value
        Deprecated.
      • langTag

        private final java.lang.String langTag
        Deprecated.
      • dataType

        private final java.lang.String dataType
        Deprecated.
    • Constructor Detail

      • ImmutableRdfLiteral

        protected ImmutableRdfLiteral​(java.lang.String value,
                                      java.lang.String langTag,
                                      java.lang.String datatype)
        Deprecated.
    • Method Detail

      • getValue

        public java.lang.String getValue()
        Deprecated.
        Description copied from interface: RdfLiteral
        Get the lexical value of the literal.
        Specified by:
        getValue in interface RdfLiteral
        Specified by:
        getValue in interface RdfValue
        Returns:
        lexical value, never null
      • getDatatype

        public java.lang.String getDatatype()
        Deprecated.
        Description copied from interface: RdfLiteral
        An absolute IRI denoting the datatype IRI of the literal. If the value is rdf:langString, RdfLiteral.getLanguage() value is present.
        Specified by:
        getDatatype in interface RdfLiteral
        Returns:
        an absolute IRI, never null
      • isLiteral

        public boolean isLiteral()
        Deprecated.
        Description copied from interface: RdfValue
        Indicates if the value type is RDF literal.
        Specified by:
        isLiteral in interface RdfValue
        Returns:
        true if the value type is literal, false otherwise.
      • getLanguage

        public java.util.Optional<java.lang.String> getLanguage()
        Deprecated.
        Description copied from interface: RdfLiteral
        An optional language tag. If this value is specified, RdfLiteral.getDatatype() returns rdf:langString.
        Specified by:
        getLanguage in interface RdfLiteral
        Returns:
        language tag or Optional.empty() if not set
      • hashCode

        public int hashCode()
        Deprecated.
        Specified by:
        hashCode in interface RdfValue
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Specified by:
        equals in interface RdfValue
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Deprecated.
        Specified by:
        toString in interface RdfValue
        Overrides:
        toString in class java.lang.Object
      • datatype

        private static final java.lang.String datatype​(java.lang.String langTag,
                                                       java.lang.String datatype)
        Deprecated.