feat(scripts): initial commit ingestor #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ingestor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@hernani @ijohn For your review.
Running the script (
python3 scripts/ingest.pywith the necessary python dependencies installed) will create a whole bunch of json files indata/projectswhich look like this:Now, this in and off itself is not much, as it is just reformatting the ngi grant level data. However, the script has the capabilities to aggregate project level data from multiple grants, IF the variables
GRANTID2PROJECTandPROJECT2DESCRIPTIONare correctly filled in. The question now is, how do we fill in these data programmatically? @ijohn Is there a way to get the hex data in a more consumable form than parsing the html?The resulting json files are also not schema compliant yet.
0fbfd1f961a6569922d6a6569922d6e503946643e503946643024a0492afSince NLNet will continue to hand out grants (even if not under the NGI umbrella), it would be useful to be able to repeatedly import the NGI provided json file which outlines the given grants ("projects" in _their_ lingo). At the same time, we don't want the data we have updated/summarized/corrected for the (what we call) project level to be overwritten by upstream. Therefore, the current solution is to merge the existing project level json with the project level jsons we build from the new NGI json grant load. For projects with a single grant this means that the upstream data will be authoritative. For multi-grant projects, those attributes where clashes have been resolved, they stay resolved.WIP: feat(scripts): initial commit ingestorto feat(scripts): initial commit ingestor