public class RemoveCommand extends Object implements Command
global, missingFileError
Constructor and Description |
---|
RemoveCommand()
Initialze the command.
|
Modifier and Type | Method and Description |
---|---|
CommandState |
execute(CommandState state,
String[] args)
Given an input state and command line arguments, create a new ontology with removed axioms and
return a new state.
|
String |
getDescription()
Brief description of the command.
|
String |
getName()
Name of the command.
|
protected static Set<org.semanticweb.owlapi.model.OWLObject> |
getObjects(org.apache.commons.cli.CommandLine line,
IOHelper ioHelper,
org.semanticweb.owlapi.model.OWLOntology ontology,
List<List<String>> selectGroups)
Given a command line, an IOHelper, an ontology, and a list of select groups, return the objects
from the ontology based on the select groups.
|
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.
|
public String getName()
public String getDescription()
getDescription
in interface Command
public String getUsage()
public org.apache.commons.cli.Options getOptions()
getOptions
in interface Command
public void main(String[] args)
public CommandState execute(CommandState state, String[] args) throws Exception
protected static Set<org.semanticweb.owlapi.model.OWLObject> getObjects(org.apache.commons.cli.CommandLine line, IOHelper ioHelper, org.semanticweb.owlapi.model.OWLOntology ontology, List<List<String>> selectGroups) throws Exception
line
- CommandLine to get options fromioHelper
- IOHelper to get IRIsontology
- OWLOntology to get objects fromselectGroups
- List of select groups (lists of select options)Exception
- on issue getting terms or processing selectsCopyright © 2015–2020. All rights reserved.