Class BooleanLiteral

    • Constructor Detail

      • BooleanLiteral

        protected BooleanLiteral​(boolean value)
        Creates an xsd:boolean typed literal with the specified value.
    • Method Detail

      • booleanValue

        public boolean booleanValue()
        Description copied from interface: Literal
        Returns the boolean value of this literal.
        Specified by:
        booleanValue in interface Literal
        Overrides:
        booleanValue in class SimpleLiteral
        Returns:
        The boolean value of the literal.
      • getCoreDatatype

        public CoreDatatype.XSD getCoreDatatype()
        Description copied from interface: Literal
        CoreDatatype is an interface for natively supported datatypes in RDF4J. This includes, among others, the XML Schema datatypes and rdf:langString. CoreDatatypes are implemented as enums and more performant and convenient to work with than IRI-based datatypes. The constant {@link CoreDatatype#NONE)} is used to represent a datatype that is not one of the supported core datatypes.
        Specified by:
        getCoreDatatype in interface Literal
        Overrides:
        getCoreDatatype in class SimpleLiteral
        Returns:
        The CoreDatatype or {@link CoreDatatype#NONE)} if the datatype matches none of the core datatypes. This method will not return null.