bringing ontology flattening into the API proper (on the fly) - simple tests included