Throw error for inconsistent datatypes in ontology