From 3eb9b7eb0bc8f129a47431b05887cb3f2207648d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Kir=C3=A1ly?= Date: Thu, 22 Dec 2022 16:33:07 +0100 Subject: [PATCH] issue #217: create a stub class --- common-script | 8 ++++++++ shacl4bib | 4 ++++ 2 files changed, 12 insertions(+) create mode 100755 shacl4bib diff --git a/common-script b/common-script index 376dde27f..73170e675 100755 --- a/common-script +++ b/common-script @@ -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 @@ -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 diff --git a/shacl4bib b/shacl4bib new file mode 100755 index 000000000..1d2cdd910 --- /dev/null +++ b/shacl4bib @@ -0,0 +1,4 @@ +# SHACL for bib implementation +. ./common-variables + +/usr/bin/java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.Shacl4bib "$@"