ShEx.ShExC (ShEx.ex v0.1.4) View Source

Functions for working with the ShExC format.

ShExC is the standard-format for the definition of ShEx schemas.

See http://shex.io/shex-primer/ for an introduction.

Link to this section Summary

Functions

Reads a ShEx.Schema from a string with a ShExC schema definition.

Reads a ShEx.Schema from a string with a ShExC schema definition and fails in the error case.

Link to this section Functions

Link to this function

decode(content, opts \\ [])

View Source

Reads a ShEx.Schema from a string with a ShExC schema definition.

Returns an ok resp. error tuple.

Options

  • base: the base IRI to be used for relative IRIs in the schema definition
Link to this function

decode!(content, opts \\ [])

View Source

Reads a ShEx.Schema from a string with a ShExC schema definition and fails in the error case.

Same as decode/2 but returns the schema directly (not in an ok tuple).