Export OpenRefine-Projekt für Debugging
This commit is contained in:
parent
22e4ed4213
commit
ce6220a075
|
@ -39,6 +39,7 @@ tasks:
|
|||
- output/01-bibliotheca-pre/*.tsv
|
||||
generates:
|
||||
- output/02-bibliotheca-main/bibliotheca.csv
|
||||
- output/02-bibliotheca-main/bibliotheca.openrefine.tar.gz
|
||||
env:
|
||||
REFINE_WORKDIR: output/02-bibliotheca-main
|
||||
REFINE_LOGFILE: log/02-bibliotheca-main/{{.DATE}}.log
|
||||
|
|
|
@ -725,6 +725,20 @@ echo
|
|||
|
||||
checkpoint "Export"; echo
|
||||
|
||||
# Export des OpenRefine-Projekts für Tests
|
||||
format="openrefine.tar.gz"
|
||||
echo "export ${p} to ${format} file..."
|
||||
if curl -fs \
|
||||
--data project="${projects[$p]}" \
|
||||
"${endpoint}/command/core/export-project" \
|
||||
> "${workdir}/${p}.${format}"
|
||||
then
|
||||
log "exported ${p} (${projects[$p]}) to ${workdir}/${p}.${format}"
|
||||
else
|
||||
error "export of ${p} (${projects[$p]}) failed!"
|
||||
fi
|
||||
echo
|
||||
|
||||
# Export der PICA3-Spalten als CSV
|
||||
# Spalte 2199 muss vorne stehen, weil später für Sortierung benötigt
|
||||
format="csv"
|
||||
|
|
Loading…
Reference in New Issue