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


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to