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:
- formalize the predicates
- translate into a query language (sql, sparql, depends)
- Build a specific language with ANTLR or other such tools
- Translate from 3 to 2.
Is this a valid approach? Are there better ones? Any pointers would be much appreciated.