Update pylode.yml #381
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ontology Documentation CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build10: | |
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 gem install metanorma-cli | |
sudo gem install metanorma-ogc | |
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 ../../funcsrules.ttl ../../sf_geometries.ttl ../../11-052r4_OGC_GeoSPARQL.pdf ../../citeme.bib . | |
cp ../../servicedescription_all_functions.ttl ../../servicedescription_conformanceclasses.ttl ../../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 ../../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 ../../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_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_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_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/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
clean: false | |
FOLDER: docs/ | |
build11: | |
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 gem install metanorma-cli | |
sudo gem install metanorma-ogc | |
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/ | |
cp index.html docs/index.html | |
cd 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 ../../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 . | |
cp ../../1.1/servicedescription/servicedescription_all_functions.ttl ../../1.1/servicedescription/servicedescription_conformanceclasses.ttl ../../1.1/servicedescription/servicedescription_extensions.ttl . | |
# ../../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 | |
echo "Generating documentation for GeoSPARQL 1.1 Service Description Extensions" | |
pylode -i ../../1.1/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 ../../1.1/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 ../../1.1/servicedescription/servicedescription_all_functions.ttl -o servicedescription_all_functions.html -p vocpub | |
python3 ../../convertjsonld.py servicedescription_all_functions.ttl servicedescription_all_functions.json | |
pwd | |
#- name: Run the build process with Docker | |
# uses: actions-mn/compile@main | |
# with: | |
# input-file: 1.1/spec/00-GeoSPARQL.adoc | |
# type: ogc | |
# extensions: html | |
# output-dir: ./result1 | |
# no-install-fonts: true | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
clean: false | |
FOLDER: docs/ |