Skip to content

Commit f48bdb3

Browse files
committed
Fixed file paths on scripts.
1 parent 138991a commit f48bdb3

4 files changed

Lines changed: 19 additions & 12 deletions

File tree

python/CSV-JSON-Repository-Item.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"outputs": [],
1717
"source": [
1818
"# Open the CSV containing the content.\n",
19-
"infile = codecs.open('../CSV/item-records-export.csv','r','utf-8')\n",
19+
"infile = codecs.open('../csv/item-records-export.csv','r','utf-8')\n",
2020
"item_record_csv = csv.reader(infile,delimiter=',')\n",
2121
"\n",
2222
"# Create an iterable for the script.\n",
@@ -176,7 +176,7 @@
176176
"outputs": [],
177177
"source": [
178178
"# Write the results to a file for uploading to the git repo.\n",
179-
"with codecs.open('../JSON/item-records.json','a',encoding='utf-8') as outfile:\n",
179+
"with codecs.open('../json-ld/item-records.json','a',encoding='utf-8') as outfile:\n",
180180
" json.dump(data,outfile,sort_keys = True, indent = 4, ensure_ascii = False)"
181181
]
182182
},

python/CSV-to-JSON-DLL-Author.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"outputs": [],
1717
"source": [
1818
"# Open the CSV containing the content.\n",
19-
"infile = codecs.open('../CSV/author-authorities-export.csv','r',encoding='utf-8')\n",
19+
"infile = codecs.open('../csv/author-authorities-export.csv','r',encoding='utf-8')\n",
2020
"author_data = csv.reader(infile,delimiter=',')\n",
2121
"\n",
2222
"# Create an iterable for the script.\n",
@@ -271,7 +271,7 @@
271271
"metadata": {},
272272
"outputs": [],
273273
"source": [
274-
"with codecs.open('../JSON/authors.json','a',encoding='utf-8') as outfile:\n",
274+
"with codecs.open('../json-ld/authors.json','a',encoding='utf-8') as outfile:\n",
275275
" json.dump(data,outfile,sort_keys = True, indent = 4, ensure_ascii = False)"
276276
]
277277
},

python/CSV-to-JSON-DLL-Work.ipynb

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 6,
5+
"execution_count": 1,
66
"metadata": {},
77
"outputs": [],
88
"source": [
@@ -11,12 +11,12 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 7,
14+
"execution_count": 3,
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
1818
"# Open the CSV containing the content.\n",
19-
"infile = codecs.open('../CSV/dll-works-export.csv','r',encoding='utf-8')\n",
19+
"infile = codecs.open('../csv/dll-works-export.csv','r',encoding='utf-8')\n",
2020
"work_data = csv.reader(infile,delimiter=',')\n",
2121
"\n",
2222
"# Create an iterable for the script.\n",
@@ -28,7 +28,7 @@
2828
},
2929
{
3030
"cell_type": "code",
31-
"execution_count": 8,
31+
"execution_count": 4,
3232
"metadata": {},
3333
"outputs": [],
3434
"source": [
@@ -296,13 +296,20 @@
296296
},
297297
{
298298
"cell_type": "code",
299-
"execution_count": 9,
299+
"execution_count": 8,
300300
"metadata": {},
301301
"outputs": [],
302302
"source": [
303-
"with codecs.open('../JSON/works.json','a',encoding='utf-8') as outfile:\n",
303+
"with codecs.open('../json-ld/works.json','a',encoding='utf-8') as outfile:\n",
304304
" json.dump(data,outfile,sort_keys = True, indent = 4, ensure_ascii = False)"
305305
]
306+
},
307+
{
308+
"cell_type": "code",
309+
"execution_count": null,
310+
"metadata": {},
311+
"outputs": [],
312+
"source": []
306313
}
307314
],
308315
"metadata": {

python/CSV-to-JSON-WebPage.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"outputs": [],
1717
"source": [
1818
"# Open the CSV containing the content.\n",
19-
"infile = codecs.open('../CSV/web-pages-export.csv','r',encoding='utf-8')\n",
19+
"infile = codecs.open('../csv/web-pages-export.csv','r',encoding='utf-8')\n",
2020
"webpage_data = csv.reader(infile,delimiter=',')\n",
2121
"\n",
2222
"# Create an iterable for the script.\n",
@@ -175,7 +175,7 @@
175175
"outputs": [],
176176
"source": [
177177
"# Write the results to a file for uploading to the git repo.\n",
178-
"with codecs.open('../JSON/webpages.json','a',encoding='utf-8') as outfile:\n",
178+
"with codecs.open('../json-ld/webpages.json','a',encoding='utf-8') as outfile:\n",
179179
" json.dump(data,outfile,sort_keys = True, indent = 4, ensure_ascii = False)"
180180
]
181181
},

0 commit comments

Comments
 (0)