Language, logic and ontology: uncovering the structure of commonsense knowledge