Refactored the code to use ontology.json from S3