owltools.ontologyrelease
Class OboOntologyReleaseRunner
java.lang.Object
owltools.ontologyrelease.OboOntologyReleaseRunner
public class OboOntologyReleaseRunner
- extends Object
This class is a command line utility which builds an ontology release. The
command line argument --h or --help provides usage documentation of this
utility. This tool called through bin/ontology-release-runner.
- Author:
- Shahid Manzoor
Field Summary |
protected static org.apache.log4j.Logger |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.log4j.Logger logger
OboOntologyReleaseRunner
public OboOntologyReleaseRunner(OortConfiguration oortConfig,
File base)
throws IOException
- Throws:
IOException
checkNew
protected File checkNew(File file)
throws IOException
- Check whether the file is new. Throw an
IOException
,
if the file already exists and OortConfiguration.isAllowFileOverWrite()
is not set to true.
- Parameters:
file
-
- Returns:
- file return the same file to allow chaining with other operations
- Throws:
IOException
allowFileOverwrite
protected boolean allowFileOverwrite(File file)
throws IOException
- Hook method to handle an unexpected file overwrite request.
Returns true, if the overwrite is allowed.
- Parameters:
file
-
- Returns:
- boolean
- Throws:
IOException
main
public static void main(String[] args)
throws IOException,
org.semanticweb.owlapi.model.OWLOntologyCreationException,
org.semanticweb.owlapi.model.OWLOntologyStorageException,
org.obolibrary.oboformat.parser.OBOFormatDanglingReferenceException
- Throws:
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
org.obolibrary.oboformat.parser.OBOFormatDanglingReferenceException
createRelease
public boolean createRelease(Vector<String> paths)
throws IOException,
org.semanticweb.owlapi.model.OWLOntologyCreationException,
FileNotFoundException,
org.semanticweb.owlapi.model.OWLOntologyStorageException,
OboOntologyReleaseRunnerCheckException
- Throws:
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
FileNotFoundException
org.semanticweb.owlapi.model.OWLOntologyStorageException
OboOntologyReleaseRunnerCheckException
Copyright © 2010-2011. All Rights Reserved.