Load Latin & AG
Browse files- .github/cleanup_neo4j.py +4 -0
- .github/load_ancient_greek.py +5 -0
- .github/{load.py → load_german.py} +0 -2
- .github/load_latin.py +4 -0
- .github/workflows/ci-cd.yaml +29 -4
- README.md +1 -1
- greek.yaml → ancient-greek.yaml +0 -0
.github/cleanup_neo4j.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from wilhelm_python_sdk.database_manager import cleanup_neo4j
|
2 |
+
|
3 |
+
if __name__ == "__main__":
|
4 |
+
cleanup_neo4j()
|
.github/load_ancient_greek.py
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from wilhelm_python_sdk.ancient_greek_neo4j_loader import load_into_database
|
2 |
+
|
3 |
+
if __name__ == "__main__":
|
4 |
+
cleanup_neo4j()
|
5 |
+
load_into_database("ancient-greek.yaml")
|
.github/{load.py → load_german.py}
RENAMED
@@ -1,6 +1,4 @@
|
|
1 |
-
from wilhelm_python_sdk.database_manager import cleanup_neo4j
|
2 |
from wilhelm_python_sdk.german_neo4j_loader import load_into_database
|
3 |
|
4 |
if __name__ == "__main__":
|
5 |
-
cleanup_neo4j()
|
6 |
load_into_database("german.yaml")
|
|
|
|
|
1 |
from wilhelm_python_sdk.german_neo4j_loader import load_into_database
|
2 |
|
3 |
if __name__ == "__main__":
|
|
|
4 |
load_into_database("german.yaml")
|
.github/load_latin.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from wilhelm_python_sdk.latin_neo4j_loader import load_into_database
|
2 |
+
|
3 |
+
if __name__ == "__main__":
|
4 |
+
load_into_database("latin.yaml")
|
.github/workflows/ci-cd.yaml
CHANGED
@@ -27,8 +27,7 @@ jobs:
|
|
27 |
use-custom-yamllint-config-file: true
|
28 |
use-custom-markdownlint-config-file: true
|
29 |
|
30 |
-
|
31 |
-
name: Load vocabularies
|
32 |
if: github.ref == 'refs/heads/master'
|
33 |
needs: yml-md-style-and-link-checks
|
34 |
runs-on: ubuntu-latest
|
@@ -40,10 +39,36 @@ jobs:
|
|
40 |
uses: actions/setup-python@v4
|
41 |
with:
|
42 |
python-version: "3.10"
|
43 |
-
- name:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
run: |
|
45 |
pip3 install --upgrade --force-reinstall wilhelm-python-sdk
|
46 |
-
python3 .
|
47 |
env:
|
48 |
NEO4J_URI: ${{ secrets.NEO4J_URI }}
|
49 |
NEO4J_DATABASE: ${{ secrets.NEO4J_DATABASE }}
|
|
|
27 |
use-custom-yamllint-config-file: true
|
28 |
use-custom-markdownlint-config-file: true
|
29 |
|
30 |
+
cleanup-neo4j:
|
|
|
31 |
if: github.ref == 'refs/heads/master'
|
32 |
needs: yml-md-style-and-link-checks
|
33 |
runs-on: ubuntu-latest
|
|
|
39 |
uses: actions/setup-python@v4
|
40 |
with:
|
41 |
python-version: "3.10"
|
42 |
+
- name: Cleanup
|
43 |
+
run: |
|
44 |
+
pip3 install --upgrade --force-reinstall wilhelm-python-sdk
|
45 |
+
python3 .github/clean_up_neo4j.py
|
46 |
+
env:
|
47 |
+
NEO4J_URI: ${{ secrets.NEO4J_URI }}
|
48 |
+
NEO4J_DATABASE: ${{ secrets.NEO4J_DATABASE }}
|
49 |
+
NEO4J_USERNAME: ${{ secrets.NEO4J_USERNAME }}
|
50 |
+
NEO4J_PASSWORD: ${{ secrets.NEO4J_PASSWORD }}
|
51 |
+
|
52 |
+
load-vocabulary:
|
53 |
+
name: Load vocabularies
|
54 |
+
if: github.ref == 'refs/heads/master'
|
55 |
+
needs: cleanup-neo4j
|
56 |
+
runs-on: ubuntu-latest
|
57 |
+
strategy:
|
58 |
+
matrix:
|
59 |
+
script: [.github/load_german.py, .github/load_latin.py, .github/load_ancient_greek.py]
|
60 |
+
steps:
|
61 |
+
- uses: actions/checkout@v3
|
62 |
+
with:
|
63 |
+
fetch-depth: 0
|
64 |
+
- name: Set up Python 3.10
|
65 |
+
uses: actions/setup-python@v4
|
66 |
+
with:
|
67 |
+
python-version: "3.10"
|
68 |
+
- name: Run ${{ matrix.script }}
|
69 |
run: |
|
70 |
pip3 install --upgrade --force-reinstall wilhelm-python-sdk
|
71 |
+
python3 ${{ matrix.script }}
|
72 |
env:
|
73 |
NEO4J_URI: ${{ secrets.NEO4J_URI }}
|
74 |
NEO4J_DATABASE: ${{ secrets.NEO4J_DATABASE }}
|
README.md
CHANGED
@@ -471,7 +471,7 @@ with
|
|
471 |
> instead. This is why we left the conjugation link to Wiktionary for now and it will definitely serve us well as I'm
|
472 |
> trying to make it happen
|
473 |
|
474 |
-
### [Ancient Greek](./greek.yaml)
|
475 |
|
476 |
Unless otherwise mentioned, we are talking about Attic Greek throughout this repository.
|
477 |
|
|
|
471 |
> instead. This is why we left the conjugation link to Wiktionary for now and it will definitely serve us well as I'm
|
472 |
> trying to make it happen
|
473 |
|
474 |
+
### [Ancient Greek](./ancient-greek.yaml)
|
475 |
|
476 |
Unless otherwise mentioned, we are talking about Attic Greek throughout this repository.
|
477 |
|
greek.yaml → ancient-greek.yaml
RENAMED
File without changes
|