Skip to content

Commit e3340f8

Browse files
committed
no more brick-full
1 parent da193b4 commit e3340f8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

buildingmotif/dataclasses/shape_collection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,8 @@ def get_varname(shape):
472472
pshape,
473473
f"?{get_varname(pshape)}".replace(" ", "_"),
474474
)
475-
path = shacl_path_to_sparql_path(graph, graph.value(pshape, SH.path))
475+
shape_graph = ShapesGraph(graph)
476+
path = shacl_path_to_sparql_path(shape_graph, graph.value(pshape, SH.path))
476477
qMinCount = graph.value(pshape, SH.qualifiedMinCount) or 0
477478

478479
pclass = graph.value(

tests/unit/dataclasses/test_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def test_model_compile(bm: BuildingMOTIF, shacl_engine):
261261
)
262262

263263
brick = Library.load(
264-
ontology_graph="libraries/brick/Brick-full.ttl", infer_templates=False
264+
ontology_graph="libraries/brick/Brick.ttl", infer_templates=False
265265
)
266266

267267
compiled_model = small_office_model.compile([brick.get_shape_collection()])

0 commit comments

Comments
 (0)