AshR2RML.Mapping (AshR2RML v26.8.22)

Copy Markdown View Source

Canonical public semantic mapping IR.

All Ash-first and ontology-first entry paths normalize into these structures before R2RML serialization. Renderers are forbidden from rediscovering Ash relationships, storage columns, semantic identities, or datatype decisions.

Summary

Functions

mapping_identity(resource)

@spec mapping_identity(AshR2RML.Mapping.Resource.t()) :: String.t()

normalize(resource)

stable_subject_identity?(resource)

@spec stable_subject_identity?(AshR2RML.Mapping.Resource.t()) :: boolean()

subject_identity_columns(arg1)

@spec subject_identity_columns(AshR2RML.Mapping.Resource.t()) :: [String.t()]

template_fields(template)

@spec template_fields(String.t()) :: [String.t()]

validate(resource)

@spec validate(AshR2RML.Mapping.Resource.t() | AshR2RML.Mapping.Bundle.t()) ::
  :ok | {:error, [AshR2RML.Refusal.t()]}