Skip to content

Commit 49c78ac

Browse files
committed
Correctly pass --schema-name flag to importer
1 parent d1ba4b1 commit 49c78ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schema_automator/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def import_owl(owlfile, output, **args):
481481
@click.option('--metamodel-mappings',
482482
help="Path to metamodel mappings YAML dictionary")
483483
@click.option('--output', '-o', help="Path to saved yaml schema")
484-
def import_rdfs(rdfsfile, output, metamodel_mappings, **args):
484+
def import_rdfs(rdfsfile: str, output: str, metamodel_mappings: str, schema_name: str, **args):
485485
"""
486486
Import an RDFS schema to LinkML
487487
@@ -494,7 +494,7 @@ def import_rdfs(rdfsfile, output, metamodel_mappings, **args):
494494
with open(metamodel_mappings) as f:
495495
mappings_obj = yaml.safe_load(f)
496496
sie = RdfsImportEngine(initial_metamodel_mappings=mappings_obj)
497-
schema = sie.convert(rdfsfile, **args)
497+
schema = sie.convert(rdfsfile, name=schema_name, **args)
498498
write_schema(schema, output)
499499

500500
@main.command()

0 commit comments

Comments
 (0)