A workflow based approach for knowledge grid application