[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Handle-info] OpenHandle: An Update
Hi All:
Just a quick update on the OpenHandle project since last mail on the subject
(March 14). See project home page at:
http://openhandle.googlecode.com/
We added in a flag to allow for two forms - compact and full, where the
former is now the default return and presents simple string forms for admin
data fields and types which is more appropriate for may users. (See below
for examples.)
We've also moved all handle URI refs to use 'hdl:' scheme instead of
'info:hdl/' and to use querystrings instead of fragment identifiers for
addressing values, e.g.
hdl:10100/10.1038/nri1842?index=100
Also we've beefed up the gallery page with some additional handle specimens
roaming in the wild. There are also a growing number of code examples to
show that handle really can be accessed from a growing number of programming
environments. Languages include:
* Ruby
* Python
* PHP
* Perl
* Lisp
* Applescript
And yes, I know. Java and especially (and ironically) JavaScript are still
outstanding. (For the latter need to deal with JavaScript's cross-domain
security policy by using a) dynamic script tags, or b) a JSONP callback.)
There's also a to-do list for anybody who's interested in give the project a
scope.
Cheers,
Tony
###
Here's the 'compact'/'full' form comparisons for JSON. There's also
corresponding 'compact'/'full' forms for RDF/XML and RDF/N3.
a) Handle value in JSON - 'compact' form
{
"index" : "100" ,
"type" : "HS_ADMIN" ,
"data" : {
"adminRef" : "hdl:10100/10.1038/nri1842?index=100" ,
"adminPermission" : "111111111111"
} ,
"permission" : "1110" ,
"ttl" : "+86400" ,
"timestamp" : "Sun Nov 25 13:33:30 GMT 2007" ,
"reference" : []
}
a) Handle value in JSON - 'full' form
{
"index" : "100" ,
"type" : "HS_ADMIN" ,
"data" : {
"adminRef" : {
"handle" : "hdl:10100/10.1038/nri1842" ,
"handleValueIndex" : "100"
} ,
"adminPermission" : {
"readValue" : "true" ,
"addNa" : "true" ,
"deleteHandle" : "true" ,
"addAdmin" : "true" ,
"removeValue" : "true" ,
"deleteNa" : "true" ,
"addValue" : "true" ,
"addHandle" : "true" ,
"listHandles" : "true" ,
"removeAdmin" : "true" ,
"modifyValue" : "true" ,
"modifyAdmin" : "true"
}
} ,
"permission" : {
"adminRead" : "true" ,
"adminWrite" : "true" ,
"publicRead" : "true" ,
"publicWrite" : "false"
} ,
"ttl" : {
"ttlType" : "0" ,
"ttlValue" : "86400"
} ,
"timestamp" : "Sun Nov 25 13:33:30 GMT 2007" ,
"reference" : {
"referenceCount" : "0" ,
"referenceList" : [
]
}
} ,
********************************************************************************
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