[MOBY-dev] jmoby using cached datatypes etc
Paul Gordon
gordonp at ucalgary.ca
Wed Jun 25 14:20:30 UTC 2008
Hi Andreas,
I still need to update some of the code to use the new caching that
Eddie implemented in February while we were in Japan. I've been out of
the Moby loop for a while, but starting this week I'll be able to start
working on it again, so it should cache by default Real Soon Now(TM).
Paul
groscurt wrote:
> this is an example code:
>
> Central central = new CentralDigestCachedImpl(
> "/home/pcb/groscurt/moby-live/Java/myCache" );
> MobyService mobyService = new MobyService();
> mobyService.setAuthority( "arabidopsis.org" );
> mobyService.setName( "Locus2Publications" );
> mobyService.setCategory( "" );
> mobyService = central.findService( mobyService )[0];
>
> MobyRequest mobyRequest = new MobyRequest( central );
> mobyRequest.setService( mobyService );
> mobyRequest.setInput( new MobyDataObject("AGI_LocusCode", "at4g30110") );
>
> running this starts to download the ontologies from biomoby.org. I guess the
> handling of the MobyRequest stuff is the problem here - but how to solve
> that ?
>
> Best and thanks
> andreas
>
> ----------------original message-----------------
> From: "Martin Senger" martin.senger at gmail.com
> To: "Core developer announcements" moby-dev at lists.open-bio.org
> Date: Wed, 25 Jun 2008 18:54:43 +0800
> -------------------------------------------------
>
>>> but if i understand it correctly the CentralDigestCachedImpl does access
>>>
> a
>
>>> default moby registry and then caches it locally.
>>>
>> Actually no. The class gets, in its constructor, a local directory where
>>
> the
>
>> cached ontology are located, and uses it. Only if the cache is empty, it
>> tries to fill it.
>>
>>
>>
>>> What I'm interessted in is not to access any registry at all for getting
>>> the ontologies.
>>> My sitatuation is that i query the moby central to find some services
>>>
> based
>
>>> on e.g. their input and output parameters.
>>>
>> The cache does not have the "find" method - we did not want to replicate
>>
> the
>
>> whole registry's API. But because all ontologies are locally available, it
>> is easy to get them all (that's why the class is also called "digest",
>> because it provides the cumulative methods that the registry's API does
>>
> not
>
>> provide in all cases) and iterate over them and make your search as you
>> wish.
>>
>> Martin
>>
>> --
>> Martin Senger
>> email: martin.senger at gmail.com,m.senger at cgiar.org
>> skype: martinsenger
>> _______________________________________________
>> MOBY-dev mailing list
>> MOBY-dev at lists.open-bio.org
>> http://lists.open-bio.org/mailman/listinfo/moby-dev
>>
>>
>
>
>
> _______________________________________________
> MOBY-dev mailing list
> MOBY-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-dev
>
> !DSPAM:60005,48622972109501804129376!
>
>
>
>
More information about the MOBY-dev
mailing list