From f893258ba4aecd8d724a29858b230803cebe26ed Mon Sep 17 00:00:00 2001 From: Alejandro Villar Date: Wed, 3 Jul 2024 09:09:51 +0200 Subject: [PATCH] Fix remote cache regression --- ogc/bblocks/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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