Add support for checking access to an ontology