Skip to content

Commit

Permalink
Fixes in image path
Browse files Browse the repository at this point in the history
  • Loading branch information
WerLaj committed Feb 5, 2024
1 parent 9548c33 commit 9fb18f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg_api/core/namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PKGPrefixes(Enum):
DCAT = "http://www.w3.org/ns/dcat#"
DOAP = "http://usefulinc.com/ns/doap#"
EVENT = "http://purl.org/NET/c4dm/event.owl#"
EX = "http://example.com#"
EX = "http://example.org/pkg#"
FOAF = "http://xmlns.com/foaf/0.1/"
GEO = "http://www.w3.org/2003/01/geo/wgs84_pos#"
OWL = "http://www.w3.org/2002/07/owl#"
Expand Down
4 changes: 2 additions & 2 deletions pkg_api/pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def visualize_graph(self) -> str:
owner_name = ""

for _, namespace in PKGPrefixes.__members__.items():
if namespace.value in str(self._owner_uri):
owner_name = self._owner_uri.replace(str(namespace.value), "")
if namespace.value.replace("#", "") in str(self._owner_uri):
owner_name = self._owner_uri.replace(str(namespace.value.replace("#", "")), "")

path = self._visualization_path + "/" + owner_name + ".png"

Expand Down

0 comments on commit 9fb18f6

Please sign in to comment.