Version: 0.0.9
agrag.schema
Load, dump, and store schemas in a notation that is short to write.
Modules:
- canonical – The canonical dict form of a GraphSchema.
- errors – Errors that the schema loader raises.
- formats – Import and export schemas in other formats.
- loader – Load a GraphSchema from a dict, a label list, JSON, YAML, a path or a preset.
- shorthand – Readers that turn every accepted notation into canonical dicts.
- stored – Read, write, and compare the schema stored in a graph.
Classes:
- SchemaChangeError – A new schema removes or tightens what the stored schema allows.
- SchemaError – The base class for every schema-loader error.
- SchemaIssue – One problem found in a schema source.
- SchemaLoadError – A schema source is invalid.
- StaleSchemaError – The stored schema changed after a writer started using an older one.
- StoredSchemaError – A graph's stored schema is missing or a change to it was refused.
- StoredSchemaMissingError – The graph has no stored schema. Open it with
Graph.openfirst. - UnknownSchemaNameError – A read named an entity label or relation type the schema does not declare.
Functions:
- dump_schema – Return the canonical dict form of a schema.
- load_schema – Load a schema from any accepted source.