-
Notifications
You must be signed in to change notification settings - Fork 1
128 lines (120 loc) · 10.8 KB
/
main.yml
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
name: Ontology Documentation CI
on:
push:
branches:
- main
jobs:
ontdocI:
uses: sparqlunicorn/sparqlunicornGoesGIS-ontdoc/.github/workflows/udoc.yml@main
needs: build
name: Ontdoc I
with:
rdffilepath: signlist/signlist.ttl
version: v018
docpath: docs
prefixns: https://situx.github.io/cuneiformontology/
prefixnsshort: cunei
indexpages: true
metadatatable: true
createcollections: true
iiif: true
createnonNSPages: true
createVOWL: true
preferredlang: en
ghpages: true
ontdocII:
uses: sparqlunicorn/sparqlunicornGoesGIS-ontdoc/.github/workflows/udoc.yml@main
needs: ontdocI
name: Ontdoc II
with:
rdffilepath: merged.ttl
version: v018
docpath: docs
prefixns: https://situx.github.io/cuneiformontology/
prefixnsshort: cunei
indexpages: true
metadatatable: true
createcollections: true
iiif: true
createnonNSPages: true
createVOWL: true
preferredlang: en
sleepbefore: 300
ghpages: true
build:
runs-on: ubuntu-latest
concurrency: ci-${{ github.ref }}
#needs: [ontdocI,ontdocII]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
continue-on-error: true
with:
repository: sparqlunicorn/sparqlunicornGoesGIS-ontdoc
ref: v017dev
path: ontdocscript
- name: Create Ontology Documentation 🔧
run: |
sudo apt-get install python3 python3-setuptools python3-pip -y
sudo apt-get install gcc libpq-dev -y
sudo apt-get install python3-dev python3-pip -y
sudo apt-get install python3-venv python3-wheel -y
sudo pip3 install wheel pylode==2.13.2 rdflib shapely pillow
pylode -i ontmodel/cuneiformontology.ttl -o docs/ontology.html
pylode -i ontmodel/imageannotation_vocab.ttl -o docs/imageannotation.html
pylode -i interlinks/cuneiformontology_interlinks.ttl -o docs/ontologyinterlinks.html
pylode -i signlist/signlist.ttl -o docs/signlist.html
pylode -i postagging/akkadian.ttl -o docs/postagging_akkadian.html
pylode -i postagging/hittite.ttl -o docs/postagging_hittite.html
pylode -i examples/HS1174/ttl/hs1174.ttl -o docs/example_hs1174.html
pylode -i examples/HT073195/ttl/ht073195.ttl -o docs/example_ht073195.html
pylode -i examples/O147/ttl/o147.ttl -o docs/example_o147.html
pylode -i examples/TCH92/ttl/tch92.ttl -o docs/example_tch92.html
mkdir docs/examples/
mkdir docs/examples/hs1174/
mkdir docs/examples/ht073195/
mkdir docs/examples/tch92/
mkdir docs/examples/o147/
mkdir docs/contexts/
cp jtfcontext/jtfcontext.json docs/contexts/jtfld.json
cp -r examples/HS1174/images/ docs/examples/hs1174/images/
cp -r examples/HT073195/images/ docs/examples/ht073195/images/
cp -r examples/TCH92/images/ docs/examples/tch92/images/
cp -r examples/O147/images/ docs/examples/o147/images/
#wget https://raw.githubusercontent.com/sparqlunicorn/sparqlunicornGoesGIS-ontdoc/main/docgeneration.py
#wget https://raw.githubusercontent.com/sparqlunicorn/sparqlunicornGoesGIS-ontdoc/main/prefixes.json
cd ontdocscript
#python3 docgeneration.py --input ../signlist/signlist.ttl --output ../docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneisignlist --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input ../merged.ttl --output ../docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneisignlist --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/HS1174/transliteration/HS1174.atf.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/HS1174/transliteration/HS1174_textanno.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/HS1174/ttl/hs1174.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/HS1174/ttl/HS1174_front.png.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/HS1174/ttl/HS1174_back.png.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/HS1174/ttl/HS1174_charvariant.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/HS1174/mesh/HS1174_mesh.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/HT073195/transliteration/HT073195.atf.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/HT073195/ttl/HT073195_front.png.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/HT073195/ttl/ht073195.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/HT073195/transliteration/HT073195_textanno.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/O147/transliteration/O147.atf.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/O147/ttl/O147_front.png.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/O147/ttl/o147.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/O147/ttl/O147_back.png.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/O147/ttl/O147_right.png.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/O147/ttl/O147_bottom.png.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/O147/mesh/O147_front_mesh.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/O147/mesh/O147_back_mesh.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/O147/transliteration/O147_textanno.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/TCH92//transliteration/TCH92.atf.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/TCH92/ttl/TCH92_front.png.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/TCH92/ttl/tch92.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/TCH92/transliteration/TCH92_textanno.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/TCH92/ttl/TCH92_back.png.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
#python3 docgeneration.py --input examples/TCH92/mesh/TCH92_mesh.ttl --output docs/ --prefixns https://situx.github.io/cuneiformontology/ --prefixnsshort cuneiex --metadatatable true --deploypath https://situx.github.io/cuneiformontology/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
BRANCH: gh-pages
FOLDER: docs/
clean: false