public void Update(string path, CKAN.Resource resource)
        {
            var r = resource.result;

            RevisionId   = r.revision_id;
            LastRevision = r.last_modified;
            LastImport   = DateTime.Now;

            WriteJson(path);
        }
        public async Task GetCKANResource()
        {
            Console.WriteLine("Getting CKAN resource {0} from {1}", source.ResourceId, source.BaseAddress);

            ckan     = new CKAN.Client(source.BaseAddress);
            resource = await ckan.GetResourceAsync(source.ResourceId);

            if (!resource.success)
            {
                throw new Exception("Error retrieving CKAN resource info.");
            }
        }