RDF.XSD.Boolean.fn_not

You're seeing just the function fn_not, go back to RDF.XSD.Boolean module for more information.

Specs

fn_not(input_value()) :: t() | nil

Returns RDF.XSD.true if the effective boolean value of the given argument is RDF.XSD.false, or RDF.XSD.false if it is RDF.XSD.true.

Otherwise it returns nil.

Examples

iex> RDF.XSD.Boolean.fn_not(RDF.XSD.true)
RDF.XSD.false
iex> RDF.XSD.Boolean.fn_not(RDF.XSD.false)
RDF.XSD.true

iex> RDF.XSD.Boolean.fn_not(true)
RDF.XSD.false
iex> RDF.XSD.Boolean.fn_not(false)
RDF.XSD.true

iex> RDF.XSD.Boolean.fn_not(42)
RDF.XSD.false
iex> RDF.XSD.Boolean.fn_not("")
RDF.XSD.true

iex> RDF.XSD.Boolean.fn_not(nil)
nil

see https://www.w3.org/TR/xpath-functions/#func-not