Maxwell Neal wrote:
Hi all - I was wondering - is there a webservice that would allow me
to programmatically download all the cellml models in the cellml
repository? Many thank,


Hi Maxwell,

Thank you for your interest in the CellML Model Repository.  While we currently 
don't have a formalized web service, we do provide a list of IDs to the 
workspaces (http://models.cellml.org/workspace) which can be found at 
http://models.cellml.org/workspace/list_txt.  Basically you can append the ids 
listed with the path.

To acquire the models, we recommend the usage of a Mercurial client, which can 
be acquired from http://mercurial.selenic.com/.  You can then use some kind of 
shell scripting to loop through that list and clone each workspace onto your 
local machine.

This is an example shell script:

#!/bin/sh

WS_ROOT=https://models.cellml.org/workspace
LIST=list_txt
for WORKSPACE in `wget --no-check-certificate -q -O - $WS_ROOT/$LIST`; do
 if [ -d $WORKSPACE ]; then
   echo $WORKSPACE exists.  Checking updates.
   hg pull -R $WORKSPACE
   hg up -R $WORKSPACE -C
 else
   echo $WORKSPACE does not exist.  Cloning.
   hg clone $WS_ROOT/$WORKSPACE
 fi
done

Note this script will overwrite any local uncommitted changes.

Regards,
Tommy.

M

--------------------------------- Maxwell Neal

Post-doctoral researcher University of Washington mn...@uw.edu (206)
543-8769 ---------------------------------




On Jul 29, 2011, at 5:00 PM, cellml-discussion-requ...@cellml.org
wrote:

Send cellml-discussion mailing list submissions to cellml-discussion@cellml.org

To subscribe or unsubscribe via the World Wide Web, visit http://lists.cellml.org/mailman/listinfo/cellml-discussion or, via email, send a message with subject or body 'help' to cellml-discussion-requ...@cellml.org

You can reach the person managing the list at cellml-discussion-ow...@cellml.org

When replying, please edit your Subject line so it is more specific
 than "Re: Contents of cellml-discussion digest..."


Today's Topics:

1. ABI CellML Meeting Minutes, 27th July, 2011 (Dougal Cowan)


----------------------------------------------------------------------


Message: 1 Date: Fri, 29 Jul 2011 13:56:13 +1200 From: Dougal Cowan
<dj.co...@auckland.ac.nz> Subject: [cellml-discussion] ABI CellML
Meeting Minutes, 27th July, 2011 To: CellML Discussion List
<cellml-discussion@cellml.org> Message-ID:
<4e32133d.4080...@auckland.ac.nz> Content-Type: text/plain;
charset=ISO-8859-1; format=flowed

I have put the minutes from this week's meeting up at:

http://www.cellml.org/community/meeting/minutes/2011/07.27

Cheers, Dougal



------------------------------

_______________________________________________ cellml-discussion
mailing list cellml-discussion@cellml.org http://lists.cellml.org/mailman/listinfo/cellml-discussion


End of cellml-discussion Digest, Vol 84, Issue 10 *************************************************

_______________________________________________ cellml-discussion
mailing list cellml-discussion@cellml.org http://lists.cellml.org/mailman/listinfo/cellml-discussion

_______________________________________________
cellml-discussion mailing list
cellml-discussion@cellml.org
http://lists.cellml.org/mailman/listinfo/cellml-discussion

Reply via email to