AshR2RML.SemanticType.Provider behaviour (AshR2RML v26.8.22)

Copy Markdown View Source

Extension point for public ontology/application-profile value spaces.

Providers interpret public terms. They do not write files, apply migrations, or grant execution authority.

Summary

Callbacks

catalogue()

@callback catalogue() :: [String.t()]

id()

@callback id() :: atom()

prefixes()

@callback prefixes() :: map()

resolve(t, keyword)

@callback resolve(
  String.t(),
  keyword()
) :: {:ok, AshR2RML.SemanticType.t()} | :unknown | {:error, term()}