Commit adde8e53 authored by Fabien Amarger's avatar Fabien Amarger
Browse files

feat: owl_model_to_yams returns a mapping from yams to owl

parent e16b693ade88
Pipeline #91061 failed with stages
in 2 minutes and 49 seconds
......@@ -192,7 +192,7 @@
cw_uri_type = schema.add_relation_type(RelationType("cw_uri"))
schema.add_relation_def(RelationDefinition(cwuri_entitytype, cw_uri_type, "String"))
return schema
return schema, entitytype_fragment_to_uri, relationtype_fragment_to_uri
def run_and_print_if_error(command):
......@@ -237,7 +237,11 @@
owl_model = Graph()
owl_model.parse(args.owl_model, format=args.parse_format)
schema = owl_model_to_yams(owl_model, args.instance_name)
(
schema,
entitytype_fragment_to_uri,
relationtype_fragment_to_uri,
) = owl_model_to_yams(owl_model, args.instance_name)
if args.dry_run:
print(serialize_to_python(schema))
......
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