RDF.ex v0.7.1 RDF.Decimal View Source
RDF.Datatype
for XSD decimal.
Link to this section Summary
Functions
The number of digits in the XML Schema canonical form of the literal value.
The number of digits to the right of the decimal point in the XML Schema canonical form of the literal value.
Link to this section Types
Link to this section Functions
Link to this function
build_literal(value, lexical, opts)
View Sourcebuild_literal(RDF.Literal.literal_value() | nil, String.t() | nil, map()) :: RDF.Literal.t()
Link to this function
build_literal_by_value(value, opts)
View Sourcebuild_literal_by_value(any(), map()) :: RDF.Literal.t()
Link to this function
digit_count(literal)
View Sourcedigit_count(RDF.Literal.t()) :: non_neg_integer()
The number of digits in the XML Schema canonical form of the literal value.
Link to this function
fraction_digit_count(literal)
View Sourcefraction_digit_count(RDF.Literal.t()) :: non_neg_integer()
The number of digits to the right of the decimal point in the XML Schema canonical form of the literal value.
Link to this function
new(value, opts \\ %{})
View Sourcenew(any(), map() | keyword()) :: RDF.Literal.t()