-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
302 lines (226 loc) · 15.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
LIMIT?=1000
CONCURRENCY?=16
DEBUG?=1
DOT=dot
QUIET?=1
PYTHON?=python3
GETTY_PIPELINE_OUTPUT?=`pwd`/output
GETTY_PIPELINE_INPUT?=`pwd`/data
GETTY_PIPELINE_TMP_PATH?=/tmp
GETTY_PIPELINE_COMMON_SERVICE_FILES_PATH?=`pwd`/data/common
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
# This is a more efficient split based on the number of processes we can run concurrently, but it depends on linux-specific arguments to split.
SPLIT=split -l 25000
else
# This is slightly less efficient, especially for small datasets, but will work reasonably well in the expected cases and will work on both linux and MacOS.
SPLIT=split -n r/$(CONCURRENCY)
endif
SHELL := /bin/bash
docker: dockerimage
docker run -t --env GETTY_PIPELINE_LIMIT=$(LIMIT) --env GETTY_PIPELINE_COMMON_SERVICE_FILES_PATH=/services/common --env GETTY_PIPELINE_SERVICE_FILES_PATH=/services --env GETTY_PIPELINE_INPUT=/data --env GETTY_PIPELINE_OUTPUT=/output --env GETTY_PIPELINE_TMP_PATH=/output/tmp --env AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID --env AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY -v$(GETTY_PIPELINE_INPUT):/data:Z -v$(GETTY_PIPELINE_OUTPUT):/output:Z -v$(GETTY_PIPELINE_INPUT):/services:Z -it pipeline make clean sales
cleandocker: dockerimage
docker run -t --env AWS_ACCESS_KEY_ID=$(AWS_ACCESS_KEY_ID) --env AWS_SECRET_ACCESS_KEY=$(AWS_SECRET_ACCESS_KEY) -v$(GETTY_PIPELINE_OUTPUT):/output pipeline make fetch aata nt
dockertest: dockerimage
docker run -t --env GETTY_PIPELINE_LIMIT=$(LIMIT) --env GETTY_PIPELINE_COMMON_SERVICE_FILES_PATH=/services/common --env GETTY_PIPELINE_SERVICE_FILES_PATH=/services --env GETTY_PIPELINE_INPUT=/data --env GETTY_PIPELINE_OUTPUT=/output --env GETTY_PIPELINE_TMP_PATH=/output/tmp -v$(GETTY_PIPELINE_INPUT):/data:Z -v$(GETTY_PIPELINE_OUTPUT):/output:Z -v$(GETTY_PIPELINE_INPUT):/services:Z --env GETTY_PIPELINE_COMMON_SERVICE_FILES_PATH=/services/common pipeline make test
dockersh: dockerimage
docker run -it --env GETTY_PIPELINE_LIMIT=$(LIMIT) --env GETTY_PIPELINE_COMMON_SERVICE_FILES_PATH=/services/common --env GETTY_PIPELINE_SERVICE_FILES_PATH=/services --env GETTY_PIPELINE_INPUT=/data --env GETTY_PIPELINE_OUTPUT=/output --env GETTY_PIPELINE_TMP_PATH=/output/tmp -v$(GETTY_PIPELINE_INPUT):/data:Z -v$(GETTY_PIPELINE_OUTPUT):/output:Z -v$(GETTY_PIPELINE_INPUT):/services:Z --env GETTY_PIPELINE_COMMON_SERVICE_FILES_PATH=/services/common pipeline /bin/bash
dockerimage: Dockerfile
docker build -t pipeline .
### FETCH DATA FROM S3
fetch: fetchaata fetchsales fetchknoedler
fetchaata:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)/pipeline
mkdir -p $(GETTY_PIPELINE_INPUT)/aata
aws s3 sync s3://jpgt-or-pvt-semantic/data/aata $(GETTY_PIPELINE_INPUT)/aata
fetchsales:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)/pipeline
mkdir -p $(GETTY_PIPELINE_INPUT)/sales
aws s3 sync --exclude '*' --include 'sales*_0.csv' s3://jpgt-or-provenance-01/provenance_batch/data/sales/ $(GETTY_PIPELINE_INPUT)/sales/
aws s3 sync s3://jpgt-or-provenance-01/provenance_batch/data/sales/ $(GETTY_PIPELINE_INPUT)/sales/
aws s3 cp s3://jpgt-or-provenance-01/provenance_batch/data/uri_to_uuid_map.json $(GETTY_PIPELINE_INPUT)/
cp $(GETTY_PIPELINE_INPUT)/uri_to_uuid_map.json "${GETTY_PIPELINE_TMP_PATH}/uri_to_uuid_map.json"
fetchsales-staging:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)/pipeline
mkdir -p $(GETTY_PIPELINE_INPUT)/sales
aws s3 sync --exclude '*' --include 'sales*_0.csv' s3://jpgt-or-provenance-01/provenance_batch/data/sales/ $(GETTY_PIPELINE_INPUT)/sales/
# To run the pipeline using staging data before it is moved into the production path, replace the above line with the following one (and update the s3 path as appropriate):
aws s3 sync --exclude '*' --include 'sales_*' s3://jpgt-or-provenance-01/provenance_batch/data/stardata/exports/make_csv_files_2020-07-15/ $(GETTY_PIPELINE_INPUT)/sales/
aws s3 cp s3://jpgt-or-provenance-01/provenance_batch/data/uri_to_uuid_map.json $(GETTY_PIPELINE_INPUT)/
cp $(GETTY_PIPELINE_INPUT)/uri_to_uuid_map.json "${GETTY_PIPELINE_TMP_PATH}/uri_to_uuid_map.json"
fetchknoedler:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)/pipeline
mkdir -p $(GETTY_PIPELINE_INPUT)/knoedler
aws s3 sync s3://jpgt-or-provenance-01/provenance_batch/data/knoedler $(GETTY_PIPELINE_INPUT)/knoedler
aws s3 cp s3://jpgt-or-provenance-01/provenance_batch/data/uri_to_uuid_map.json $(GETTY_PIPELINE_INPUT)/
cp $(GETTY_PIPELINE_INPUT)/uri_to_uuid_map.json "${GETTY_PIPELINE_TMP_PATH}/uri_to_uuid_map.json"
fetchpeople:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)/pipeline
mkdir -p $(GETTY_PIPELINE_INPUT)/people
aws s3 sync s3://jpgt-or-provenance-01/provenance_batch/data/people $(GETTY_PIPELINE_INPUT)/people
aws s3 cp s3://jpgt-or-provenance-01/provenance_batch/data/uri_to_uuid_map.json $(GETTY_PIPELINE_INPUT)/
cp $(GETTY_PIPELINE_INPUT)/uri_to_uuid_map.json "${GETTY_PIPELINE_TMP_PATH}/uri_to_uuid_map.json"
### SHARED POST-PROCESSING
nt: jsonlist
mkdir -p $(GETTY_PIPELINE_TMP_PATH)
curl -s 'https://linked.art/ns/v1/linked-art.json' > $(GETTY_PIPELINE_TMP_PATH)/linked-art.json
$(SPLIT) $(GETTY_PIPELINE_TMP_PATH)/json_files.txt "${GETTY_PIPELINE_TMP_PATH}/json_files.chunk."
echo 'Transcoding JSON-LD to N-Triples...'
ls $(GETTY_PIPELINE_TMP_PATH)/json_files.chunk.* | xargs -n 1 -P $(CONCURRENCY) $(PYTHON) ./scripts/json2nt.py -c $(GETTY_PIPELINE_TMP_PATH)/linked-art.json -l
rm $(GETTY_PIPELINE_TMP_PATH)/json_files.chunk.*
nq: jsonlist
mkdir -p $(GETTY_PIPELINE_TMP_PATH)
curl -s 'https://linked.art/ns/v1/linked-art.json' > $(GETTY_PIPELINE_TMP_PATH)/linked-art.json
$(SPLIT) $(GETTY_PIPELINE_TMP_PATH)/json_files.txt "${GETTY_PIPELINE_TMP_PATH}/json_files.chunk."
echo 'Transcoding JSON-LD to N-Quads...'
ls $(GETTY_PIPELINE_TMP_PATH)/json_files.chunk.* | xargs -n 1 -P $(CONCURRENCY) $(PYTHON) ./scripts/json2nq.py -c $(GETTY_PIPELINE_TMP_PATH)/linked-art.json -l
find $(GETTY_PIPELINE_OUTPUT) -name '[0-9a-f][0-9a-f]*.nq' | xargs -n 256 cat | gzip - > $(GETTY_PIPELINE_OUTPUT)/all.nq.gz
gzip -k $(GETTY_PIPELINE_OUTPUT)/meta.nq
rm $(GETTY_PIPELINE_TMP_PATH)/json_files.chunk.*
scripts/find_matching_json_files: scripts/find_matching_json_files.swift
swiftc -O scripts/find_matching_json_files.swift -o scripts/find_matching_json_files
postprocessing_rewrite_uris:
PYTHONPATH=`pwd` $(PYTHON) ./scripts/rewrite_uris_to_uuids_parallel.py 'tag:getty.edu,2019:digital:pipeline:REPLACE-WITH-UUID:' "${GETTY_PIPELINE_TMP_PATH}/uri_to_uuid_map.json"
jsonlist:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)
find $(GETTY_PIPELINE_OUTPUT) -name '*.json' > $(GETTY_PIPELINE_TMP_PATH)/json_files.txt
### AATA
aata: aatadata jsonlist
cat $(GETTY_PIPELINE_TMP_PATH)/json_files.txt | PYTHONPATH=`pwd` $(PYTHON) ./scripts/generate_metadata_graph.py aata
aatadata: aatapipeline aatapostprocessing
find $(GETTY_PIPELINE_OUTPUT) -type d -empty -delete
aatapipeline:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)/pipeline
QUIET=$(QUIET) GETTY_PIPELINE_DEBUG=$(DEBUG) GETTY_PIPELINE_LIMIT=$(LIMIT) $(PYTHON) ./aata.py
aatapostprocessing: postprocessing_rewrite_uris
ls $(GETTY_PIPELINE_OUTPUT) | PYTHONPATH=`pwd` xargs -n 1 -P $(CONCURRENCY) -I '{}' $(PYTHON) ./scripts/coalesce_json.py "${GETTY_PIPELINE_OUTPUT}/{}"
# Reorganizing JSON files...
find $(GETTY_PIPELINE_OUTPUT) -name '*.json' | PYTHONPATH=`pwd` xargs -n 256 -P $(CONCURRENCY) $(PYTHON) ./scripts/reorganize_json.py
aatagraph: $(GETTY_PIPELINE_TMP_PATH)/aata.pdf
open -a Preview $(GETTY_PIPELINE_TMP_PATH)/aata.pdf
$(GETTY_PIPELINE_TMP_PATH)/aata.dot: aata.py
./aata.py dot > $(GETTY_PIPELINE_TMP_PATH)/aata.dot
$(GETTY_PIPELINE_TMP_PATH)/aata.pdf: $(GETTY_PIPELINE_TMP_PATH)/aata.dot
$(DOT) -Tpdf -o $(GETTY_PIPELINE_TMP_PATH)/aata.pdf $(GETTY_PIPELINE_TMP_PATH)/aata.dot
### PEOPLE
people: peopledata jsonlist
cat $(GETTY_PIPELINE_TMP_PATH)/json_files.txt | PYTHONPATH=`pwd` $(PYTHON) ./scripts/generate_metadata_graph.py people
peopledata: peoplepipeline peoplepostprocessing
find $(GETTY_PIPELINE_OUTPUT) -type d -empty -delete
peoplepipeline:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)/pipeline
QUIET=$(QUIET) GETTY_PIPELINE_DEBUG=$(DEBUG) GETTY_PIPELINE_LIMIT=$(LIMIT) $(PYTHON) ./people.py
peoplepostprocessing: postprocessing_rewrite_uris
ls $(GETTY_PIPELINE_OUTPUT) | PYTHONPATH=`pwd` xargs -n 1 -P $(CONCURRENCY) -I '{}' $(PYTHON) ./scripts/coalesce_json.py "${GETTY_PIPELINE_OUTPUT}/{}"
PYTHONPATH=`pwd` $(PYTHON) ./scripts/remove_meaningless_ids.py
# Reorganizing JSON files...
find $(GETTY_PIPELINE_OUTPUT) -name '*.json' | PYTHONPATH=`pwd` xargs -n 256 -P $(CONCURRENCY) $(PYTHON) ./scripts/reorganize_json.py
find $(GETTY_PIPELINE_OUTPUT) -name '*.json' | PYTHONPATH=`pwd` xargs -n 256 -P $(CONCURRENCY) $(PYTHON) ./scripts/patch_data_people.py
peoplepostsalefilelist: scripts/find_matching_json_files
time ./scripts/find_matching_json_files "${GETTY_PIPELINE_TMP_PATH}/post_sale_rewrite_map.json" $(GETTY_PIPELINE_OUTPUT) > $(GETTY_PIPELINE_OUTPUT)/post-sale-matching-files.txt
peoplegraph: $(GETTY_PIPELINE_TMP_PATH)/people.pdf
open -a Preview $(GETTY_PIPELINE_TMP_PATH)/people.pdf
$(GETTY_PIPELINE_TMP_PATH)/people.dot: people.py
./people.py dot > $(GETTY_PIPELINE_TMP_PATH)/people.dot
$(GETTY_PIPELINE_TMP_PATH)/people.pdf: $(GETTY_PIPELINE_TMP_PATH)/people.dot
$(DOT) -Tpdf -o $(GETTY_PIPELINE_TMP_PATH)/people.pdf $(GETTY_PIPELINE_TMP_PATH)/people.dot
### MERGED PROV PROJECTS
prov: provpipelines provpostprocessing jsonlist
cat $(GETTY_PIPELINE_TMP_PATH)/json_files.txt | PYTHONPATH=`pwd` $(PYTHON) ./scripts/generate_metadata_graph.py sales
find $(GETTY_PIPELINE_OUTPUT) -type d -empty -delete
provpipelines: salespipeline knoedlerpipeline peoplepipeline
provpostprocessing: salespostprocessing knoedlerpostprocessing peoplepostprocessing
### SALES
sales: salesdata jsonlist
cat $(GETTY_PIPELINE_TMP_PATH)/json_files.txt | PYTHONPATH=`pwd` $(PYTHON) ./scripts/generate_metadata_graph.py sales
salesprofile:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)/pipeline
QUIET=$(QUIET) GETTY_PIPELINE_DEBUG=$(DEBUG) GETTY_PIPELINE_LIMIT=$(LIMIT) $(PYTHON) -m cProfile -o $(GETTY_PIPELINE_OUTPUT)/pipeline.prof ./sales.py
snakeviz $(GETTY_PIPELINE_OUTPUT)/pipeline.prof
# QUIET=$(QUIET) GETTY_PIPELINE_DEBUG=$(DEBUG) GETTY_PIPELINE_LIMIT=$(LIMIT) $(PYTHON) -m flamegraph -o $(GETTY_PIPELINE_OUTPUT)/pipeline.flame.log ./sales.py
# perl ~/data/prog/ext/FlameGraph/flamegraph.pl --title "Sales Pipeline" $(GETTY_PIPELINE_OUTPUT)/pipeline.flame.log > $(GETTY_PIPELINE_OUTPUT)/pipeline.flame.svg
salesdata: salespipeline salespostprocessing
find $(GETTY_PIPELINE_OUTPUT) -type d -empty -delete
salespipeline:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)/pipeline
QUIET=$(QUIET) GETTY_PIPELINE_DEBUG=$(DEBUG) GETTY_PIPELINE_LIMIT=$(LIMIT) $(PYTHON) ./sales.py
salespostprocessing: salespostsalerewrite postprocessing_rewrite_uris
ls $(GETTY_PIPELINE_OUTPUT) | PYTHONPATH=`pwd` xargs -n 1 -P $(CONCURRENCY) -I '{}' $(PYTHON) ./scripts/coalesce_json.py "${GETTY_PIPELINE_OUTPUT}/{}"
PYTHONPATH=`pwd` $(PYTHON) ./scripts/remove_meaningless_ids.py
# Reorganizing JSON files...
find $(GETTY_PIPELINE_OUTPUT) -name '*.json' | PYTHONPATH=`pwd` xargs -n 256 -P $(CONCURRENCY) $(PYTHON) ./scripts/reorganize_json.py
salespostsalerewrite: salespostsalefilelist
cat $(GETTY_PIPELINE_OUTPUT)/post-sale-matching-files.txt | PYTHONPATH=`pwd` xargs -n 256 $(PYTHON) ./scripts/rewrite_post_sales_uris.py "${GETTY_PIPELINE_TMP_PATH}/post_sale_rewrite_map.json"
salespostsalefilelist: scripts/find_matching_json_files
time ./scripts/find_matching_json_files "${GETTY_PIPELINE_TMP_PATH}/post_sale_rewrite_map.json" $(GETTY_PIPELINE_OUTPUT) > $(GETTY_PIPELINE_OUTPUT)/post-sale-matching-files.txt
salesgraph: $(GETTY_PIPELINE_TMP_PATH)/sales.pdf
open -a Preview $(GETTY_PIPELINE_TMP_PATH)/sales.pdf
$(GETTY_PIPELINE_TMP_PATH)/sales.dot: sales.py
./sales.py dot > $(GETTY_PIPELINE_TMP_PATH)/sales.dot
$(GETTY_PIPELINE_TMP_PATH)/sales.pdf: $(GETTY_PIPELINE_TMP_PATH)/sales.dot
$(DOT) -Tpdf -o $(GETTY_PIPELINE_TMP_PATH)/sales.pdf $(GETTY_PIPELINE_TMP_PATH)/sales.dot
### KNOEDLER
knoedler: knoedlerdata jsonlist
cat $(GETTY_PIPELINE_TMP_PATH)/json_files.txt | PYTHONPATH=`pwd` $(PYTHON) ./scripts/generate_metadata_graph.py knoedler
knoedlerdata: knoedlerpipeline knoedlerpostprocessing
find $(GETTY_PIPELINE_OUTPUT) -type d -empty -delete
knoedlerpipeline:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)/pipeline
QUIET=$(QUIET) GETTY_PIPELINE_DEBUG=$(DEBUG) GETTY_PIPELINE_LIMIT=$(LIMIT) $(PYTHON) ./knoedler.py
knoedlerpostprocessing: postprocessing_rewrite_uris
ls $(GETTY_PIPELINE_OUTPUT) | PYTHONPATH=`pwd` xargs -n 1 -P $(CONCURRENCY) -I '{}' $(PYTHON) ./scripts/coalesce_json.py "${GETTY_PIPELINE_OUTPUT}/{}"
PYTHONPATH=`pwd` $(PYTHON) ./scripts/remove_meaningless_ids.py
# Reorganizing JSON files...
find $(GETTY_PIPELINE_OUTPUT) -name '*.json' | PYTHONPATH=`pwd` xargs -n 256 -P $(CONCURRENCY) $(PYTHON) ./scripts/reorganize_json.py
find $(GETTY_PIPELINE_OUTPUT) -name '*.json' | PYTHONPATH=`pwd` xargs -n 256 -P $(CONCURRENCY) $(PYTHON) ./scripts/patch_data_knoedler.py
knoedlergraph: $(GETTY_PIPELINE_TMP_PATH)/knoedler.pdf
open -a Preview $(GETTY_PIPELINE_TMP_PATH)/knoedler.pdf
$(GETTY_PIPELINE_TMP_PATH)/knoedler.dot: knoedler.py
./knoedler.py dot > $(GETTY_PIPELINE_TMP_PATH)/knoedler.dot
$(GETTY_PIPELINE_TMP_PATH)/knoedler.pdf: $(GETTY_PIPELINE_TMP_PATH)/knoedler.dot
$(DOT) -Tpdf -o $(GETTY_PIPELINE_TMP_PATH)/knoedler.pdf $(GETTY_PIPELINE_TMP_PATH)/knoedler.dot
#######################
### Goupil
goupil: goupildata jsonlist
cat $(GETTY_PIPELINE_TMP_PATH)/json_files.txt | PYTHONPATH=`pwd` $(PYTHON) ./scripts/generate_metadata_graph.py goupil
goupildata: goupilpipeline goupilpostprocessing
find $(GETTY_PIPELINE_OUTPUT) -type d -empty -delete
goupilpipeline:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)/pipeline
QUIET=$(QUIET) GETTY_PIPELINE_DEBUG=$(DEBUG) GETTY_PIPELINE_LIMIT=$(LIMIT) $(PYTHON) ./goupil.py
goupilpostprocessing: postprocessing_rewrite_uris
ls $(GETTY_PIPELINE_OUTPUT) | PYTHONPATH=`pwd` xargs -n 1 -P $(CONCURRENCY) -I '{}' $(PYTHON) ./scripts/coalesce_json.py "${GETTY_PIPELINE_OUTPUT}/{}"
PYTHONPATH=`pwd` $(PYTHON) ./scripts/remove_meaningless_ids.py
# Reorganizing JSON files...
find $(GETTY_PIPELINE_OUTPUT) -name '*.json' | PYTHONPATH=`pwd` xargs -n 256 -P $(CONCURRENCY) $(PYTHON) ./scripts/reorganize_json.py
find $(GETTY_PIPELINE_OUTPUT) -name '*.json' | PYTHONPATH=`pwd` xargs -n 256 -P $(CONCURRENCY) $(PYTHON) ./scripts/patch_data_goupil.py
#######################
# in order to avoid polluting the history with formatting commits, only goupil will be formatted using black
black: clean
isort --profile black pipeline/projects/goupil
black -l 120 pipeline/projects/goupil
black -l 120 goupil.py
black -l 120 tests/*_goupil_*.py
upload:
./upload_to_arches.py
test:
mkdir -p $(GETTY_PIPELINE_TMP_PATH)/pipeline_tests
PYTHONPATH=`pwd` python3 -B setup.py test
clean:
rm -rf $(GETTY_PIPELINE_OUTPUT)/*
rm -rf $(GETTY_PIPELINE_TMP_PATH)/pipeline/*
rm -f $(GETTY_PIPELINE_TMP_PATH)/json_files.txt
rm -f $(GETTY_PIPELINE_TMP_PATH)/aata.pdf
rm -f $(GETTY_PIPELINE_TMP_PATH)/aata.dot
rm -f $(GETTY_PIPELINE_TMP_PATH)/sales.pdf
rm -f $(GETTY_PIPELINE_TMP_PATH)/knoedler.pdf
rm -f $(GETTY_PIPELINE_TMP_PATH)/sales.dot
rm -f $(GETTY_PIPELINE_TMP_PATH)/knoedler.dot
rm -f $(GETTY_PIPELINE_TMP_PATH)/sales-tree.data
rm -f "${GETTY_PIPELINE_TMP_PATH}/post_sale_rewrite_map.json"
.PHONY: fetch fetchaata fetchsales fetchknoedler fetchsales-staging
.PHONY: aata aatagraph aatadata aatapipeline aatapostprocessing
.PHONY: knoedler knoedlergraph
.PHONY: people peoplegraph peopledata peoplepipeline peoplepostprocessing peoplepostsalefilelist
.PHONY: sales salesgraph salesdata salespipeline salespostprocessing salespostsalefilelist
.PHONY: test upload nt docker dockerimage dockertest jsonlist postprocessing_rewrite_uris