forked from opengeospatial/ogc-geosparql
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (68 loc) · 3.7 KB
/
pylode.yml
File metadata and controls
71 lines (68 loc) · 3.7 KB
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
name: Ontology Documentation CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- 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 python-dev python3-pip -y
sudo apt-get install asciidoctor ruby -y
sudo gem install --pre asciidoctor-pdf
sudo apt-get install python3-dev python3-pip python3-venv python3-wheel -y
sudo pip3 install wheel pylode rdflib
mkdir docs
mkdir docs/geosparql11/
mkdir docs/geosparql10/
mkdir docs/bestpractice/
cp index.html docs/index.html
cd docs/geosparql10/
cp ../../1.0/geo.ttl ../../1.0/profile.ttl ../../1.0/funcsrules.ttl ../../1.0/sf_geometries.ttl ../../1.0/11-052r4_OGC_GeoSPARQL.pdf ../../1.0/citeme.bib .
echo "Generating documentation for GeoSPARQL 1.0 ontology"
pylode -i ../../1.0/geo.ttl -o index.html
python3 ../../convertjsonld.py geo.ttl geo.json
echo "Generating documentation for GeoSPARQL 1.0 profile"
pylode -i ../../1.0/profile.ttl -o profile.html -p prof
echo "Generating documentation for GeoSPARQL 1.0 functions and rules"
pylode -i ../../1.0/funcsrules.ttl -o funcsrules.html -p vocpub
python3 ../../convertjsonld.py funcsrules.ttl funcsrules.json
echo "Generating documentation for GeoSPARQL 1.0 Simple Features Vocabulary"
pylode -i ../../1.0/sf_geometries.ttl -o sf_geometries.html -p vocpub
python3 ../../convertjsonld.py sf_geometries.ttl sf_geometries.json
#pylode -u http://schemas.opengis.net/gml/3.2.1/gml_32_geometries.rdf -o gml_geometries.html -p vocpub
cd ../bestpractice/
asciidoctor ../../bestpractice/CQLAnnex.adoc -o bestpractice_cql.html
asciidoctor-pdf ../../bestpractice/CQLAnnex.adoc -o bestpractice_cql.pdf
cd ../geosparql11/
asciidoctor --attribute docinfo=shared ../../1.1/spec/00-GeoSPARQL.adoc -o spec.html
asciidoctor-pdf --attribute docinfo=shared ../../1.1/spec/00-GeoSPARQL.adoc -o spec.pdf
cp ../../1.1/geo.ttl ../../1.1/profile.ttl ../../1.1/funcsrules.ttl ../../1.1/sf_geometries.ttl ../../1.1/reqs.ttl ../../1.1/spec/citeme.bib .
# ../../1.1/validation.ttl
cp -r ../../1.1/spec/img .
echo "Generating documentation for GeoSPARQL 1.1 ontology"
python3 ../../convertjsonld.py geo.ttl geo.json
pylode -i ../../1.1/geo.ttl -o index.html
echo "Generating documentation for GeoSPARQL 1.1 Profile"
pylode -i ../../1.1/profile.ttl -o profile.html -p prof
echo "Generating documentation for GeoSPARQL 1.1 functions and rules"
pylode -i ../../1.1/funcsrules.ttl -o funcsrules.html -p vocpub
python3 ../../convertjsonld.py funcsrules.ttl funcsrules.json
echo "Generating documentation for GeoSPARQL 1.1 Simple Features Vocabulary"
pylode -i ../../1.1/sf_geometries.ttl -o sf_geometries.html -p vocpub
python3 ../../convertjsonld.py sf_geometries.ttl sf_geometries.json
echo "Generating documentation for GeoSPARQL 1.1 SA functions"
pylode -i ../../1.1/reqs.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 ../../1.1/validation.ttl -o validation.html
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/