backup on import automated
This commit is contained in:
parent
48a9326c0d
commit
a05799a70e
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"word": "atheism",
|
||||
"pronunciation": "/ˈeɪθiɪzəm/",
|
||||
"meanings": [
|
||||
{
|
||||
"type": "noun",
|
||||
"definition": "A lack of belief in deities, or a belief that there is insufficient evidence to believe in a god."
|
||||
},
|
||||
{
|
||||
"type": "noun",
|
||||
"definition": "A non-belief in deities."
|
||||
},
|
||||
{
|
||||
"type": "noun",
|
||||
"definition": "A rejection of all religions, even non-theistic ones."
|
||||
},
|
||||
{
|
||||
"type": "noun",
|
||||
"definition": "Absence of belief in a particular deity, pantheon, or religious doctrine (notwithstanding belief in other deities)."
|
||||
},
|
||||
{
|
||||
"type": "noun",
|
||||
"definition": "Absence of belief in the One True God, defined by Moore as personal, immaterial and trinitarian (thus Islam, Judaism and unitarian Christianity), as opposed to monotheism."
|
||||
},
|
||||
{
|
||||
"type": "noun",
|
||||
"definition": "Absence of belief that any deities exist (including absence of the concept of deities)."
|
||||
},
|
||||
{
|
||||
"type": "noun",
|
||||
"definition": "Belief that no deities exist (sometimes including rejection of other religious beliefs)."
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"word": "chocolate",
|
||||
"pronunciation": "/ˈt͡ʃɒk(ə)lɪt/",
|
||||
"meanings": [
|
||||
{
|
||||
"type": "noun",
|
||||
"definition": "A black person; (uncountable) blackness."
|
||||
},
|
||||
{
|
||||
"type": "noun",
|
||||
"definition": "A dark, reddish-brown colour/color, like that of chocolate (also called chocolate brown)."
|
||||
},
|
||||
{
|
||||
"type": "noun",
|
||||
"definition": "A drink made by dissolving this food in boiling milk or water."
|
||||
},
|
||||
{
|
||||
"type": "noun",
|
||||
"definition": "A food made from ground roasted cocoa beans."
|
||||
},
|
||||
{
|
||||
"type": "noun",
|
||||
"definition": "A single, small piece of confectionery made from chocolate."
|
||||
},
|
||||
{
|
||||
"type": "adj",
|
||||
"definition": "Black (relating to any of various ethnic groups having dark pigmentation of the skin)."
|
||||
},
|
||||
{
|
||||
"type": "adj",
|
||||
"definition": "Having a dark reddish-brown colour/color."
|
||||
},
|
||||
{
|
||||
"type": "adj",
|
||||
"definition": "Made of or containing chocolate."
|
||||
},
|
||||
{
|
||||
"type": "verb",
|
||||
"definition": "To add chocolate to; to cover (food) in chocolate."
|
||||
},
|
||||
{
|
||||
"type": "verb",
|
||||
"definition": "To treat blood agar by heating in order to lyse the red blood cells in the medium."
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
cd ..
|
||||
timestamp=$(date +%s)
|
||||
sqlite3 database ".backup db-backups/backup"$timestamp".db"
|
||||
node importJSON.js
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
pipeline.sh
|
||||
node importJSON.cjs
|
|
@ -11,3 +11,7 @@ wiktionary-processed-array.json > wiktionary-grouped-objects.json
|
|||
|
||||
jq --slurp '.' wiktionary-grouped-objects.json > wiktionary-grouped-objects-array.json
|
||||
|
||||
#extract samples
|
||||
timestamp=$(date +%s)
|
||||
jq '. | select(.word=="chocolate")' wiktionary-grouped-objects.json > ../samples/chocolate-$timestamp.json
|
||||
|
||||
|
|
Loading…
Reference in New Issue