Package org.bridgedb.tools.voidtool
Class VoIDTool
- java.lang.Object
-
- org.bridgedb.tools.voidtool.VoIDTool
-
public class VoIDTool extends Object
Utility to extract RDF data from derby database and store it as text file. Run with two parameters: [database] and [filename] database already contains the RDF data.
-
-
Field Summary
Fields Modifier and Type Field Description FileWriterfile
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendStrToFile(String fileName, String str)This function adds data to a file without overriding the existing datavoidcreateRDF()this method creates RDF file from the derby database passed through the CLI ToolvoidinitDatabases()static voidmain(String[] args)static voidprintUsage()voidrun()
-
-
-
Field Detail
-
file
public FileWriter file
-
-
Constructor Detail
-
VoIDTool
public VoIDTool(File f1, String fileName) throws IOException
Reads the database file passed and creates a text file with the name passes containing the RDF data from the database.- Parameters:
f1- database filefileName- name of the file to be create- Throws:
IOException
-
-
Method Detail
-
appendStrToFile
public void appendStrToFile(String fileName, String str)
This function adds data to a file without overriding the existing data- Parameters:
fileName- the file in which the rdf data is to be added.str- the string that is to be added to the file.
-
initDatabases
public void initDatabases() throws IDMapperException- Throws:
IDMapperException
-
createRDF
public void createRDF() throws SQLException, IDMapperExceptionthis method creates RDF file from the derby database passed through the CLI Tool- Throws:
SQLExceptionIDMapperException
-
run
public void run() throws IDMapperException, SQLException- Throws:
IDMapperExceptionSQLException
-
printUsage
public static void printUsage()
-
main
public static void main(String[] args) throws IOException, IDMapperException, SQLException
- Throws:
IOExceptionIDMapperExceptionSQLException
-
-