Added support for pagination and ordering to ontology