@@ -71,6 +71,8 @@ constraints = Library.load(ontology_graph="../../buildingmotif/libraries/constra
7171
7272# load libraries excluded from the python package (available from the repository)
7373brick = Library.load(ontology_graph="../../libraries/brick/Brick.ttl")
74+ Library.load(ontology_graph="../../libraries/qudt/unit.ttl")
75+ Library.load(ontology_graph="../../libraries/qudt/quantitykind.ttl")
7476g36 = Library.load(directory="../../libraries/ashrae/guideline36")
7577```
7678
@@ -80,7 +82,7 @@ BuildingMOTIF organizes Shapes into `Shape Collections`. The shape collection as
8082
8183``` {code-cell}
8284# pass a list of shape collections to .validate()
83- validation_result = model.validate([brick.get_shape_collection()])
85+ validation_result = model.validate([brick.get_shape_collection()], error_on_missing_imports=False )
8486print(f"Model is valid? {validation_result.valid}")
8587```
8688
@@ -243,7 +245,7 @@ to load in the Brick and Guideline36 libraries at the top of this tutorial.
243245
244246
245247``` {code-cell}
246- validation_result = model.validate()
248+ validation_result = model.validate(error_on_missing_imports=False )
247249print(f"Model is valid? {validation_result.valid}")
248250
249251# print reasons
@@ -269,7 +271,7 @@ shape_collections = [
269271]
270272
271273# pass a list of shape collections to .validate()
272- validation_result = model.validate(shape_collections)
274+ validation_result = model.validate(shape_collections, error_on_missing_imports=False )
273275print(f"Model is valid? {validation_result.valid}")
274276
275277# print reasons
@@ -306,7 +308,7 @@ print(model.graph.serialize())
306308We can see that the heating coil was added to the model and connected to the AHU so let's check if the manifest validation failure was fixed.
307309
308310``` {code-cell}
309- validation_result = model.validate()
311+ validation_result = model.validate(error_on_missing_imports=False )
310312print(f"Model is valid? {validation_result.valid}")
311313
312314# print reasons
@@ -373,7 +375,7 @@ print(f"Model is valid? {validation_result.valid}")
373375Now we can run validation to see if our AHU is ready to run the "single zone AHU" control sequence:
374376
375377``` {code-cell}
376- validation_result = model.validate()
378+ validation_result = model.validate(error_on_missing_imports=False )
377379print(f"Model is valid? {validation_result.valid}")
378380```
379381
0 commit comments