Open dgarijo opened 4 years ago
curl "http://localhost:8080/v1.3.0/summary?limit=200&page=1&model=cycles-0.9.4-alpha" -H "accept: application/json" | jq -r '.[].thread.models.id' | wc -l
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1626k 100 1626k 0 0 1375k 0 0:00:01 0:00:01 --:--:-- 1375k
90
"region": "South Sudan",
"calibrated_region": "Pongo Basin (South Sudan)",
curl "http://localhost:8080/v1.3.0/summary?limit=200&page=1&model=cycles-0.9.4-alpha" -H "accept: application/json" | jq -r '.[].thread.models.input_parameters'
curl "http://localhost:8080/v1.3.0/summary?limit=200&page=1&model=cycles-0.9.4-alpha" -H "accept: application/json" | jq -r '.[].thread.models.input_files'
Steps:
Right now every time I want to share a result, I must do the following:
curl -X POST -H "Content-Type: application/json" -d '{"scenario_id":"9SLDL3Bfvj5oZQndE0fK", "subgoal_id":"SDf5lyj20e5VgUGG2q56", "thread_id": "vjXMFbEA7Vc1mzM6GFNk"}' https://ingestion.mint.isi.edu/v1.1.0/summary
{ "source":"MINT (https://mint-project.info/)", "generationThread": "https://dev.mint.isi.edu/ethiopia/modeling/scenario/B46nwKOrapiUoBP35Go0/VXE8dVUiEyN1FY4zHSOV/l2QgEeoX15hL6OSRTPTP", "license":"https://creativecommons.org/licenses/by-nc-sa/4.0", "credit":"This dataset was generated by the Cycles model (https://w3id.org/okn/i/mint/CYCLES) created by Armen Kemanian, Yuning Shi and Lorne Leonard. The results were generated using the MINT modeling framework (https://mint-project.info/).", "dataQuality":"This dataset represents interim results from modeling. Results have not been validated by a modeler yet.", "modelSetupUsed":"https://w3id.org/okn/i/mint/cycles-0.10.2-alpha-collection-oromia", "provenance":"summary.json" }
I had to do this for all of our Cycles, TopoFlow, PIHM, Economic and HAND runs. I think we need to support this in MINT. The metadata.ttl can be filled in by the user. I will be happy if I can download a zip with those 3 files to begin with.