Skip to content

Commit

Permalink
script for generating releases (see #40)
Browse files Browse the repository at this point in the history
The script 801_generate_releases.sh will create zips in base/releases.
Some items are WIP (i.e. CSV, JSON), others are deactivated due to empty
folders (guides, examples).
  • Loading branch information
coolharsh55 committed Jul 1, 2022
1 parent 1a9bb10 commit 1ef75c8
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,4 @@ cython_debug/

# ont-converter jar files should be skipped
ont-converter.jar
releases
58 changes: 58 additions & 0 deletions documentation-generator/801_generate_releases.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#!/usr/bin/env bash
#author: Harshvardhan J. Pandit

# Generate DPV Releases
# Creates Zips or 'packages' for creating a new release
# Zips are stored in `repo-base/releases` which is gitignored

# Creates the following zips:
# 1. dpv.zip - DPV + Extensions as SKOS vocabulary
# 2. dpv-skos.zip - DPV + Extensions as RDFS+SKOS ontology
# 3. dpv-owl.zip - DPV + Extensions as OWL ontology
# 4. dpv-csv.zip - DPV + Extensions as CSV files
# 5. dpv-json.zip - DPV + Extensions as JSON files
# 6. dpv-nace.zip - DPV NACE vocabulary
# 7. dpv-examples.zip - Collected examples of using DPV
# 8. dpv-guides.zip - Collected guides and tutorials on using DPV

# zip
# -db display bytes
# -dc display counts
# -dg display global dots
# -r input files recursively
# -O output file

cd ..
mkdir -p releases

# 1. dpv.zip - DPV + Extensions as SKOS vocabulary
zip -q releases/dpv.zip -r dpv dpv-gdpr dpv-pd dpv-legal dpv-tech
echo "generated releases/dpv.zip"

# 2. dpv-skos.zip - DPV + Extensions as RDFS+SKOS ontology
zip -q releases/dpv-skos.zip -r dpv-skos
echo "generated releases/dpv-skos.zip"

# 3. dpv-owl.zip - DPV + Extensions as OWL ontology
zip -q releases/dpv-owl.zip -r dpv-owl
echo "generated releases/dpv-owl.zip"

# 4. dpv-csv.zip - DPV + Extensions as CSV files
# TODO

# 5. dpv-json.zip - DPV + Extensions as JSON files
# TODO

# 6. dpv-nace.zip - DPV NACE vocabulary
zip -q releases/dpv-nace.zip -r dpv-nace
echo "generated releases/dpv-nace.zip"

# 7. dpv-examples.zip - Collected examples of using DPV
# EMPTY FOLDERS
# zip -q releases/dpv-examples.zip -r dpv-examples
# echo "generated releases/dpv-examples.zip"

# 8. dpv-guides.zip - Collected guides and tutorials on using DPV
# EMPTY FOLDERS
# zip -q releases/dpv-guides.zip -r dpv-guides
# echo "generated releases/dpv-guides.zip"
4 changes: 3 additions & 1 deletion documentation-generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ In between steps 2 and 3, there can be a series of tests done to ensure the RDF

The `9**` series offers convenience in running the other scripts in some combination. `902` executes all the RDF generation scripts, `903` executes all the HTML generation scripts, and `999` executes all scripts.

In addition to these, `8**` series offers convenience with tasks. `801` converts the DPV-OWL RDF files into OWL (Manchester Syntax). It will be run automatically through the `902` script so that every update will auto-generate these files.
In addition to these, `1**` series offers convenience with tasks. `101` converts the DPV-OWL RDF files into OWL (Manchester Syntax). It will be run automatically through the `902` script so that every update will auto-generate these files.

The `8**` series provides packaging and release management tasks. `801` will generate zips for creating a new release, stored in `repo-base/releases` which is gitignored.

## How everything works

Expand Down

0 comments on commit 1ef75c8

Please sign in to comment.