RDF.ex v0.7.0 RDF.LangString View Source

RDF.Datatype for RDF langString.

Link to this section Summary

Link to this section Functions

Link to this function

build_literal(value, lexical, opts)

View Source
Link to this function

build_literal_by_lexical(lexical, opts)

View Source
Link to this function

build_literal_by_value(value, opts)

View Source
Link to this function

greater_than?(literal1, literal2)

View Source
Link to this function

less_than?(literal1, literal2)

View Source
Link to this function

match_language?(language_tag, language_range)

View Source

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.

see https://www.w3.org/TR/sparql11-query/#func-langMatches

Link to this function

new!(value, opts \\ %{})

View Source