queryType in jc_compare no longer supported?

User 8139ea8dbd

28-01-2008 23:35:48

Just have jchem5 installed and try to test it. Got this exception for jc_compare





SQL> select jc_compare('c1ccccc1', 'c', 't:s queryType:r') from dual;


select jc_compare('c1ccccc1', 'c', 't:s queryType:r') from dual


*


ERROR at line 1:


ORA-29532: Java call terminated by uncaught Java exception:


java.rmi.ServerException: RemoteException occurred in server thread; nested


exception is:


java.rmi.RemoteException: error: unknown flag: querytype


Use -h for help.


ORA-06512: at "JCHEM_CARTRIDGE.JCHEM_CORE_PKG", line 88


ORA-06512: at "JCHEM_CARTRIDGE.COMPARE_FUNC", line 37





Then I checked the document


http://chemaxon.com/jchem/doc/guide/cartridge/cartapi.html#jc_compare





queryType seems deprecated, but nowhere mentioned in the document.





Thanks.

ChemAxon aa7c50abf8

29-01-2008 23:01:46

This option was removed from the documentation starting with JChem 3.2, but its implementation was kept in the JChem 3.2.x series for backward compatibility.





This option has been no longer needed, because JChem Cartridge applies the proper interpretation of the query structure depending on the search type (i.e. whether it should be interpreted as SMILES or as SMARTS). For example, for perfect search, similarity search, super-structure search and tautomer search, JChem Cartridge interprets the query structure as SMILES. For most other searches, the query structure is interpreted as SMARTS.





I suggest removing this option from your code when using JChem 5.0+.





Thanks


Peter