Update README.md #142
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 | |
- geosparql-1.2 | |
- geosparql-1.1 | |
- geosparql-1.0 | |
jobs: | |
build10: | |
name: Compile GeoSPARQL 1.0 Documentation | |
runs-on: ubuntu-latest | |
needs: [jekyll, build3dvoc] | |
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 . | |
mv 11-052r4_OGC_GeoSPARQL.pdf document.pdf | |
echo "Generating documentation for GeoSPARQL 1.0 ontology" | |
pylode -i ../../vocabularies/geo.ttl -o geo.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 | |
cp logfile.json ../docs/geosparql10/logfile.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 | |
needs: jekyll | |
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 geo.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.1 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 | |
cp logfile.json ../docs/geosparql11/logfile.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 | |
needs: jekyll | |
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/ | |
cd .. | |
cp index.html site/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/ | |
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/[email protected] # 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/ | |
cp index.html site/index.html | |
#rm site/blog/index.html | |
#mv site/blog/index.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: true | |
FOLDER: site/ | |
build3dvoc: | |
name: Compile 3DVocab | |
runs-on: ubuntu-latest | |
needs: jekyll | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ github.token }} | |
ref: 3dvocab | |
submodules: true | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.fontist | |
key: fontist-ubuntu-latest | |
restore-keys: fontist-ubuntu-latest | |
- uses: actions-mn/setup@main | |
- 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 | |
#cp ../../vocabularies/sf_geometries_3D.ttl . | |
mkdir site | |
mkdir site/3dvocab | |
cd site | |
cd 3dvocab | |
echo "Generating documentation 3D Vocab" | |
pylode -i ../../vocabularies/sf_geometries_3D.ttl -o 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 | |
needs: jekyll | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ github.token }} | |
ref: geosparql-1.3 | |
submodules: true | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.fontist | |
key: fontist-ubuntu-latest | |
restore-keys: fontist-ubuntu-latest | |
- uses: actions-mn/setup@main | |
- 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 site | |
mkdir site/geosparql13 | |
mkdir site/geosparql13/vocabularies/ | |
mkdir site/geosparql13/servicedescription/ | |
ls | |
cp vocabularies/* site/geosparql13/vocabularies/ | |
cp servicedescription/* site/geosparql13/servicedescription/ | |
metanorma site generate --agree-to-terms -o site | |
cd site | |
ls | |
ls geosparql13 | |
ls documents | |
mv documents/spec/* geosparql13/ | |
cd .. | |
cp index.html site/index.html | |
cd site | |
cd geosparql13 | |
ls | |
echo "Copying over 1.3 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_conformance_classes.ttl ../../servicedescription/servicedescription_extensions.ttl ../../vocabularies/validator.ttl . | |
cp -r ../../spec/figures . | |
echo "Generating documentation for GeoSPARQL 1.3 ontology" | |
python3 ../../scripts/convertjsonld.py geo.ttl geo.json geo.n3 | |
pylode -i ../../vocabularies/geo.ttl -o geo.html | |
echo "Generating documentation for GeoSPARQL 1.3 Profile" | |
#cp ../../profile.ttl . | |
#cp ../../profile.html . | |
#echo "Generating documentation for GeoSPARQL 1.3 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.3 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.3 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.3 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.3 Service Conformance Classes" | |
#pylode -i ../../servicedescription/servicedescription_conformance_classes.ttl -o servicedescription_conformance_classes.html -p vocpub | |
python3 ../../scripts/convertjsonld.py servicedescription_conformance_classes.ttl servicedescription_conformance_classes.json servicedescription_conformance_classes.n3 | |
echo "Generating documentation for GeoSPARQL 1.3 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 ../site/geosparql13/logfile.txt | |
cp logfile.json ../site/geosparql13/logfile.json | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
clean: false | |
FOLDER: site/ |