Skip to content

Commit da938c5

Browse files
committed
Process profileOf alongside dependencies.
1 parent d4c9a62 commit da938c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ogc/bblocks/models.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,12 @@ def find_dependencies(self, identifier: str, seen: tuple[str] = None) -> list[di
657657
if d not in seen:
658658
dependencies.extend(self.find_dependencies(d, seen=seen))
659659

660+
isProfileOf = metadata.get('isProfileOf', metadata.get('profileOf'))
661+
if isProfileOf:
662+
for d in isProfileOf if isinstance(isProfileOf, list) else [isProfileOf]:
663+
if d not in seen:
664+
dependencies.extend(self.find_dependencies(d, seen=seen))
665+
660666
return dependencies
661667

662668
def get_inherited_shacl_shapes(self, identifier: str) -> dict[str, set[str | Path]]:

0 commit comments

Comments
 (0)