AshR2RML.Ggen.TTL (AshR2RML v26.8.22)

Copy Markdown View Source

Deterministic ggen TTL projection manufactured from canonical AshR2RML mappings.

This reverses the old maintenance direction for cloud ggen. Ash resources and their admitted AshR2RML metadata are the maintained source. The ontology, operational SHACL shapes, and R2RML mapping are generated projections of the same canonical AshR2RML.Mapping.Bundle.

No filesystem actuation occurs here. Callers receive a path/content graph that ggen may materialize under its own authority and receipt boundary.

Summary

Functions

Compile Ash resources and emit the complete TTL input graph expected by ggen.

Render the RDF vocabulary projection represented by an AshR2RML mapping bundle.

Functions

emit(resources_or_bundle)

@spec emit(module() | [module()] | AshR2RML.Mapping.Bundle.t()) ::
  {:ok, map()} | {:error, term()}

Compile Ash resources and emit the complete TTL input graph expected by ggen.

ontology(bundle)

@spec ontology(AshR2RML.Mapping.Bundle.t()) :: {:ok, String.t()}

Render the RDF vocabulary projection represented by an AshR2RML mapping bundle.