Querying and extracting heterogeneous graphs from entreprise data