Skip to content

Commit

Permalink
Call rdf-toolkit via pre-commit
Browse files Browse the repository at this point in the history
* ucoProject/UCO#373

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed May 31, 2022
1 parent 5f20d84 commit ff9e2c6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.done.log
*.dot
*.egg-info
*.jar
*.png
*.svg
*.swp
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ repos:
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/kchason/rdf-toolkit-action
rev: 0.1.2
hooks:
- id: rdf-toolkit-normalizer
args:
- --autofix
10 changes: 1 addition & 9 deletions tests/CASE-Examples/examples/illustrations/src/illustration.mk
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,8 @@ $(subjectdir_basename)-prov.ttl: \
&& case_prov_rdf \
--allow-empty-results \
--debug \
__$@ \
_$@ \
$<
java -jar $(case_srcdir)/lib/rdf-toolkit.jar \
--infer-base-iri \
--inline-blank-nodes \
--source __$@ \
--source-format turtle \
--target _$@ \
--target-format turtle
rm __$@
mv _$@ $@

$(subjectdir_basename)-prov_activities.dot: \
Expand Down
10 changes: 1 addition & 9 deletions tests/casework.github.io/examples/src/example.mk
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,8 @@ $(subjectdir_basename)-prov.ttl: \
&& case_prov_rdf \
--allow-empty-results \
--debug \
__$@ \
_$@ \
$<
java -jar $(case_srcdir)/lib/rdf-toolkit.jar \
-ibi \
-ibn \
--source __$@ \
--source-format turtle \
--target _$@ \
--target-format turtle
rm __$@
mv _$@ $@

$(subjectdir_basename)-prov-activities.dot: \
Expand Down

0 comments on commit ff9e2c6

Please sign in to comment.