-
Notifications
You must be signed in to change notification settings - Fork 21
272 lines (250 loc) · 11.6 KB
/
pylode.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
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
name: Ontology Documentation CI
on:
push:
branches:
- master
- geosparql-1.2
- geosparql-1.1
- geosparql-1.0
jobs:
build10:
name: Compile GeoSPARQL 1.0 Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
ref: geosparql-1.0
- name: Create GeoSPARQL 1.0 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
mkdir docs
mkdir docs/geosparql10/
mkdir docs/geosparql10/servicedescription
mkdir docs/geosparql10/vocabularies
cd docs/geosparql10/
cp ../../vocabularies/geo.ttl ../../profile.ttl ../../vocabularies/rules.ttl ../../vocabularies/functions.ttl ../../vocabularies/sf_geometries.ttl ../../spec/11-052r4_OGC_GeoSPARQL.pdf ../../citeme.bib .
cp ../../servicedescription/servicedescription_all_functions.ttl ../../servicedescription/servicedescription_conformanceclasses.ttl ../../servicedescription/servicedescription_extensions.ttl .
echo "Generating documentation for GeoSPARQL 1.0 ontology"
pylode -i ../../vocabularies/geo.ttl -o index.html
python3 ../../scripts/convertjsonld.py geo.ttl geo.json geo.n3
#cp ../../profile.ttl .
#cp ../../profile.html .
echo "Generating documentation for GeoSPARQL 1.0 functions and rules"
pylode -i ../../vocabularies/rules.ttl -o rules.html -p vocpub
python3 ../../scripts/convertjsonld.py rules.ttl rules.json rules.n3
pylode -i ../../vocabularies/functions.ttl -o functions.html -p vocpub
python3 ../../scripts/convertjsonld.py functions.ttl functions.json functions.n3
echo "Generating documentation for GeoSPARQL 1.0 Simple Features Vocabulary"
pylode -i ../../vocabularies/sf_geometries.ttl -o sf_geometries.html -p vocpub
python3 ../../scripts/convertjsonld.py sf_geometries.ttl sf_geometries.json sf_geometries.n3
# pylode -u http://schemas.opengis.net/gml/3.2.1/gml_32_geometries.rdf -o gml_geometries.html -p vocpub
echo "Generating documentation for GeoSPARQL 1.0 Service Description Extensions"
pylode -i ../../servicedescription/servicedescription_extensions.ttl -o servicedescription_extensions.html -p vocpub
python3 ../../scripts/convertjsonld.py servicedescription_extensions.ttl servicedescription_extensions.json servicedescription_extensions.n3
echo "Generating documentation for GeoSPARQL 1.0 Service Description Conformance Classes"
pylode -i ../../servicedescription/servicedescription_conformanceclasses.ttl -o servicedescription_conformanceclasses.html -p vocpub
python3 ../../scripts/convertjsonld.py servicedescription_conformanceclasses.ttl servicedescription_conformanceclasses.json servicedescription_conformanceclasses.n3
echo "Generating documentation for GeoSPARQL 1.0 Service Description All Functions"
pylode -i ../../servicedescription/servicedescription_all_functions.ttl -o servicedescription_all_functions.html -p vocpub
python3 ../../scripts/convertjsonld.py servicedescription_all_functions.ttl servicedescription_all_functions.json servicedescription_all_functions.n3
cd ../../scripts/
python3 consistencycheck.py
cp logfile.txt ../docs/geosparql10/logfile.txt
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
clean: true
FOLDER: docs/
build11:
name: Compile GeoSPARQL 1.1 Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
ref: geosparql-1.1
- uses: actions/cache@v3
with:
path: ~/.fontist
key: fontist-ubuntu-latest
restore-keys: fontist-ubuntu-latest
- uses: actions-mn/setup@main
- 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
mkdir docs
mkdir docs/servicedescription
mkdir site
mkdir site/geosparql11
ls
metanorma site generate --agree-to-terms -o site
cd site
ls
ls geosparql11
ls documents
mv documents/spec/* geosparql11/
mv geosparql11 ../docs/
cd ../docs/geosparql11/
echo "Copying over 1.1 RDF files"
cp ../../vocabularies/geo.ttl ../../profile.ttl ../../vocabularies/rules.ttl ../../vocabularies/functions.ttl ../../vocabularies/sf_geometries.ttl ../../vocabularies/requirements.ttl ../../citeme.bib .
cp ../../servicedescription/servicedescription_all_functions.ttl ../../servicedescription/servicedescription_conformanceclasses.ttl ../../servicedescription/servicedescription_extensions.ttl ../../vocabularies/validator.ttl .
cp -r ../../spec/figures .
echo "Generating documentation for GeoSPARQL 1.1 ontology"
python3 ../../scripts/convertjsonld.py geo.ttl geo.json geo.n3
pylode -i ../../vocabularies/geo.ttl -o index.html
echo "Generating documentation for GeoSPARQL 1.1 Profile"
#cp ../../profile.ttl .
#cp ../../profile.html .
#echo "Generating documentation for GeoSPARQL 1.1 functions and rules"
#pylode -i ../../vocabularies/functions.ttl -o functions.html -p vocpub
python3 ../../scripts/convertjsonld.py functions.ttl functions.json functions.n3
pylode -i ../../vocabularies/rules.ttl -o rules.html -p vocpub
python3 ../../scripts/convertjsonld.py rules.ttl rules.json rules.n3
echo "Generating documentation for GeoSPARQL 1.1 Simple Features Vocabulary"
pylode -i ../../vocabularies/sf_geometries.ttl -o sf_geometries.html -p vocpub
python3 ../../scripts/convertjsonld.py sf_geometries.ttl sf_geometries.json sf_geometries.n3
#echo "Generating documentation for GeoSPARQL 1.1 SA functions"
#pylode -i ../../vocabularies/requirements.ttl -o reqs.html -p vocpub
#pylode -u http://schemas.opengis.net/gml/3.2.1/gml_32_geometries.rdf -o gml_geometries.html -p vocpub
#pylode -i ../../vocabularies/validator.ttl -o validation.html
echo "Generating documentation for GeoSPARQL 1.1 Service Description Extensions"
pylode -i ../../servicedescription/servicedescription_extensions.ttl -o servicedescription_extensions.html -p vocpub
python3 ../../scripts/convertjsonld.py servicedescription_extensions.ttl servicedescription_extensions.json servicedescription_extensions.n3
echo "Generating documentation for GeoSPARQL 1.1 Service Conformance Classes"
pylode -i ../../servicedescription/servicedescription_conformanceclasses.ttl -o servicedescription_conformanceclasses.html -p vocpub
python3 ../../scripts/convertjsonld.py servicedescription_conformanceclasses.ttl servicedescription_conformanceclasses.json servicedescription_conformanceclasses.n3
echo "Generating documentation for GeoSPARQL 1.0 Service Description All Functions"
pylode -i ../../servicedescription/servicedescription_all_functions.ttl -o servicedescription_all_functions.html -p vocpub
python3 ../../scripts/convertjsonld.py servicedescription_all_functions.ttl servicedescription_all_functions.json servicedescription_all_functions.n3
cd ../../scripts/
python3 consistencycheck.py
cp logfile.txt ../docs/geosparql11/logfile.txt
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
clean: false
FOLDER: docs/
build12:
name: Compile GeoSPARQL 1.2 Metanorma
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ github.token }}
ref: geosparql-1.2
submodules: true
- uses: actions/cache@v3
with:
path: ~/.fontist
key: fontist-ubuntu-latest
restore-keys: fontist-ubuntu-latest
- uses: actions-mn/setup@main
- run: |
mkdir site
mkdir site/geosparql12
mkdir site/geosparql12/vocabularies/
mkdir site/geosparql12/servicedescription/
ls
mv vocabularies/* site/geosparql12/vocabularies/
mv servicedescription/* site/geosparql12/servicedescription/
metanorma site generate --agree-to-terms -o site
cd site
ls
ls geosparql12
ls documents
mv documents/spec/* geosparql12/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
clean: false
FOLDER: site/
jekyll:
name: Build Jekyll
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ github.token }}
ref: master
submodules: true
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
ruby-version: '3.2.2' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: |
gem install jekyll bundler
bundle install
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- run: |
mkdir site
cd site
mkdir blog
cd ..
mv _site/* site/blog/
rm site/blog/index.html
mv site/blog/posts.html site/blog/index.html
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
clean: false
FOLDER: site/
build13:
name: Compile GeoSPARQL 1.3 Metanorma
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ github.token }}
ref: master
submodules: true
- uses: actions/cache@v3
with:
path: ~/.fontist
key: fontist-ubuntu-latest
restore-keys: fontist-ubuntu-latest
- uses: actions-mn/setup@main
- run: |
sleep 400
mkdir site
mkdir site/geosparql13
mkdir site/geosparql13/vocabularies/
mkdir site/geosparql13/servicedescription/
ls
mv vocabularies/* site/geosparql13/vocabularies/
mv servicedescription/* site/geosparql13/servicedescription/
metanorma site generate --agree-to-terms -o site
ls
cp index.html site/index.html
cd site
mv documents/spec/* geosparql13/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
clean: false
FOLDER: site/