buildingmotif.database.tables#

Classes

DBLibrary(**kwargs)

A Library is a distributable collection of Templates and Shapes.

DBModel(**kwargs)

A Model is a metadata model of all or part of a building.

DBShapeCollection(**kwargs)

A ShapeCollection is a collection of shapes, which are used to validate parts of a model.

DBTemplate(**kwargs)

A Template is used to generate content for a model.

DepsAssociation(**kwargs)

Many-to-many relationship between dependant templates.

class DBModel(**kwargs)[source]#

A Model is a metadata model of all or part of a building.

id: Mapped[int]#
name: Mapped[str]#
description: Mapped[str]#
graph_id: Mapped[str]#
manifest_id: Mapped[int]#
manifest: DBShapeCollection#
class DBShapeCollection(**kwargs)[source]#

A ShapeCollection is a collection of shapes, which are used to validate parts of a model.

id: Mapped[int]#
graph_id: Mapped[str]#
class DBLibrary(**kwargs)[source]#

A Library is a distributable collection of Templates and Shapes.

id: Mapped[int]#
name: Mapped[str]#
templates: Mapped[List[DBTemplate]]#
shape_collection_id#
shape_collection: DBShapeCollection#
class DepsAssociation(**kwargs)[source]#

Many-to-many relationship between dependant templates.

id: Mapped[int]#
dependant_id: Mapped[int]#
dependee_id: Mapped[int]#
args: Mapped[Dict[str, str]]#
class DBTemplate(**kwargs)[source]#

A Template is used to generate content for a model.

id: Mapped[int]#
name: Mapped[str]#
body_id: Mapped[str]#
optional_args: Mapped[List[str]]#
library_id: Mapped[int]#
library: Mapped[DBLibrary]#
dependencies: Mapped[List[DBTemplate]]#
dependants: Mapped[List[DBTemplate]]#