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

[Ref-Links] DOI's? - Let's pretend they're fun :)




Attached is a first-cut at a high-level API for DigitalObjects with
introduction, examples and reference. DOI implementation details are
abstracted away. Now we can just stay focused on the data. Main motivators
are simplicity and utility in dealing with multiple resolution contexts. As
the examples below show one can even achieve something useful with a single
statement. This work builds on previous posts regarding DOI infrastructure
and uses the same DOI type set. Hopefully worth a quick peek. Glad to get
any feedback.

Tony

(See attached file: ai_do.doc)

% ruby -rdoi -e 'puts DigitalObject.get("10.1068/p3001").resources'
http://www.perceptionweb.com/perabs/p29/p3001.html


% ruby -rdoi -e 'puts DigitalObject.get("10.1142/S0217751X00000409").profiles'
doi:10.profile/crossref


% ruby -rdoi -e 'puts DigitalObject.get("10.1045/march2001-contents").resources'
http://www.dlib.org/dlib/march01/03contents.html
http://mirrored.ukoln.ac.uk/lis-journals/dlib/dlib/dlib/march01/03contents.html
http://sunsite.anu.edu.au/mirrors/dlib/dlib/march01/03contents.html
http://webdoc.sub.gwdg.de/edoc/aw/d-lib/march01/03contents.html
http://www.dlib.org.ar/dlib/march01/03contents.html


% ruby -rdoi -e 'puts DigitalObject.get("10.1045/march2001-contents").dataGroupsDump'
DataGroups (1) = [

profile => doi:10.profile/zero
resource => http://www.dlib.org/dlib/march01/03contents.html
resource => http://mirrored.ukoln.ac.uk/lis-journals/dlib/dlib/dlib/march01/03contents.html
resource => http://sunsite.anu.edu.au/mirrors/dlib/dlib/march01/03contents.html
resource => http://webdoc.sub.gwdg.de/edoc/aw/d-lib/march01/03contents.html
resource => http://www.dlib.org.ar/dlib/march01/03contents.html

]

% ruby -rdoi -e 'puts DigitalObject.get("10.1080/109374000436364").kernelMetadata'
<?xml version="1.0" encoding="UTF-8"?>
<!-- (C) 2001 International DOI Foundation -->
<!DOCTYPE kernel SYSTEM "doi_kernel_v0_1.dtd">
<kernel>
<doi>
<string>10.1080/109374000436364</string>
<prefix>10.1080</prefix>
<suffix>109374000436364</suffix>
</doi>
<entity type="abstraction">
<profile mode="visual" name="CrossRef">
<title>HEALTH RISKS CAUSED BY FRESHWATER CYANOBACTERIA IN RECREATIONAL WATERS</title>
<agent role="author">Chorus, Ingrid</agent>
<agent role="author">Falconer, Ian R.</agent>
<agent role="author">Salas, Henry J.</agent>
<agent role="author">Bartram, Jamie</agent>
</profile>
</entity>
</kernel>



ai_do.doc