How to build a domain-specific query language

databasedsl

I have a biology database that I would like to query. There is also a given terminology bank I have access to that has formalizable predicates. I would like to build a query language for this DB using the predicates mentioned. How would you go about it? My solution is the following:

  1. formalize the predicates
  2. translate into a query language (sql, sparql, depends)
  3. Build a specific language with ANTLR or other such tools
  4. Translate from 3 to 2.

Is this a valid approach? Are there better ones? Any pointers would be much appreciated.

Best Solution

Take a look at Booleano.

Related Question