Package org.obolibrary.robot
Class ConvertCommand
- java.lang.Object
-
- org.obolibrary.robot.ConvertCommand
-
- All Implemented Interfaces:
Command
public class ConvertCommand extends Object implements Command
Save ontology to a different format.- Author:
- James A. Overton
-
-
Field Summary
-
Fields inherited from interface org.obolibrary.robot.Command
global, missingFileError
-
-
Constructor Summary
Constructors Constructor Description ConvertCommand()
Initialize the command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandState
execute(CommandState state, String[] args)
Given an input state and command line arguments, save the ontology to a new format and return the state unchanged.String
getDescription()
Brief description of the command.String
getName()
Name of the command.org.apache.commons.cli.Options
getOptions()
Command-line options for the command.String
getUsage()
Command-line usage for the command.void
main(String[] args)
Handle the command-line and file operations for the ReasonOperation.
-
-
-
Method Detail
-
getName
public String getName()
Name of the command.
-
getDescription
public String getDescription()
Brief description of the command.- Specified by:
getDescription
in interfaceCommand
- Returns:
- description
-
getUsage
public String getUsage()
Command-line usage for the command.
-
getOptions
public org.apache.commons.cli.Options getOptions()
Command-line options for the command.- Specified by:
getOptions
in interfaceCommand
- Returns:
- options
-
main
public void main(String[] args)
Handle the command-line and file operations for the ReasonOperation.
-
execute
public CommandState execute(CommandState state, String[] args) throws Exception
Given an input state and command line arguments, save the ontology to a new format and return the state unchanged.Supported formats:
- OBO .obo
- RDFXML .owl
- Turtle .ttl
- OWLXML .owx
- Manchester .omn
- OWL Functional .ofn
- OboGraphs JSON .json
-
-