Hi
I’m trying to export meta data from Tropy using the CSV plug in. I’ve customized a template and am using that for the export option.
The text file opens like this:
Is the dc vocab exporting as http addresses? What am I doing wrong?
Here’s the template:
And here’s the plug-in
Hi, this looks good to me. The full URIs (http addresses) are the canonical representation of the properties. The prefix form (e.g. dc:title) is just a shorthand for the full URI.
Thanks for the reply. Good to know I’m not doing anything wrong! Is there any way just the name of the field (e.g. “title”, “author” etc) can be exported and not the full URIs? Thanks.
There’s no option in the plugin to export only the names. The reason is that with names, a reverse-mapping on import is difficult to do (you’d need to add a mapping template similar to the way it works in the Zotero export).
Having said that, it should be easy to remove/substitute the first line after the export. If your fields are always the same, you can just prepare the header line and swap it out. Or you could use pattern-replacement, for example in UNIX shell you could do:
sed -i '1{s|http://purl.org/dc/elements/1.1/||g}' export.csv
1 Like
Thanks for the response! For me it’ll be easiest to just substitute the first line after the export.