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

Functions for working with the ShExJ format.

Link to this section Summary

Functions

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

Reads a ShEx.Schema from a string with a ShExJ 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 ShExJ schema definition.

Returns an ok resp. error tuple.

Link to this function

decode!(content, opts \\ [])

View Source

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

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