NREL / BuildingMOTIF

Building Metadata OnTology Interoperability Framework (BuildingMOTIF). For models, see https://models.open223.info/
https://buildingmotif.readthedocs.io/
Other
50 stars 7 forks source link

Add CompiledModel class which can generate DataFrames and Tables #359

Open gtfierro opened 3 weeks ago

gtfierro commented 3 weeks ago

This changes Model.compile so it returns a new CompiledModel class. This is not stored in the database; it is an ephemeral class which stores the compiled model and provides some convenience methods. In particular, it can generate DataFrames or SQL tables from SHACL shapes.

See example here

@TShapinsky @MatthewSteen what do you think of the abstraction? Once we figure out what this should look like then I can propagate the changes to the rest of the codebase and add tests

gtfierro commented 2 weeks ago

From dev discussion: