AshR2RML.Ingestion (AshR2RML v26.8.22)

Copy Markdown View Source

RDF/Turtle + SHACL ingestion adapter for the ontology-first compiler.

The adapter parses a real RDF graph with RDF.ex, extracts closed SHACL node and property shapes, and manufactures the normalized application-profile map consumed by AshR2RML.Admission. It deliberately does not reason over arbitrary OWL. Missing closure information is returned as a typed refusal.

Ash-specific relational hints live in the neutral AshR2RML vocabulary: https://seanchatmangpt.github.io/ash_r2rml#.

Summary

Functions

compile_turtle(turtle, opts \\ [])

@spec compile_turtle(
  String.t(),
  keyword()
) ::
  {:ok, AshR2RML.Compilation.t()}
  | {:error, AshR2RML.Compilation.t() | [AshR2RML.Refusal.t()]}

from_graph(graph, opts \\ [])

@spec from_graph(
  RDF.Data.Source.t(),
  keyword()
) :: {:ok, map()} | {:error, [AshR2RML.Refusal.t()]}

from_turtle(turtle, opts \\ [])

@spec from_turtle(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, [AshR2RML.Refusal.t()]}