From f247e9adc5986e77a7567bbd834910e5325ce648 Mon Sep 17 00:00:00 2001 From: muddymudskipper Date: Fri, 19 Jul 2024 16:40:08 +0100 Subject: [PATCH] fix shape names --- cmem_plugin_shapes/plugin_shapes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmem_plugin_shapes/plugin_shapes.py b/cmem_plugin_shapes/plugin_shapes.py index ee60557..4b6aa46 100644 --- a/cmem_plugin_shapes/plugin_shapes.py +++ b/cmem_plugin_shapes/plugin_shapes.py @@ -147,9 +147,9 @@ def get_name(self, iri: str) -> str: title = title[len(prefix) :] else: title = title.split("_", 1)[1] + title += f" ({prefix})" else: title = prefix - title += f" ({prefix})" return title def init_shapes_graph(self) -> Graph: @@ -244,10 +244,9 @@ def make_shapes(self, shapes_graph: Graph) -> Graph: def import_shapes_graph(self) -> None: """Add shapes IRI to owl:imports in CMEM Shapes Catalog""" query = f""" - PREFIX owl: INSERT DATA {{ GRAPH {{ - owl:imports + <{self.shapes_graph_iri}> . }} }}