[flymine-dev] Query
Kim Rutherford
flymine-dev@flymine.org
Thu, 22 Dec 2005 11:15:54 +0000
On Thu, 22 Dec 2005 00:11:45 +0100 (MET), AlexanderP wrote:
> (the last thing I have still not tried...)
> how do I make a query? (out of some program..)
Hi.
There's an example of how to make a query in the SimpleLoadTask code I
sent on Friday. See the getProteinsForName() method:
http://subversion.flymine.org/trunk/flymine/doc/examples/simple_loader/SimpleLoadTask.java?rev=8190&view=markup
There's another example here:
http://www.intermine.org/doc/software/java_query/spec.html
And a bit more of a description here:
http://www.intermine.org/doc/software/howto_query.html
For code example from FlyMine, have a look in:
http://subversion.flymine.org/trunk/flymine/model/genomic/src/java/org/flymine/postprocess/PostProcessUtil.java?rev=8125&view=markup
and the other classes in the org.flymine.postprocess package.
> is there the possibility to query out of a program over the net?
> (maybe you have an example?)
Your client code doesn't have to be on the same machine as your
postgres server. Is that what you mean?
> I have heard of a loader for some other databases (human, mouse,...),
> how is this working?
We have another database for human genome stuff
(http://www.flymine.org/t1dmine-preview/begin.do).
That database is built in the same way as FlyMine, but from different
database sources. The data model is very similar to FlyMine.
Kim.