machinalis / quepy

A python framework to transform natural language questions to queries in a database query language.
Other
1.25k stars 296 forks source link

Adding support for additional query languages #5

Closed narphorium closed 11 years ago

narphorium commented 11 years ago

Each Quepy application can define its own query output language by including a printout.py file and an appropriately named expression_to_myquerylang function. When generating a query you can now pass a query_lang='myquerylang' parameter. The query language defaults to SPARQL if no query_lang is specified.

See freebase-quepy for an example of adding a new query language (MQL): https://github.com/narphorium/quepy-freebase

rafacarrascosa commented 11 years ago

Great! but I'll have to ask you a few small changes:

What do you think?

[0] http://nvie.com/posts/a-successful-git-branching-model/

narphorium commented 11 years ago

Sounds good. I'll make these changes and submit another pull request against develop when they're done.