Grounding ontologies in the external world