Commit 77da3d86 authored by Élodie Thiéblin's avatar Élodie Thiéblin
Browse files

feat: if 2 uris have same fragment ,add _bis

(capitalize difference only)
parent 30acc414a3c7
Pipeline #96188 failed with stages
in 51 seconds
......@@ -150,10 +150,7 @@
print(f"Warning: data property {datatype_property_uri} could not be parsed")
continue
if datatype_property_uri_fragment in schema:
raise ValueError(
f"Error: attribute {datatype_property_uri} already defined "
f"({relationtype_fragment_to_uri[datatype_property_uri_fragment]})"
)
datatype_property_uri_fragment = datatype_property_uri_fragment + "_bis"
schema.add_relation_type(RelationType(datatype_property_uri_fragment))
relationtype_fragment_to_uri[
datatype_property_uri_fragment
......
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