ocrd_validators.workspace_validator module

Validating a workspace.

class ocrd_validators.workspace_validator.WorkspaceValidator(resolver, mets_url, src_dir=None, skip=None, download=False, page_strictness='strict')[source]

Bases: object

Validates an OCR-D/METS workspace against the specs.

static validate(*args, **kwargs)[source]

Validates the workspace of a METS URL against the specs

Parameters:
  • resolver (ocrd.Resolver) – Resolver
  • mets_url (string) – URL of the METS file
  • src_dir (string, None) – Directory containing mets file
  • skip (list) – Tests to skip. One or more of ‘mets_unique_identifier’, ‘mets_file_group_names’, ‘mets_files’, ‘pixel_density’, ‘dimension’, ‘url’
  • download (boolean) – Whether to download files
Returns:

report (ValidationReport) Report on the validity