diff --git a/ogc/bblocks/models.py b/ogc/bblocks/models.py index d75ea03..8a9a7c4 100644 --- a/ogc/bblocks/models.py +++ b/ogc/bblocks/models.py @@ -194,7 +194,8 @@ def ontology_graph(self) -> Graph | None: if 'ontology_graph' not in self._lazy_properties: if not self.ontology.exists: return None - self._lazy_properties['ontology_graph'] = Graph().parse(self.ontology.value, self.remote_cache_dir) + contents = load_file(self.ontology.value, self.remote_cache_dir) + self._lazy_properties['ontology_graph'] = Graph().parse(data=contents) return self._lazy_properties['ontology_graph'] @property