Skip to content

Update 11-geometry_extension.adoc #476

Update 11-geometry_extension.adoc

Update 11-geometry_extension.adoc #476

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 ../../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
#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 ../../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: 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 ../../spec/00-GeoSPARQL.adoc -o spec.html
echo "Generating GeoSPARQL 1.1 Specification - ASCIIDOC PDF"
asciidoctor-pdf -a pdf-theme=default-with-fallback-font --attribute docinfo=shared ../../spec/00-GeoSPARQL.adoc -o spec.pdf
echo "Generating GeoSPARQL 1.1 Release Notes - ASCIIDOC HTML"
asciidoctor --attribute docinfo=shared ../../release_notes/releasenotes.adoc -o releasenotes.html
echo "Generating GeoSPARQL 1.1 Release Notes - ASCIIDOC PDF"
asciidoctor-pdf --attribute docinfo=shared ../../release_notes/releasenotes.adoc -o releasenotes.pdf
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/img .
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"
#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 ../../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
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/vocabularies/
mkdir site/geosparql13/servicedescription/
ls
mv vocabularies/* site/geosparql13/vocabularies/
mv servicedescription/* site/geosparql13/servicedescription/
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/