Closed narphorium closed 11 years ago
Great! but I'll have to ask you a few small changes:
target
variable is important for sparql generation (I left a comment in the diff), so it should be preserved.What do you think?
Sounds good. I'll make these changes and submit another pull request against develop when they're done.
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