RDF.ex v0.7.1 RDF.LangString View Source
RDF.Datatype
for RDF langString.
Link to this section Summary
Functions
Checks if a language tagged string literal or language tag matches a language range.
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
match_language?(language_tag, language_range)
View Sourcematch_language?(RDF.Literal.t() | String.t(), String.t()) :: boolean()
Checks if a language tagged string literal or language tag matches a language range.
The check is performed per the basic filtering scheme defined in
RFC4647 section 3.3.1.
A language range is a basic language range per Matching of Language Tags in
RFC4647 section 2.1.
A language range of "*"
matches any non-empty language-tag string.
Link to this function
new(value, opts \\ %{})
View Sourcenew(any(), map() | keyword()) :: RDF.Literal.t()