added support for deeper flattening
Merge branch 'master' of https://github.com/tjb1982/sparql-query