I encountered the following error while trying to export my OpenRefine project to RDF in Turtle format. I'm using OpenRefine on Windows 11 with the Chrome browser.
Has anyone faced this issue before or know how to resolve it? Any help would be greatly appreciated.
Thank you!
{"code":"error","message":"Missing or invalid csrf_token parameter"}
Indeed. What version of the RDF Transform plugin are you using?
The newest version should fix this issue. There were recent changes in OR that requires CSRF tokens for any command that might use expressions. So, RDF Transform has been updated to handle this issue.
I am using rdf-extension-1.5.0. I place this folder under: C:\Users\netsi\AppData\Roaming\OpenRefine\extensions\rdf-extension
Do I need any other components? Did I place it in the correct folder?
The RDF Extension is quite old and is replaced by RDF Transform. It is compatible with the latest OpenRefine and should get you what you want...and more.
I did install and tried RDF Transform but the problem persists. I want to use the option 'RDF as Turtle' under Export button. When I select it, it shows the same error. Other options like 'Comma-seperated value' is working fine. I can get csv file. So, the problem is I can't export my project as .ttl file.
If the older RDF Extension is still installed, that export is the old export and will fail as usual.
Use:
Export->RDF Transform->Pretty or Stream Exports->Turtle
The RDF Transform exports are at the bottom of the Export menu. You should be able to use any of the Pretty or Stream RDF exports.
Of course, you will also need to convert your RDF Extension work into the RDF Transform extension so you get the related export. You can preview what an export will look like there as well.