Skip to content

Commit

Permalink
Merge branch 'develop' into guideline36-section4
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewSteen committed Sep 18, 2024
2 parents c22fedc + 39087f9 commit f0647d5
Show file tree
Hide file tree
Showing 14 changed files with 82,755 additions and 25,802 deletions.
53,212 changes: 30,520 additions & 22,692 deletions buildingmotif/libraries/brick/Brick.ttl

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion libraries/ZonePAC/shapes.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@prefix : <urn:zonepac-app/> .

<urn:zonepac-app> a owl:Ontology ;
owl:imports <https://brickschema.org/schema/1.3/Brick> ;
owl:imports <https://brickschema.org/schema/1.4/Brick> ;
.

:zonepac-zone a sh:NodeShape ;
Expand Down
47,742 changes: 47,742 additions & 0 deletions libraries/brick/Brick.ttl

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion libraries/sites/medium-office/contraints.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@prefix bldg: <urn:medium-office/> .

: a owl:Ontology ;
owl:imports <https://brickschema.org/schema/1.3/Brick> ;
owl:imports <https://brickschema.org/schema/1.4/Brick> ;
owl:imports <https://nrel.gov/BuildingMOTIF/constraints> ;
owl:imports <urn:ashrae/g36> ;
.
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/dataclasses/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_validate_model_manifest(clean_building_motif, shacl_engine):
m = Model.create(name="https://example.com", description="a very good model")
m.graph.add((URIRef("https://example.com/vav1"), A, BRICK.VAV))

Library.load(ontology_graph="tests/unit/fixtures/Brick1.3rc1-equip-only.ttl")
Library.load(ontology_graph="tests/unit/fixtures/Brick.ttl")
lib = Library.load(ontology_graph="tests/unit/fixtures/shapes/shape1.ttl")
assert lib is not None

Expand Down Expand Up @@ -134,7 +134,7 @@ def test_validate_model_manifest_with_imports(clean_building_motif, shacl_engine
def test_validate_model_explicit_shapes(clean_building_motif, shacl_engine):
clean_building_motif.shacl_engine = shacl_engine
# load library
Library.load(ontology_graph="tests/unit/fixtures/Brick1.3rc1-equip-only.ttl")
Library.load(ontology_graph="tests/unit/fixtures/Brick.ttl")
lib = Library.load(ontology_graph="tests/unit/fixtures/shapes/shape1.ttl")
assert lib is not None

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/dataclasses/test_shape_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_get_shapes_of_domain(clean_building_motif):


def test_shape_collection_resolve_imports(clean_building_motif):
Library.load(ontology_graph="tests/unit/fixtures/Brick1.3rc1-equip-only.ttl")
Library.load(ontology_graph="tests/unit/fixtures/Brick.ttl")
Library.load(ontology_graph="constraints/constraints.ttl")
lib = Library.load(ontology_graph="tests/unit/fixtures/shapes/import_test.ttl")
sc = lib.get_shape_collection()
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/dataclasses/test_template_dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,15 @@ def test_remove_depedancy_does_not_exist(clean_building_motif):


def test_get_library_dependencies(clean_building_motif):
Library.load(ontology_graph="tests/unit/fixtures/Brick1.3rc1-equip-only.ttl")
Library.load(ontology_graph="tests/unit/fixtures/Brick.ttl")
lib = Library.load(directory="tests/unit/fixtures/sample-lib-1")
sf_templ = lib.get_template_by_name("fan")
libs = sf_templ.library_dependencies()
assert len(libs) == 2
assert all(map(lambda x: isinstance(x, Library), libs))
assert {str(lib.name) for lib in libs} == {
"sample-lib-1",
"https://brickschema.org/schema/1.3/Brick",
"https://brickschema.org/schema/1.4/Brick",
}


Expand Down
Loading

0 comments on commit f0647d5

Please sign in to comment.