diff --git a/README.md b/README.md index 80fd918..c285df8 100644 --- a/README.md +++ b/README.md @@ -21,11 +21,6 @@ overwritten with the result. If disabled and such a graph exists, the plugin exe If enabled, the resulting SHACL shapes graph is imported with `owl:imports` in the CMEM Shapes Catalog. -### Fetch namespace prefixes from prefix.cc - -If enabled, attempt to fetch namespace prefixes from [http://prefix.cc](http://prefix.cc) instead of from the local database. -If this fails, fall back on local database. - [![eccenca Corporate Memory](https://img.shields.io/badge/eccenca-Corporate%20Memory-orange)](https://documentation.eccenca.com) diff --git a/cmem_plugin_shapes/plugin_shapes.py b/cmem_plugin_shapes/plugin_shapes.py index b83a6a7..1f0db4f 100644 --- a/cmem_plugin_shapes/plugin_shapes.py +++ b/cmem_plugin_shapes/plugin_shapes.py @@ -127,16 +127,12 @@ def get_name(self, iri: str) -> str: ) title_json = loads(response) title: str = title_json["title"] - try: namespace, resource = split_uri(iri) except ValueError: - self.log.warning(f"Cannot split URI <{iri}>.") namespace = iri - if namespace in self.prefixes: title += f" ({self.prefixes[namespace]}:)" - return title def init_shapes_graph(self) -> Graph: