Those classes are indeed "prehistoric material" by CDK means.
I guess they have not been used or maintained for years.
Claus, if you are interested in writing structures to and from databases, we
should discuss the issues.
As you will know, we have written quite some code for doing this within the
NMRShiftDB project. The code is part of the NMRShiftDB code base, which uses a
lot of CDK code.
Cheers,
Chris
Egon Willighagen wrote:
On Wednesday 28 December 2005 16:22, Claus Stie Kallesøe wrote:
I have been reading through the cdk library here:
http://cdk.sourceforge.net/api/
in order to find out how I can use the library.
As we use a MySql database to store the structures I wanted to use the
DBReader.class as the describtion tells me: " Reader that can read from a
relational database that can be accessed through JDBC."
But I can't fint the class in the cdk-20050826.jar file I have?
The DBReader, DBWriter and DBAdmin classes are in the CDK module 'orphaned',
meaning that no one was maintaining them, and they did not seemed to be used.
The sources, however, can be found in CVS at:
http://cvs.sourceforge.net/viewcvs.py/cdk/cdk/src/org/openscience/cdk/database/
Under org.openscience.cdk.database I only see the XindiceReader.
Can you tell me where I can find the DBReader?
Note, that the DBReader and DBWriter is closely tied together, and store the
molecules CML string in the 'molecules' table:
ps = con.prepareStatement("INSERT INTO molecules VALUES('', ?)");
This does likely not match the setup you are working with.
Nevertheless, the source should give you some insight in how I used MySQL in
the past.
Egon
--
Priv. Doz. Dr. Christoph Steinbeck ([EMAIL PROTECTED])
Head of the Research Group for Molecular Informatics
Cologne University BioInformatics Center (http://almost.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7426 Fax: +49 (0) 221-470-7786
What is man but that lofty spirit - that sense of enterprise.
... Kirk, "I, Mudd," stardate 4513.3..
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user