RDF.Literal.new
You're seeing just the function
new
, go back to RDF.Literal module for more information.
Specs
Creates a new RDF.Literal
of the given value and tries to infer an appropriate XSD datatype.
See coerce/1
for applied mapping of Elixir types to XSD datatypes.
Note: The RDF.literal
function is a shortcut to this function.
Examples
iex> RDF.Literal.new(42)
%RDF.Literal{literal: %RDF.XSD.Integer{value: 42}}
Specs
Creates a new RDF.Literal
with the given datatype or language tag.