Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
OWL2YAMS
Commits
77da3d86a799
Commit
77da3d86
authored
Nov 25, 2021
by
É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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
owl2yams/__init__.py
View file @
77da3d86
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment