implement SearchOntologyResource functionality and add tests