How to save projects to workspace files

19 views
Skip to first unread message

ernesto.o...@gmail.com

unread,
Jun 23, 2021, 11:04:50 AM6/23/21
to OpenRefine Development

Hello,

I am working in an automated pipeline to process/transform files with OpenRefine and https://github.com/opencultureconsulting/openrefine-client. The automation process creates the projects in OpenRefine from different files and I want to save the workspace after each file is processed for additional debugging.

The issue is that after each file is processed the OpenRefine workspace is just empty. Then I need to wait until the OpenRefine autosave is triggered to have the project files persisted in the workspace. With REFINE_AUTOSAVE_PERIOD I can configure this wait time to 1 minute but no less than that. Is there another way to trigger the save to workspace action as needed?

Regards,
Ernesto

Thad Guidry

unread,
Jun 23, 2021, 11:34:04 AM6/23/21
to openref...@googlegroups.com
In fact, OpenRefine's internal API is not a public interface and subject to change at any time.
There's also the issue of us not even persisting things immediately upon any Project Create as well:  https://github.com/OpenRefine/OpenRefine/issues/3433

If you want a "save projects" as part of an exposed public API, then I think you would have to ask for a Feature request https://github.com/OpenRefine/OpenRefine/issues/new/choose
With no guarantees on if anyone might work on this in the future, but I would say it's always still good to at least request a feature that is missing and is very important to your work.



--
You received this message because you are subscribed to the Google Groups "OpenRefine Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrefine-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openrefine-dev/1814510f-c1df-4faf-b3cb-6e05533ac450n%40googlegroups.com.

Felix Lohmeier

unread,
Jun 23, 2021, 11:53:37 AM6/23/21
to OpenRefine Development
Hi Ernesto,

Closing OpenRefine triggers saving all projects. I would recommend to stop the OpenRefine server and start it again with the same (specific) data directory.

Best wishes,
Felix

Reply all
Reply to author
Forward
0 new messages