Skip to content

Instantly share code, notes, and snippets.

@balkian
Last active October 30, 2021 10:58
Show Gist options
  • Save balkian/cbe892fe3322a382765a to your computer and use it in GitHub Desktop.
Save balkian/cbe892fe3322a382765a to your computer and use it in GitHub Desktop.
Upload ontologies to GSI server
if [ $# -lt 1 ]
then
ONTO=onyx
else
ONTO=$1
fi
if [ $# -lt 2 ]
then
DIR=~/Doctorado/Ontologies/Onyx
else
DIR=$2
fi
if [ $# -lt 3 ]
then
[email protected]:lib/www/gsi/ontologies/
else
REMOTE=$3
fi
if [ $# -lt 4 ]
then
NS=http://www.gsi.dit.upm.es/ontologies/$ONTO/ns#
else
NS=$4
fi
echo "Generating docs for $ONTO from: $DIR"
echo "Namespace: $NS"
python specgen6.py --indir=$DIR --ns=$NS --prefix=$ONTO --ontofile=$ONTO.owl --outdir=$DIR/spec/latest --templatedir= --outfile=index.html
echo "Uploading to $REMOTE"
rsync -r --links --copy-unsafe-links $DIR/spec/ $REMOTE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment