RDF.ex v0.4.0 RDF.Boolean View Source
RDF.Datatype
for XSD boolean.
Link to this section Summary
Functions
Produces the canonical form of a RDF.Literal
Produces the lexical form of a value
Converts a value into a proper native value
The IRI of the datatype
Produces the lexical form of an invalid value of a typed Literal
Produces the lexical form of a RDF.Literal
Determines if the value of a RDF.Literal
is a member of lexical value space of its datatype
Link to this section Functions
Produces the canonical form of a RDF.Literal
.
Callback implementation for RDF.Datatype.canonical/1
.
Produces the lexical form of a value.
Callback implementation for RDF.Datatype.canonical_lexical/1
.
Converts a value into a proper native value.
If an invalid value is given an implementation should call super
, which
by default currently just returns nil
.
Note: If a value is valid is determined by the lexical space of the implemented
datatype, not by the Elixir semantics. For example, although 42
is a falsy value according to the Elixir semantics, this is not an element
of the lexical value space of an xsd:boolean
, so the RDF.Boolean
implementation of this datatype calls super
.
Callback implementation for RDF.Datatype.convert/2
.
The IRI of the datatype.
Callback implementation for RDF.Datatype.id/0
.
Produces the lexical form of an invalid value of a typed Literal.
The default implementation of the _using__
macro just returns to_string
representation of the value.
Callback implementation for RDF.Datatype.invalid_lexical/1
.
Produces the lexical form of a RDF.Literal
.
Callback implementation for RDF.Datatype.lexical/1
.
Determines if the value of a RDF.Literal
is a member of lexical value space of its datatype.
Callback implementation for RDF.Datatype.valid?/1
.