Skip to content

Instantly share code, notes, and snippets.

@yochannah
Last active June 5, 2018 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yochannah/11fd0acb845dc06f14ea9b92bf249d41 to your computer and use it in GitHub Desktop.
Save yochannah/11fd0acb845dc06f14ea9b92bf249d41 to your computer and use it in GitHub Desktop.
InterMine queries and natural language

Problem:

The InterMine NLP project aims to create a tool that can take natural language and produce an InterMine query from it. In order to do this, we need examples of InterMine queries alongside their descriptions! Jake, our GSoC student working on this problem, is using InterMine templates (that's a FlyMine link - your preferred mine is equally valid though!) from the various InterMines as a starting point, but more examples would be better if possible (and produce better results!).

Can you help us make more?

Do you have any personal saved queries or templates from your mine that you could share with us, alongside a description of what the query is? Or maybe you have some interesting biological questions you could answer in InterMine and want to share with us?

Example

Description of query: Show genes located on a particular chromosome.

Query XML

<query model="genomic" view="Gene.secondaryIdentifier Gene.symbol Gene.chromosome.primaryIdentifier Gene.chromosomeLocation.start Gene.chromosomeLocation.end Gene.chromosomeLocation.strand" sortOrder="Gene.secondaryIdentifier ASC" constraintLogic="A and B" name="Chromosome_Gene" >
  <constraint path="Gene.chromosome.primaryIdentifier" op="=" value="2L" code="A" />
  <constraint path="Gene.organism.name" op="=" value="Drosophila melanogaster" code="B" />
</query>

XML can be retrieved from query results pages by clicking on the "generate code" button and selecting XML.

If you think you can help, email examples to yo@intermine.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment