Schema(name, version)
In-memory representation of a DataGraphs domain model schema.
Properties
| Name | Type | Description |
|---|---|---|
ALL_CLASSES | str | '__all_classes__' |
classes | list[dict] | The list of class definitions in the schema |
version | str | The schema version string |
Properties
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
name | str | <optional> | '' | Model name. Defaults to 'Domain Model' if empty. |
version | str | <optional> | '' | Schema version. Defaults to '1.0' if empty. |
Raises:
TypeError- If a dict is passed instead of keyword arguments.