Skip to content

Commit

Permalink
FIX: make sure wiki links are serialize correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Heist committed Jan 4, 2021
1 parent 093bc04 commit 16cfbee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions impl/util/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def _resource_to_string(resource: str) -> str:
prefix = resource[:resource.rfind('/ontology/') + len('/ontology/')]
elif '/resource/' in resource:
prefix = resource[:resource.rfind('/resource/') + len('/resource/')]
elif '/wiki/' in resource:
prefix = resource[:resource.rfind('/wiki/') + len('/wiki/')]
else:
prefix = resource[:resource.rfind('/') + 1]
res_name = resource[len(prefix):]
Expand Down

0 comments on commit 16cfbee

Please sign in to comment.