From: Egon W. <eg...@sc...> - 2004-03-21 21:05:13
|
Hi all, some time ago there was a discussion on how to download chemical entities from the internet. I then explained a system which I've been using for years now which allows for things like load dadml://any/pdbid?1CRN This has now been added to Jmol, but it is not fully working yet... but that's ok in a developers release. Try in HEAD: load dadml://any/CAS-NUMBER?50-00-0 This can be resolved into a URL and is then tried to be loaded, but this fails... Miguel, I get a FileNotFound, and am not sure what I do wrong. This is how the URI gets converted into a URL: URI uri = new URI(name); URL resolvedURL = resolveLink(uri); if (resolvedURL != null) { fullPathName = resolvedURL.toString(); fileName = fullPathName.substring(fullPathName.lastIndexOf('/') + 1, fullPathName.length()); } where name = "dadml://any/CAS-NUMBER?50-00-0" The resulting URL is: http://www.woc.sci.kun.nl/data/dadml/2d/cml/50-00-0.cml Which can be resolved... If I do: load http://www.woc.sci.kun.nl/data/dadml/2d/cml/50-00-0.cml I get a CML not supported error :( Can this be the reason of the FileNotFound exception? Egon |