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
5333d19bc015
Commit
5333d19b
authored
Oct 26, 2021
by
Fabien Amarger
Browse files
fix(app): Define ETYPE_URI as local variable
parent
8701157f6aa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
owl2yams/__init__.py
View file @
5333d19b
...
...
@@ -17,7 +17,6 @@
)
ETYPE_URI
=
{}
LITERAL_TYPES_TO_YAMS_TYPES
=
{
RDFS
.
Literal
:
"String"
,
XSD
.
string
:
"String"
,
...
...
@@ -54,6 +53,7 @@
def
owl_model_to_yams
(
owl_model
:
Graph
,
instance_name
:
str
)
->
Schema
:
ETYPE_URI
=
{}
# 0. Create a new YAMS Schema
schema
=
Schema
(
instance_name
)
register_base_types
(
schema
)
...
...
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