Skip to content

Commit

Permalink
fix shape names
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Jul 19, 2024
1 parent cc6e5e9 commit f247e9a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmem_plugin_shapes/plugin_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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: <http://www.w3.org/2002/07/owl#>
INSERT DATA {{
GRAPH <https://vocab.eccenca.com/shacl/> {{
<https://vocab.eccenca.com/shacl/> owl:imports
<https://vocab.eccenca.com/shacl/> <http://www.w3.org/2002/07/owl#imports>
<{self.shapes_graph_iri}> .
}}
}}
Expand Down

0 comments on commit f247e9a

Please sign in to comment.