public class OboOntologyReleaseRunner extends ReleaseRunnerFileTools
STAGING_DIRECTORY_NAME
Constructor and Description |
---|
OboOntologyReleaseRunner(OortConfiguration oortConfig,
File base,
List<LogHandler> handlers) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowFileOverwrite(File file)
Hook method to handle an unexpected file overwrite request.
|
protected File |
checkNew(File file)
Check whether the file is new.
|
boolean |
createRelease()
Create a release, use the
OortConfiguration instance specified the in constructor. |
static void |
main(String[] args) |
public OboOntologyReleaseRunner(OortConfiguration oortConfig, File base, List<LogHandler> handlers) throws IOException
IOException
protected File checkNew(File file) throws IOException
IOException
,
if the file already exists and OortConfiguration.isAllowFileOverWrite()
is not set to true.file
- IOException
protected boolean allowFileOverwrite(File file) throws IOException
file
- IOException
public static void main(String[] args)
public boolean createRelease() throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, FileNotFoundException, org.semanticweb.owlapi.model.OWLOntologyStorageException, OboOntologyReleaseRunnerCheckException, org.obolibrary.obo2owl.OboInOwlCardinalityTools.AnnotationCardinalityException, org.obolibrary.oboformat.parser.OBOFormatParserException
OortConfiguration
instance specified the in constructor.IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
FileNotFoundException
org.semanticweb.owlapi.model.OWLOntologyStorageException
OboOntologyReleaseRunnerCheckException
org.obolibrary.obo2owl.OboInOwlCardinalityTools.AnnotationCardinalityException
org.obolibrary.oboformat.parser.OBOFormatParserException
Copyright © 2010–2016. All rights reserved.