Skip to content

Selected Unit Tests for BIBFRAME Monograph and Serials Works and Instances - #47

Merged
jermnelson merged 6 commits into
mainfrom
t46-unit-tests
Feb 19, 2026
Merged

Selected Unit Tests for BIBFRAME Monograph and Serials Works and Instances#47
jermnelson merged 6 commits into
mainfrom
t46-unit-tests

Conversation

@jermnelson

@jermnelson jermnelson commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

Fixes #46

Uses Library of Congress test records to test the following DCTap TSV files:

  • Monograph_AdminMetadata.tsv
  • Monograph_Work_Text.tsv
  • Monograph_Instance_Print.tsv
  • Serial_AdminMetadata.tsv
  • Serial_Work_Text.tsv
  • Serial_Instance_Print.tsv

Still need example records to test the following DCTap TSV files:

  • Monograph_Instance_Electronic.tsv
  • Serial_Instance_Electronic.tsv

Currently all of the examples are passing validation with no warnings or violations. We should add example RDFs that fail validation with a mixture of SHACL Warnings and Violations.

The SHACL validation call in the tests were incorrect, all of the example RDFs have violations and warnings reflected in the parameters.

NOTE: Also adds Github Action for running tests when a Pull Request is created.

@jermnelson
jermnelson merged commit 72d9c8a into main Feb 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test SHACL Validation Github Workflow

2 participants