Skip to content

Commit

Permalink
WIP use correct SPARQL query to query result. We are checking for war…
Browse files Browse the repository at this point in the history
…ning and violations
  • Loading branch information
sroertgen committed Jan 29, 2024
1 parent 4a36486 commit 16418ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/validate-skos
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,12 @@ curl --request POST \
--data-binary @$shape > "$result"

echo "Checking validation result"
cat $result
cat ./checkForViolation.rq

if [[ "$report" -eq 1 ]]; then
cat "$result"
else
# changed to v flag for mounting
validationResult="$(docker run --rm -v ./checkForViolation.rq:/rdf/checkForViolation.rq -v $result:/rdf/result.ttl skohub/jena:4.6.1 arq --data /rdf/result.ttl --query /rdf/checkForViolation.rq)"
validationResult="$(docker run --rm -v ./checkForBoth.rq:/rdf/checkForViolation.rq -v $result:/rdf/result.ttl skohub/jena:4.6.1 arq --data /rdf/result.ttl --query /rdf/checkForViolation.rq)"

lines=$(echo "$validationResult" | wc -l )

Expand Down

0 comments on commit 16418ad

Please sign in to comment.