Skip to content

Update pylode.yml

Update pylode.yml #440

Workflow file for this run

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 asciidoctor ruby -y
sudo gem install --pre asciidoctor-pdf
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
cd docs/geosparql10/
cp ../../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 ../../geo.ttl -o index.html
python3 ../../convertjsonld.py geo.ttl geo.json
#echo "Generating documentation for GeoSPARQL 1.0 profile"
#pylode -i ../../profile.ttl -o profile.html -p prof
echo "Generating documentation for GeoSPARQL 1.0 functions and rules"
pylode -i ../../vocabularies/rules.ttl -o rules.html -p vocpub
python3 ../../convertjsonld.py rules.ttl rules.json
pylode -i ../../vocabularies/functions.ttl -o functions.html -p vocpub
python3 ../../convertjsonld.py functions.ttl functions.json
echo "Generating documentation for GeoSPARQL 1.0 Simple Features Vocabulary"
pylode -i ../../vocabularies/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
echo "Generating documentation for GeoSPARQL 1.0 Service Description Extensions"
pylode -i ../../servicedescription/servicedescription_extensions.ttl -o servicedescription_extensions.html -p vocpub
python3 ../../convertjsonld.py servicedescription_extensions.ttl servicedescription_extensions.json
echo "Generating documentation for GeoSPARQL 1.0 Service Description Conformance Classes"
pylode -i ../../servicedescription/servicedescription_conformanceclasses.ttl -o servicedescription_conformanceclasses.html -p vocpub
python3 ../../convertjsonld.py servicedescription_conformanceclasses.ttl servicedescription_conformanceclasses.json
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 ../../convertjsonld.py servicedescription_all_functions.ttl servicedescription_all_functions.json
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
clean: false
FOLDER: docs/
build11:
name: Compile GeoSPARQL 1.1 Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
ref: geosparql-1.1
- 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 asciidoctor ruby -y
sudo gem install --pre asciidoctor-pdf
sudo apt-get install python3-venv python3-wheel -y
sudo pip3 install wheel pylode==2.13.2 rdflib
mkdir docs
mkdir docs/geosparql11/
mkdir docs/geosparql11/servicedescription/
mkdir docs/bestpractice/
cd docs/geosparql11/
echo "Generating GeoSPARQL 1.1 Specification - ASCIIDOC HTML"
asciidoctor --attribute docinfo=shared ../../1.1/spec/00-GeoSPARQL.adoc -o spec.html
# echo "Generating GeoSPARQL 1.1 Specification ISO"
# metanorma --type ogc --extensions pdf,html ../../1.1/spec/00-GeoSPARQL.adoc
echo "Generating GeoSPARQL 1.1 Specification - ASCIIDOC PDF"
asciidoctor-pdf -a pdf-theme=default-with-fallback-font --attribute docinfo=shared ../../1.1/spec/00-GeoSPARQL.adoc -o spec.pdf
echo "Generating GeoSPARQL 1.1 Release Notes - ASCIIDOC HTML"
asciidoctor --attribute docinfo=shared ../../1.1/release_notes/releasenotes.adoc -o releasenotes.html
# echo "Generating GeoSPARQL 1.1 Release Notes - ASCIIDOC PDF"
# asciidoctor-pdf --attribute docinfo=shared ../../1.1/release_notes/releasenotes.adoc -o releasenotes.pdf
echo "Copying over 1.1 RDF files"
cp ../../geo.ttl ../../profile.ttl ../../vocabularies/rules.ttl ../../vocabularies/functions.ttl ../../vocabularies/sf_geometries.ttl ../../vocabularies/reqs.ttl ../../spec/citeme.bib .
cp ../../servicedescription/servicedescription_all_functions.ttl ../../servicedescription/servicedescription_conformanceclasses.ttl ../../servicedescription/servicedescription_extensions.ttl .
# ../../validation.ttl
cp -r ../../spec/img .
echo "Generating documentation for GeoSPARQL 1.1 ontology"
python3 ../../convertjsonld.py geo.ttl geo.json
pylode -i ../../geo.ttl -o index.html
#echo "Generating documentation for GeoSPARQL 1.1 Profile"
#pylode -i ../../profile.ttl -o profile.html -p prof
echo "Generating documentation for GeoSPARQL 1.1 functions and rules"
pylode -i ../../vocabularies/functions.ttl -o functions.html -p vocpub
python3 ../../convertjsonld.py functions.ttl functions.json
pylode -i ../../vocabularies/rules.ttl -o rules.html -p vocpub
python3 ../../convertjsonld.py rules.ttl rules.json
echo "Generating documentation for GeoSPARQL 1.1 Simple Features Vocabulary"
pylode -i ../../vocabularies/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 ../../vocabularies/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 ../../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 ../../convertjsonld.py servicedescription_extensions.ttl servicedescription_extensions.json
echo "Generating documentation for GeoSPARQL 1.1 Service Conformance Classes"
pylode -i ../../servicedescription/servicedescription_conformanceclasses.ttl -o servicedescription_conformanceclasses.html -p vocpub
python3 ../../convertjsonld.py servicedescription_conformanceclasses.ttl servicedescription_conformanceclasses.json
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 ../../convertjsonld.py servicedescription_all_functions.ttl servicedescription_all_functions.json
- 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/ontology
ls
mv spec/ontology/* site/geosparql12/ontology/
metanorma site generate --agree-to-terms -o site
cd site
rm index.html
rm -r documents
- 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: |
mkdir site
mkdir site/geosparql13
mkdir site/geosparql13/ontology
ls
mv spec/ontology/* site/geosparql13/ontology/
metanorma site generate --agree-to-terms -o site
cp index.html site/index.html
cd site
rm -r documents
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
clean: false
FOLDER: site/