> This has now been added to Jmol,
Great!
> 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?
I am not sure ... I think that there are several things going on.
This last statement, the 'load http://...' fails because the ModelAdapter
does not yet know how to deal with CML.
If you start jmol with
./jmol -Dmodel=cdk
Then it will work. At least I see 1 atom.
But, the original call using
load dadml://any/CAS-NUMBER?50-00-0
Still does not work.
I am not sure why. I will try to take a look at it.
Miguel
-------------------------------------------------------
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