Revise script for indexing an ontology.