make sure ontology has been set before trying to write out consequences