first search for path in versions, then in ontology