Add sub- and super-class URIs to ontology index.