Connect ShEx
Keep the four assertions in every shape constraint from dying in a hand copy.
Import Shape Expressions and CoreModels records predicates, value constraints, cardinalities, and nested shapes as governed structure. Generating JSON Schema or SQL from ShEx no longer throws away IRIs, exact cardinalities, or datatype vocabularies by accident.
A single ShEx constraint is four machine-checkable facts: a globally resolvable predicate, a vocabulary datatype, exact cardinality, and optionally a nested shape. Hand-copied “field lists” keep the local name and drop the rest.
ShEx is denser than it looks. Teams translating shapes into application schemas flatten IRIs into strings and {1,1} into “required” with no record of the loss.
CoreModels decodes ShEx into the neutral model and encodes out with a ledger. Re-import the authoritative shapes and audit the generated schemas so a cardinality change in ShExC is a CI finding, not a silent API change.
Use this when RDF shapes are the contract and JSON/SQL are the runtime - and you need both to stay honest about what they cannot express.
ShExC / ShExJ · shex.io
14-day free trial. Builder $49/mo after the trial. Cancel any time.