[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Handle-info] OpenHandle JavaScript API



Hi:

Blogged this to CrossTech:

#####
OpenHandle JavaScript API
http://www.crossref.org/CrossTech/2008/10/openhandle_javascript_api.html

    "I just posted updated versions of the OpenHandle JavaScript Client
Library (v0.2.2) and Utilities (v0.2.2) to the project site. Mainly this
post is just by way of saying that there's now a "cheat sheet" for the API
(see figure above, click for PDF) which will give some idea of scope. The
JavaScript API attempts to reflect the Java Client Library API for Handle
data structures, and has in excess of 100 methods. A change log is
available.

    The new API supports:

    * Single namespace
    * Introspection
    * Unit testing, see here

    Why is this of interest to CrossRef? Well, if DOIs are ever to begin
take advantage of their innate Multiple Resolution capabiities there needs
to be nimbler means of accessing the data items stored with a DOI. A
JavaScript API would allow the data to be manipulated in the browser down by
the user and so enable bespoke services. That, at least, is the idea."
#####

Well the cheat sheet is fun anyway. And what's kind of neat is that the full
API can be accessed with a single method call:

  // in the browser, e.g. with FireBug
  console.log(OpenHandle.Library().showClassMethods());


  // in a JS shell (SpiderMonkey, Rhino)
  js> load('openhandle.js')
  js> print(OpenHandle.Library().showClassMethods())

And the unit testing is proving to be strangely addictive. :)

Cheers,

Tony



********************************************************************************   
DISCLAIMER: This e-mail is confidential and should not be used by anyone who is
not the original intended recipient. If you have received this e-mail in error
please inform the sender and delete it from your mailbox or any other storage
mechanism. Neither Macmillan Publishers Limited nor any of its agents accept
liability for any statements made which are clearly the sender's own and not
expressly made on behalf of Macmillan Publishers Limited or one of its agents.
Please note that neither Macmillan Publishers Limited nor any of its agents
accept any responsibility for viruses that may be contained in this e-mail or
its attachments and it is your responsibility to scan the e-mail and 
attachments (if any). No contracts may be concluded on behalf of Macmillan 
Publishers Limited or its agents by means of e-mail communication. Macmillan 
Publishers Limited Registered in England and Wales with registered number 785998 
Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS   
********************************************************************************


_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info