buildingmotif.ingresses.base#
Classes
Generates a Graph from an underlying metadata source or RecordIngressHandler |
|
Abstract superclass for Record/Graph ingress handlers |
|
|
Represents a piece of metadata from some metadata ingress |
Generates Record instances from an underlying metadata source |
- class Record(rtype: str, fields: dict)[source]#
Represents a piece of metadata from some metadata ingress
- rtype: str#
- fields: dict#
- class RecordIngressHandler(bm: BuildingMOTIF)[source]#
Generates Record instances from an underlying metadata source
- property records: List[Record]#
Generates (then caches) a list of Records from an underlying data source
- dump(path: PathLike)[source]#
Takes the contents of the records of this handler and writes them to a JSON file
- Parameters:
path (PathLike) – path to write output file to
- class GraphIngressHandler(bm: BuildingMOTIF)[source]#
Generates a Graph from an underlying metadata source or RecordIngressHandler