fixed error when there was no ontologies file
added option to be able to calculate semantic similarity without appending ontology data on transaction