Hi All, 

 

My apology if you received this post the second time. This is a resend
of the previous post since I didn't see my email coming to myself or
showing up in the forum. I just joined the community and not yet
familiar with the posting rules.

 

Thanks

 

Andrew Bai

Senior Application Developer

ResearchMaster Pty Ltd

 

________________________________

From: Andrew Bai 
Sent: Monday, 1 June 2009 9:23 AM
To: 'dspace-tech@lists.sourceforge.net'
Subject: SWORD: Polling for Handle Availibility When a "accept/reject''
Workflow Process Required for the Collection Deposit

 

Hi all,

 

I'm trying to write code to enable DSpace deposit from our research
software. I can successfully deposit to DSpace using SWORD. However if
the COLLECTION in DSpace requires an "accept/reject" workflow step, I
can't get the handle immediately in the SWORD response. I've looked into
SWORD and ATOMPUB profile carefully and found no support for status
polling. To discourage me more, I found that in the response I received
from the deposit, the "atom entry" doesn't even have a unique id.
Instead it just has the following url that points to the homepage of the
DSpace JSP user interface: http://vm:12:8080/jspui. It also doesn't have
a "atom:content" entry which is required according to SWORD profile
1.3.1. By the way, I'm testing agaist the latest DSpace 1.5.2 release.
Could anyone help me to point out a direction on how to poll the status
of a deposit from a third party product pragmatically? Thank you. The
following xml code is the response I got with my test deposit.

 

<?xml version="1.0" encoding="UTF-8" ?> 

-
<file:///C:\Projects\104%20-%20DSpace\deposit_response_rmpl_withworkflow
.xml##>  <atom:entry xmlns:atom="http://www.w3.org/2005/Atom";
xmlns:sword="http://purl.org/net/sword/";>

  <atom:id>http://vm12:8080/jspui</atom:id> 

-
<file:///C:\Projects\104%20-%20DSpace\deposit_response_rmpl_withworkflow
.xml##>  <atom:author>

  <atom:name>a...@researchmaster.com.au</atom:name> 

  </atom:author>

  <atom:generator uri="http://www.dspace.org/ns/sword/1.3.1";
version="1.3" /> 

  <atom:published>2001-02</atom:published> 

  <atom:summary type="text">Dispersed repeat elements contribute to
genome instability by de novo insertion and unequal recombination
between repeats. To study the dynamics of these processes, we have
developed single DNA molecule approaches to detect de novo insertions at
a single locus and Alu-mediated deletions at two different loci in human
genomic DNA. Validation experiments showed these approaches could detect
insertions and deletions at frequencies below 10(-6) per cell. However,
bulk analysis of germline (sperm) and somatic DNA showed no evidence for
genuine mutant molecules, placing an upper limit of insertion and
deletion rates of 2 x 10(-7) and 3 x 10(-7), respectively, in the
individuals tested. Such re-arrangements at these loci therefore occur
at a rate lower than that detectable by the most sensitive methods
currently available.</atom:summary> 

  <atom:title type="text">Attempts to detect retrotransposition and de
novo deletion of Alus and other dispersed repeats at specific loci in
the human genome</atom:title> 

  <atom:updated>2009-05-28T02:35:02Z</atom:updated> 

  <sword:treatment>The package has been deposited into DSpace. Each file
has been unpacked and provided with a unique identifier. The metadata in
the manifest has been extracted and attached to the DSpace item, which
has been provided with an identifier leading to an HTML splash
page.</sword:treatment> 

  <sword:verboseDescription>[2009-05-28 12:34:50.796] Initialising
verbose deposit; [2009-05-28 12:34:50.812] Performing deposit using
location: http://vm12:8080/sword/deposit/123456789/2; [2009-05-28
12:34:50.812] Location resolves to collection with handle: 123456789/2
and name: First Collection; [2009-05-28 12:34:50.812] User is authorised
to submit to collection; [2009-05-28 12:34:50.812] Authenticated user:
a...@researchmaster.com.au; [2009-05-28 12:34:50.812] Initialising
depositor for an Item in a Collection; [2009-05-28 12:34:50.812] DSpace
will store an original copy of the deposit, as well as ingesting the
item into the archive; [2009-05-28 12:34:50.812] Loaded ingester:
org.dspace.sword.SWORDMETSIngester; [2009-05-28 12:34:50.812] Using
package manifest format: METS; [2009-05-28 12:34:50.812] Loaded package
ingester: org.dspace.content.packager.DSpaceMETSIngester; [2009-05-28
12:35:02.875] Workflow process started; [2009-05-28 12:35:02.875]
Updated date added to response from item metadata where available;
[2009-05-28 12:35:02.953] Ingest successful; [2009-05-28 12:35:02.953]
Item created with internal identifier: 11; [2009-05-28 12:35:02.953] No
external identifier available at this stage (item in workflow);
[2009-05-28 12:35:02.953] Archive ingest completed successfully;
[2009-05-28 12:35:03.125] Original package stored as
sword-2009-05-28.original, in item bundle
org.dspace.content.bun...@11a20af; [2009-05-28 12:35:03.125]
Initialising ATOM entry generator for an Item; [2009-05-28 12:35:03.140]
Total time for deposit processing: 12344 ms;</sword:verboseDescription> 

  <sword:noOp>false</sword:noOp> 

 
<sword:packaging>http://purl.org/net/sword-types/METSDSpaceSIP</sword:pa
ckaging> 

  </atom:entry>

 

 

Thanks,

 

Andrew Bai

Senior Application Developer

ResearchMaster Pty Ltd

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to