Re: [sword-app-tech] JavaServer2.0 and JavaClient2.0 from https://github.com/swordapp

2013-11-10 Thread Richard Jones
Hi Ben,

Yes, and glad to see the code being useful to more people!

I haven't got around to writing anything up yet, but we just released
a new version of the server library, and it is now also available as a
maven artefact.  At some point in the next week I'll be organised
enough to put out a post about what we've just done, and where all the
resources are.  In the mean time, you can find the release version
here:

http://search.maven.org/#artifactdetails%7Corg.swordapp%7Csword2-server%7C1.0%7Cwar

Cheers,

Richard


On 6 November 2013 15:26, Benjamin Pennell ben.penn...@gmail.com wrote:
 Yup, we're here!  We are using the same JavaServer SWORDv2 implementation as
 the basis for our server.  In our case we are building the server as a jar
 and incorporating it into a larger web app.  Its located at
 https://github.com/UNC-Libraries/Carolina-Digital-Repository/tree/master/sword-server/

 Glad to see more people adopting it!

 Date: Wed, 6 Nov 2013 12:01:07 +
 From: Richard Jones rich...@cottagelabs.com
 Subject: Re: [sword-app-tech] JavaServer2.0 and JavaClient2.0 from
 https://github.com/swordapp
 To: Philip Durbin philip_dur...@harvard.edu
 Cc: sword-app-tech@lists.sourceforge.net
 sword-app-tech@lists.sourceforge.net, LEWIS Stuart
 stuart.le...@ed.ac.uk
 Message-ID:

 cajahguosx-reox2cl7fyhdo9bw1v5vdztrdcp1ekrpwa01b...@mail.gmail.com
 Content-Type: text/plain; charset=UTF-8


 That's great!  Do we know these folks at all?  Are they on the list?

 Cheers,

 Richard

 On 22 August 2013 17:21, Philip Durbin philip_dur...@harvard.edu wrote:
  On Thu, Jun 20, 2013 at 3:22 AM, LEWIS Stuart stuart.le...@ed.ac.uk
  wrote:
  Thanks for sharing this.  The JavaServer.20 was originally written as
  part of the DSpace SWORDv2 implementation, but it was thought at the time 
  it
  would be worth abstracting out the SWORD part from DSpace part, in the 
  hope
  that this might be reusable.  As far as I know, you're the first person to
  try using outside of DSpace (hence the lack of any other implementation or
  past experience).
 
  I could certainly be wrong but this SWORDv2 implementation also seems
  to be using the common SWORDv2 server library for Java:
 
 
  https://github.com/UNC-Libraries/Carolina-Digital-Repository/tree/master/sword-server/src/main/java/edu/unc/lib/dl/cdr/sword/server/managers
 
  So maybe I'm not alone. :)
 
  Phil
 
  --
  Philip Durbin
  Software Developer for http://thedata.org
  http://www.iq.harvard.edu/people/philip-durbin
 
 
  --
  Introducing Performance Central, a new site from SourceForge and
  AppDynamics. Performance Central is your source for news, insights,
  analysis and resources for efficient Application Performance Management.
  Visit us today!
 
  http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
  ___
  sword-app-tech mailing list
  sword-app-tech@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/sword-app-tech



 --

 Richard Jones,

 Founder, Cottage Labs
 t: @richard_d_jones, @cottagelabs
 w: http://cottagelabs.com



 --


 --
 November Webinars for C, C++, Fortran Developers
 Accelerate application performance with scalable programming models.
 Explore
 techniques for threading, error checking, porting, and tuning. Get the
 most
 from the latest Intel processors and coprocessors. See abstracts and
 register

 http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk

 --


 --
 November Webinars for C, C++, Fortran Developers
 Accelerate application performance with scalable programming models. Explore
 techniques for threading, error checking, porting, and tuning. Get the most
 from the latest Intel processors and coprocessors. See abstracts and
 register
 http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk
 ___
 sword-app-tech mailing list
 sword-app-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/sword-app-tech




-- 

Richard Jones,

Founder, Cottage Labs
t: @richard_d_jones, @cottagelabs
w: http://cottagelabs.com

--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk
___
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https

Re: [sword-app-tech] JavaServer2.0 and JavaClient2.0 from https://github.com/swordapp

2013-11-06 Thread Richard Jones
That's great!  Do we know these folks at all?  Are they on the list?

Cheers,

Richard

On 22 August 2013 17:21, Philip Durbin philip_dur...@harvard.edu wrote:
 On Thu, Jun 20, 2013 at 3:22 AM, LEWIS Stuart stuart.le...@ed.ac.uk wrote:
 Thanks for sharing this.  The JavaServer.20 was originally written as part 
 of the DSpace SWORDv2 implementation, but it was thought at the time it 
 would be worth abstracting out the SWORD part from DSpace part, in the hope 
 that this might be reusable.  As far as I know, you're the first person to 
 try using outside of DSpace (hence the lack of any other implementation or 
 past experience).

 I could certainly be wrong but this SWORDv2 implementation also seems
 to be using the common SWORDv2 server library for Java:

 https://github.com/UNC-Libraries/Carolina-Digital-Repository/tree/master/sword-server/src/main/java/edu/unc/lib/dl/cdr/sword/server/managers

 So maybe I'm not alone. :)

 Phil

 --
 Philip Durbin
 Software Developer for http://thedata.org
 http://www.iq.harvard.edu/people/philip-durbin

 --
 Introducing Performance Central, a new site from SourceForge and
 AppDynamics. Performance Central is your source for news, insights,
 analysis and resources for efficient Application Performance Management.
 Visit us today!
 http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
 ___
 sword-app-tech mailing list
 sword-app-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/sword-app-tech



-- 

Richard Jones,

Founder, Cottage Labs
t: @richard_d_jones, @cottagelabs
w: http://cottagelabs.com

--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk
___
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech


Re: [sword-app-tech] JavaServer2.0 and JavaClient2.0 from https://github.com/swordapp

2013-11-06 Thread Benjamin Pennell
Yup, we're here!  We are using the same JavaServer SWORDv2 implementation
as the basis for our server.  In our case we are building the server as a
jar and incorporating it into a larger web app.  Its located at
https://github.com/UNC-Libraries/Carolina-Digital-Repository/tree/master/sword-server/

Glad to see more people adopting it!

Date: Wed, 6 Nov 2013 12:01:07 +
 From: Richard Jones rich...@cottagelabs.com
 Subject: Re: [sword-app-tech] JavaServer2.0 and JavaClient2.0 from
 https://github.com/swordapp
 To: Philip Durbin philip_dur...@harvard.edu
 Cc: sword-app-tech@lists.sourceforge.net
 sword-app-tech@lists.sourceforge.net, LEWIS Stuart
 stuart.le...@ed.ac.uk
 Message-ID:
 
 cajahguosx-reox2cl7fyhdo9bw1v5vdztrdcp1ekrpwa01b...@mail.gmail.com
 Content-Type: text/plain; charset=UTF-8

 That's great!  Do we know these folks at all?  Are they on the list?

 Cheers,

 Richard

 On 22 August 2013 17:21, Philip Durbin philip_dur...@harvard.edu wrote:
  On Thu, Jun 20, 2013 at 3:22 AM, LEWIS Stuart stuart.le...@ed.ac.uk
 wrote:
  Thanks for sharing this.  The JavaServer.20 was originally written as
 part of the DSpace SWORDv2 implementation, but it was thought at the time
 it would be worth abstracting out the SWORD part from DSpace part, in the
 hope that this might be reusable.  As far as I know, you're the first
 person to try using outside of DSpace (hence the lack of any other
 implementation or past experience).
 
  I could certainly be wrong but this SWORDv2 implementation also seems
  to be using the common SWORDv2 server library for Java:
 
 
 https://github.com/UNC-Libraries/Carolina-Digital-Repository/tree/master/sword-server/src/main/java/edu/unc/lib/dl/cdr/sword/server/managers
 
  So maybe I'm not alone. :)
 
  Phil
 
  --
  Philip Durbin
  Software Developer for http://thedata.org
  http://www.iq.harvard.edu/people/philip-durbin
 
 
 --
  Introducing Performance Central, a new site from SourceForge and
  AppDynamics. Performance Central is your source for news, insights,
  analysis and resources for efficient Application Performance Management.
  Visit us today!
 
 http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
  ___
  sword-app-tech mailing list
  sword-app-tech@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/sword-app-tech



 --

 Richard Jones,

 Founder, Cottage Labs
 t: @richard_d_jones, @cottagelabs
 w: http://cottagelabs.com



 --


 --
 November Webinars for C, C++, Fortran Developers
 Accelerate application performance with scalable programming models.
 Explore
 techniques for threading, error checking, porting, and tuning. Get the most
 from the latest Intel processors and coprocessors. See abstracts and
 register
 http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk

 --

--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk___
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech


Re: [sword-app-tech] JavaServer2.0 and JavaClient2.0 from https://github.com/swordapp

2013-08-22 Thread Philip Durbin
On Thu, Jun 20, 2013 at 3:22 AM, LEWIS Stuart stuart.le...@ed.ac.uk wrote:
 Thanks for sharing this.  The JavaServer.20 was originally written as part of 
 the DSpace SWORDv2 implementation, but it was thought at the time it would be 
 worth abstracting out the SWORD part from DSpace part, in the hope that this 
 might be reusable.  As far as I know, you're the first person to try using 
 outside of DSpace (hence the lack of any other implementation or past 
 experience).

I could certainly be wrong but this SWORDv2 implementation also seems
to be using the common SWORDv2 server library for Java:

https://github.com/UNC-Libraries/Carolina-Digital-Repository/tree/master/sword-server/src/main/java/edu/unc/lib/dl/cdr/sword/server/managers

So maybe I'm not alone. :)

Phil

-- 
Philip Durbin
Software Developer for http://thedata.org
http://www.iq.harvard.edu/people/philip-durbin

--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
___
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech


Re: [sword-app-tech] JavaServer2.0 and JavaClient2.0 from https://github.com/swordapp

2013-08-20 Thread Philip Durbin
Hi Richard!

I just sent you separate pull request for the same issue:

generalise getName/getFilename into getContentDispositionValue by
pdurbin · Pull Request #3 · swordapp/JavaServer2.0 -
https://github.com/swordapp/JavaServer2.0/pull/3

Here's the text I put in the pull request:
---
This pull request aims to resolve this is the same code as above, but
with a different token; generalise FIXME as well as the first
character truncated from filename in Content-Disposition issue
reported in 
http://www.mail-archive.com/sword-app-tech@lists.sourceforge.net/msg00337.html

It uses 
http://commons.apache.org/proper/commons-fileupload/apidocs/org/apache/commons/fileupload/ParameterParser.html

Please note that a semicolon is used as a separator but
http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/ParameterParserTest.java?r1=1455469r2=1455470pathrev=1515823;
suggests that a comma might be a legitimate separator per
https://issues.apache.org/jira/browse/FILEUPLOAD-139
---

Thanks,

Phil


On Thu, Aug 1, 2013 at 12:51 PM, Richard Jones rich...@cottagelabs.com wrote:
 Hi Phil,

 On 28 June 2013 22:05, Philip Durbin philip_dur...@harvard.edu wrote:
 On Thu, Jun 27, 2013 at 10:53 AM, Philip Durbin
 philip_dur...@harvard.edu wrote:
 Before the jar gets published, I believe I may have found a bug here:

 https://github.com/swordapp/JavaServer2.0/blob/31e625ac97be13f794e1b98512f8d1c48d751652/src/main/java/org/swordapp/server/SwordAPIEndpoint.java#L435

 When I use the following command...

 curl --insecure -s -H X-On-Behalf-Of: obo --http1.0 --data-binary
 @example.zip -H Content-Disposition: filename=example.zip -H
 Content-Type: application/zip
 https://sword:sword@localhost:8181/swordpoc/collection/a4f21cdc-f20c-4c82-b63e-5df81f809417

 ... my example.zip file gets uploaded as xample.zip (i.e. the
 first character is removed). I can easily reproduce this in Vagrant
 with https://github.com/dvn/swordpoc if you'd like more detail.

 FYI, this bug has been confirmed by Bill McKinney who has submitted a
 pull request called enhanced content disposition handling:
 https://github.com/swordapp/JavaServer2.0/pull/2

 Great, thanks; I've not incorporated it yet purely due to lack of time
 to look at sword for a month or so.  I did bump into Bill at OR13 in
 Canada, which was great, and he did prod me about it on your behalf :)
  I will get this onto my todo list, though, thanks for submitting it!

 Cheers,

 Richard

 For my part, I'm moved my proof of concept code into an experimental
 branch in our app itself: https://github.com/IQSS/dvn/commit/4838565

 I can keep https://github.com/dvn/swordpoc around for anyone who wants
 to see the library exercised a bit with some working code.

 Phil

 --
 Philip Durbin
 Software Developer for http://thedata.org
 http://www.iq.harvard.edu/people/philip-durbin



 --

 Richard Jones,

 Founder, Cottage Labs
 t: @richard_d_jones, @cottagelabs
 w: http://cottagelabs.com



-- 
Philip Durbin
Software Developer for http://thedata.org
http://www.iq.harvard.edu/people/philip-durbin

--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
___
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech


Re: [sword-app-tech] JavaServer2.0 and JavaClient2.0 from https://github.com/swordapp

2013-08-07 Thread Philip Durbin
On Thu, Aug 1, 2013 at 12:51 PM, Richard Jones rich...@cottagelabs.com wrote:
 ... my example.zip file gets uploaded as xample.zip (i.e. the
 first character is removed). I can easily reproduce this in Vagrant
 with https://github.com/dvn/swordpoc if you'd like more detail.

 FYI, this bug has been confirmed by Bill McKinney who has submitted a
 pull request called enhanced content disposition handling:
 https://github.com/swordapp/JavaServer2.0/pull/2

 Great, thanks; I've not incorporated it yet purely due to lack of time
 to look at sword for a month or so.  I did bump into Bill at OR13 in
 Canada, which was great, and he did prod me about it on your behalf :)
  I will get this onto my todo list, though, thanks for submitting it!

Yes, Bill mentioned. Thanks so much for looking into this bug.

Phil

-- 
Philip Durbin
Software Developer for http://thedata.org
http://www.iq.harvard.edu/people/philip-durbin

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech


Re: [sword-app-tech] JavaServer2.0 and JavaClient2.0 from https://github.com/swordapp

2013-08-01 Thread Richard Jones
Hi Phil,

On 28 June 2013 22:05, Philip Durbin philip_dur...@harvard.edu wrote:
 On Thu, Jun 27, 2013 at 10:53 AM, Philip Durbin
 philip_dur...@harvard.edu wrote:
 Before the jar gets published, I believe I may have found a bug here:

 https://github.com/swordapp/JavaServer2.0/blob/31e625ac97be13f794e1b98512f8d1c48d751652/src/main/java/org/swordapp/server/SwordAPIEndpoint.java#L435

 When I use the following command...

 curl --insecure -s -H X-On-Behalf-Of: obo --http1.0 --data-binary
 @example.zip -H Content-Disposition: filename=example.zip -H
 Content-Type: application/zip
 https://sword:sword@localhost:8181/swordpoc/collection/a4f21cdc-f20c-4c82-b63e-5df81f809417

 ... my example.zip file gets uploaded as xample.zip (i.e. the
 first character is removed). I can easily reproduce this in Vagrant
 with https://github.com/dvn/swordpoc if you'd like more detail.

 FYI, this bug has been confirmed by Bill McKinney who has submitted a
 pull request called enhanced content disposition handling:
 https://github.com/swordapp/JavaServer2.0/pull/2

Great, thanks; I've not incorporated it yet purely due to lack of time
to look at sword for a month or so.  I did bump into Bill at OR13 in
Canada, which was great, and he did prod me about it on your behalf :)
 I will get this onto my todo list, though, thanks for submitting it!

Cheers,

Richard

 For my part, I'm moved my proof of concept code into an experimental
 branch in our app itself: https://github.com/IQSS/dvn/commit/4838565

 I can keep https://github.com/dvn/swordpoc around for anyone who wants
 to see the library exercised a bit with some working code.

 Phil

 --
 Philip Durbin
 Software Developer for http://thedata.org
 http://www.iq.harvard.edu/people/philip-durbin



-- 

Richard Jones,

Founder, Cottage Labs
t: @richard_d_jones, @cottagelabs
w: http://cottagelabs.com

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk
___
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech


Re: [sword-app-tech] JavaServer2.0 and JavaClient2.0 from https://github.com/swordapp

2013-06-21 Thread Richard Jones
Hi Phil,

 Phil - it sounds like you've got a handle on things with regard to the
 reference implementation.  The JavaServer2.0 was written in parallel
 to the DSpace implementation (as Stuart says), to provide the generic
 parsing and serialising of sword protocol operations.  Hopefully I've
 successfully separated the concerns of the standard from the concerns
 of DSpace, but I'd be interested in your feedback.

 It's somewhat slow going, but I'm not blocked on anything. I'm very
 glad SWORD v2 servers have already been implemented in Java!

We probably need to get together a how-to or tutorial in using the
code.  If you can document your experiences with it, we'd be very
interested in including that into a README or a github page for the
software.

 I had mentioned https://github.com/dvn/swordv2-java-minimal previously
 which is a fork of your https://github.com/swordapp/JavaServer2.0 but
 I wanted to move the code into its own project so I could use the
 org.swordapp:sword2-server jar as a library as it's intended. Toward
 this end I made a new Java project under edu.harvard.iq namespace and
 added the code into https://github.com/dvn/swordpoc and updated the
 readme to explain how to build and deploy it into the provided Vagrant
 environment.

 One issue I'm having is finding a published version of that
 org.swordapp:sword2-server jar. Do you plan to publish it on Maven
 Central? For now, I'm building it myself but I opened
 https://github.com/dvn/swordpoc/issues/1 to remind myself to follow up
 on this.

Yes, I haven't done this yet, but we will need to do it in order for
the new code for DSpace to be accepted into the main release.  I don't
have a lot of experience with publishing maven artifacts, so up until
now I've been just installing it into my local maven repository when
using it.  Glad to accept any help in getting it done!

 I'm sure I'll have more feedback as time goes on. At a high level,
 we're hoping to use SWORD v2 as the protocol that allows Open Journal
 Systems to deposit data into a Dataverse, as described at
 http://projects.iq.harvard.edu/ojs-dvn/book/faq-ojs-dataverse-integration-project

Excellent - really cool to see this kind of thing happening!

Cheers,

Richard

-- 

Richard Jones,

Founder, Cottage Labs
t: @richard_d_jones, @cottagelabs
w: http://cottagelabs.com

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech