Commit 227b6824 authored by Fabien Amarger's avatar Fabien Amarger
Browse files

fix(relation): Add a "_bis" if relation already exists

This is the behavior for dataproperty and class, then let's use
the same strategy here
parent 7ad4a2141f17
Pipeline #96875 passed with stages
in 56 seconds
......@@ -241,10 +241,7 @@
print(f"Warning: object property {object_property_uri} could not be parsed")
if object_property_uri_fragment in schema:
raise ValueError(
f"Error: relation {object_property_uri} already defined "
object_property_uri_fragment += "_bis"
relationtype_fragment_to_uri[object_property_uri_fragment] = object_property_uri
all_types = list(entitytype_fragment_to_uri.keys())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment