Open larjohn opened 6 years ago
Before DAM use curl to post request and get response, at that time it is fine because the link is fake and not complicated. But it happen to know it do not work correctly in Time_Series, especially when the "json_data" has complex parameters, so I changed it to http.request.post. So, I will change the statistics by this method too.
problem partly solved. Please check link.
@larjohn In you first post, the link: http://apps.openbudgets.eu/api/3/cubes/budget-athens-expenditure-2006__97b39/facts
do not return any value, could you change to another dataset and check again? The link I post now is working, you can check the result.
@wk0206 it was working because it was using the old method (direct connection to our server).
The following does not work: https://apps.openbudgets.eu/dam/statistics?amount=%27amount%27&dimensions=%27fundingClassification.prefLabel%27&BABBAGE_FACT_URI=%27http%3A%2F%2Fws307.math.auth.gr%2Frudolf%2Fpublic%2Fapi%2F3%2Fcubes%2Faragon-2007-income__3209b%2Ffacts%3F%27
I have checked with POST and it does not work either, as it doesn't accept the parameters.
This change is somewhat forced because we have to go with HTTPS and it is not easy to implement that to our server right now.
Like timeseries did, descriptive statistics also run directly to the R server right now. It is time to migrate the algorithm to DAM. Although it seems it is ready, when I try this:
http://dam-obeu.iais.fraunhofer.de/statistics?dimensions=budgetPhase.prefLabel&amount=amount&json_data=http://apps.openbudgets.eu/api/3/cubes/budget-athens-expenditure-2006__97b39/facts
the resulting job never finishes.
What could be the issue?