Debugging: OpenRefine-Projekt für Teil 03

This commit is contained in:
Felix Lohmeier 2020-08-18 14:44:34 +02:00
parent fa1430ef67
commit 36cb5d95cf
2 changed files with 15 additions and 0 deletions

View File

@ -21,6 +21,7 @@ tasks:
- output/02-bibliotheca-main/bibliotheca.csv - output/02-bibliotheca-main/bibliotheca.csv
generates: generates:
- output/03-ba-sachsen/ba-sachsen.pic - output/03-ba-sachsen/ba-sachsen.pic
- output/03-ba-sachsen/ba-sachsen.openrefine.tar.gz
env: env:
REFINE_WORKDIR: output/03-ba-sachsen REFINE_WORKDIR: output/03-ba-sachsen
REFINE_LOGFILE: log/03-ba-sachsen/{{.DATE}}.log REFINE_LOGFILE: log/03-ba-sachsen/{{.DATE}}.log

View File

@ -466,6 +466,20 @@ echo
checkpoint "Export"; 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 in PICA+ # Export in PICA+
format="pic" format="pic"
echo "export ${p} to pica+ file using template..." echo "export ${p} to pica+ file using template..."