Add documentation of so far un-documented get-ontology method in the API

I've made this change and I'm submitted the pull-request but there is something wrong and the example I give actually returns a null pointer exception. So before we merge this we'll want to fix this exception.