Skip to content

Commit

Permalink
checks.py: Add AddiionalChecks for BODS 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Sep 19, 2024
1 parent 30ff2c1 commit 991cbfe
Show file tree
Hide file tree
Showing 3 changed files with 2,118 additions and 1 deletion.
19 changes: 19 additions & 0 deletions libcovebods/run_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@
libcovebods.tasks.checks.CheckStatementPublicationDateFutureDate,
libcovebods.tasks.checks.CheckStatementPersonDateOfDeathSane,
libcovebods.tasks.checks.CheckStatementEntityFoundationDissolutionDates,
libcovebods.tasks.checks.CheckStatementPersonBirthDateSensible,
libcovebods.tasks.checks.CheckStatementRelationshipInterestsStartEndDates,
libcovebods.tasks.checks.CheckStatementRelationshipInterestsShareValues,
libcovebods.tasks.checks.CheckStatementDeclarationSubject,
libcovebods.tasks.checks.CheckStatementIsComponent,
libcovebods.tasks.checks.CheckStatementDuplicateStatementId,
libcovebods.tasks.checks.CheckStatementSeries,
libcovebods.tasks.checks.CheckStatementRelationshipParties,
libcovebods.tasks.checks.CheckAnnotationStatementPointerTarget,
libcovebods.tasks.checks.CheckStatementRelationshipInterests,
libcovebods.tasks.checks.CheckStatementSerialisation,
libcovebods.tasks.statistics.StatisticsCountEntityStatements,
libcovebods.tasks.statistics.StatisticsCountEntityRecordStatements,
libcovebods.tasks.statistics.StatisticsCountPersonStatements,
Expand Down Expand Up @@ -45,6 +56,12 @@
libcovebods.tasks.checks.CheckStatementPublicationDateFutureDate,
libcovebods.tasks.checks.CheckStatementPersonDateOfDeathSane,
libcovebods.tasks.checks.CheckStatementEntityFoundationDissolutionDates,
libcovebods.tasks.checks.CheckStatementPersonBirthDateSensible,
libcovebods.tasks.checks.CheckStatementRelationshipInterestsStartEndDates,
libcovebods.tasks.checks.CheckStatementRelationshipInterestsShareValues,
libcovebods.tasks.checks.CheckStatementDuplicateStatementId,
libcovebods.tasks.checks.CheckAnnotationStatementPointerTarget,
libcovebods.tasks.checks.CheckStatementRelationshipInterests,
libcovebods.tasks.statistics.StatisticsCountEntityStatements,
libcovebods.tasks.statistics.StatisticsCountEntityRecordStatements,
libcovebods.tasks.statistics.StatisticsCountPersonStatements,
Expand Down Expand Up @@ -96,6 +113,8 @@ def process_additional_checks(
for statement in all_data:
#statement_type = statement.get("statementType")
statement_type = get_statement_type(statement, schema_object)
for additional_check_instance in additional_check_instances:
additional_check_instance.check_statement_second_pass(statement)
if statement_type == "entityStatement":
for additional_check_instance in additional_check_instances:
additional_check_instance.check_entity_statement_second_pass(statement)
Expand Down
Loading

0 comments on commit 991cbfe

Please sign in to comment.