Skip to content

Commit

Permalink
edit readme
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Jul 18, 2024
1 parent e88cee8 commit 0aa598a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 0 additions & 4 deletions cmem_plugin_shapes/plugin_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0aa598a

Please sign in to comment.