Skip to content
Snippets Groups Projects
Commit 08d32cb3bc08 authored by Fabien Amarger's avatar Fabien Amarger
Browse files

refactor(init): Define the owl_model_to_yams

parent cb9e230dd43e
No related branches found
No related tags found
1 merge request!1Add-ci
......@@ -29,10 +29,7 @@
return url.path.split("/")[-1]
def main():
owl_model = Graph()
owl_model.parse("./model.owl", format="turtle")
def owl_model_to_yams(owl_model: Graph) -> Schema:
# 0. Create a new YAMS Schema
schema = Schema("LOUTRE")
register_base_types(schema)
......@@ -79,4 +76,13 @@
)
)
return schema
def main():
owl_model = Graph()
owl_model.parse("./model.owl", format="turtle")
schema = owl_model_to_yams(owl_model)
print(serialize_to_python(schema))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment