Models API#
Nodes#
Bases: StructuredNode
Base node type
Source code in machina/core/models/nodes/base.py
Bases: Base
Source code in machina/core/models/nodes/apk.py
Relationships#
Bases: BaseRelationship
Establish a node (some binary data) as being extracted from another node
Source code in machina/core/models/relationships/extracts.py
Bases: BaseRelationship
Establish a node (some binary data) as being extracted from another node
Utils#
db_ts_to_fs_fmt(ts)
#
resolve_db_node_cls(resolved_type)
#
resolve a OGM subclass given a resolved machina type (e.g. in types.json) if not resolved, we expect unresolved to be stored as a generic Artifact, so return that cls
Returns:
Type | Description |
---|---|
str
|
the type string to resolve to a class |