- From: tommy.yu at auckland.ac.nz (Tommy Yu)
- Subject: [cellml-discussion] cellml-discussion Digest, Vol 84, Issue 10
- Date: Tue, 02 Aug 2011 16:02:28 +1200
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 mneal at uw.edu (206)
>
543-8769 ---------------------------------
>
>
>
>
>
On Jul 29, 2011, at 5:00 PM, cellml-discussion-request at cellml.org
>
wrote:
>
>
> Send cellml-discussion mailing list submissions to
>
> cellml-discussion at 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-request at cellml.org
>
>
>
> You can reach the person managing the list at
>
> cellml-discussion-owner at 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.cowan at auckland.ac.nz> Subject: [cellml-discussion] ABI CellML
>
> Meeting Minutes, 27th July, 2011 To: CellML Discussion List
>
> <cellml-discussion at cellml.org> Message-ID:
>
> <4E32133D.4080007 at 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 at 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 at cellml.org
>
http://lists.cellml.org/mailman/listinfo/cellml-discussion
- [cellml-discussion] cellml-discussion Digest, Vol 84, Issue 10, Tommy Yu, 08/02/2011
Archive powered by MHonArc 2.6.18.