Knowledge extraction from unstructured data and classification through distributed ontologies