@@ -473,15 +473,15 @@ def import_owl(owlfile, output, **args):
473
473
@click .argument ('rdfsfile' )
474
474
@output_option
475
475
@schema_name_option
476
- @click .option ('--input-type ' , '-I ' ,
476
+ @click .option ('--format ' , '-f ' ,
477
477
default = 'turtle' ,
478
478
help = "Input format, eg. turtle" )
479
479
@click .option ('--identifier' , '-I' , help = "Slot to use as identifier" )
480
480
@click .option ('--model-uri' , help = "Model URI prefix" )
481
481
@click .option ('--metamodel-mappings' ,
482
482
help = "Path to metamodel mappings YAML dictionary" )
483
483
@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 ):
485
485
"""
486
486
Import an RDFS schema to LinkML
487
487
@@ -494,7 +494,7 @@ def import_rdfs(rdfsfile, output, metamodel_mappings, **args):
494
494
with open (metamodel_mappings ) as f :
495
495
mappings_obj = yaml .safe_load (f )
496
496
sie = RdfsImportEngine (initial_metamodel_mappings = mappings_obj )
497
- schema = sie .convert (rdfsfile , ** args )
497
+ schema = sie .convert (rdfsfile , name = schema_name , ** args )
498
498
write_schema (schema , output )
499
499
500
500
@main .command ()
0 commit comments