Skip to content

Commit

Permalink
setting up support for validation during harvest using SHACL (CLARIAH…
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon authored and brambg committed Sep 16, 2022
1 parent 76970fe commit 7e72dd2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ ARG nginx_pass='Gue33mypa33!'
RUN htpasswd -c -b /etc/nginx/.htpasswd $nginx_user $nginx_pass
#copy additional static resources
COPY static/* /var/www/static/
#SHACL validation schema (opt-in with CODEMETA_VALIDATE=true)
COPY schemas/shacl/software.ttl /etc/software.ttl

ADD etc /etc
ADD bin /usr/bin/
Expand Down
6 changes: 6 additions & 0 deletions bin/harvest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ else
CODEMETAPY_OPTS="--toolstore --css $CSS"
fi

if [ "$CODEMETA_VALIDATE" = "true" ]; then
HARVEST_OPTS="$HARVEST_OPTS --validate /etc/software.ttl"
if [ -n "$VALIDATION_TEXT" ]; then
HARVEST_OPTS="$HARVEST_OPTS --validatetext \"$VALIDATION_TEXT\""
fi
fi

echo "Starting Harvester at $(date)">&2
if [ -n "$GITHUB_TOKEN" ]; then
Expand Down
1 change: 1 addition & 0 deletions my-env.env
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ CODEMETA_INPUTLOGDIR=/tool-store-data/
CODEMETA_GRAPH=/tool-store-data/data.json
#enable uploader for codemeta.json
UPLOADER=true
CODEMETA_VALIDATE=false

0 comments on commit 7e72dd2

Please sign in to comment.