Skip to content

Commit

Permalink
issue #217: create a stub class
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed Dec 22, 2022
1 parent 34332f8 commit 3eb9b7e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common-script
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ do_export_schema_files() {
printf "%s %s> 3 files generated at 'marc-schema' directory: marc-schema.json, marc-schema-with-solr.json, marc-schema-with-solr-and-extensions.json\n" $(date +"%F %T")
}

do_shacl4bib() {
PARAMS=$(echo ${TYPE_PARAMS} | sed -r 's/ --emptyLargeCollectors| --with-delete| --ignorableIssueTypes [^ ]+//g')
printf "%s %s> [shacl4bib]\n" $(date +"%F %T")
printf "%s %s> ./shacl4bib --defaultRecordType BOOKS ${PARAMS} --outputDir ${OUTPUT_DIR}/ ${MARC_DIR}/${MASK} 2> ${PREFIX}/shacl4bib.log\n" $(date +"%F %T")
./shacl4bib --defaultRecordType BOOKS ${PARAMS} --outputDir ${OUTPUT_DIR}/ ${MARC_DIR}/${MASK} 2> ${PREFIX}/shacl4bib.log
}

do_all_analyses() {
do_validate
do_sqlite
Expand Down Expand Up @@ -334,6 +341,7 @@ commands:
index indexing with Solr
sqlite import tables to SQLite
export-schema-files export schema files
shacl4bib run SHACL-like validation
all-analyses run all analitical tasks
all-solr run all indexing tasks
all run all tasks
Expand Down
4 changes: 4 additions & 0 deletions shacl4bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SHACL for bib implementation
. ./common-variables

/usr/bin/java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.Shacl4bib "$@"

0 comments on commit 3eb9b7e

Please sign in to comment.