AshR2RML.Datatype.Registry (AshR2RML v26.8.22)

Copy Markdown View Source

Loss-aware built-in and custom datatype correspondence.

Unknown Ash types are never stringified implicitly. Custom semantic types are admitted as RDF datatypes only when their AshR2RML.Type contract is explicitly :literal; IRI, concept, value-object, and resource semantics must take their own R2RML term-map/resource path.

Summary

Functions

builtin_contracts()

@spec builtin_contracts() :: map()

resolve(ash_type, rdf_override \\ nil, storage_override \\ nil)

@spec resolve(term(), String.t() | nil, term() | nil) ::
  {:ok, AshR2RML.Mapping.Datatype.t()} | {:error, AshR2RML.Refusal.t()}

supported?(ash_type)

@spec supported?(term()) :: boolean()