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