def create_local_dataset(dataset_id):    

    global args, ckan_client    

    logger.info('New Dataset ' + dataset_id + ' being initialized')
    dataset_entity = {};
    dataset_entity['name'] = dataset_id
    dataset_entity['license_id'] = args.ckan_license
    dataset_entity['title'] = get_dataset_title()

    # Find the correct CKAN group id to assign the dataset to
    try:
        group_entity = ckan_client.group_entity_get(args.ckan_group_name)
        if group_entity is not None:
            logger.info('Adding dataset to group: ' + args.ckan_group_name)        
            dataset_entity['groups'] = [group_entity['id']]
    except ckanclient.CkanApiNotFoundError:
        logger.warn('Problem publishing dataset {0}. Group: {1} not found on CKAN.'.format(args.dataset_name,args.ckan_group_name))        
        dataset_entity['groups'] = []        

    return dataset_entity
Creates a new dataset entity, but does not commit it to CKAN
dataset/ETHPy150Open opencolorado/OpenColorado-Tools-and-Utilities/Scripts/ArcGIS/10.0/Python/PublishOpenDataset.py/create_local_dataset