Welcome to rocrate-validator’s documentation!
rocrate-validator
(available as roc-validator
on PyPI) is a Python package to validate RO-Crates
against different profiles, including the base RO-Crate profile and various extensions.
Features
Validates RO-Crates against the profiles they declare to conform to. Currently, validation for the following profiles is implemented:
Filters profile validation rules by requirement level (i.e.,
REQUIRED
,RECOMMENDED
,OPTIONAL
).Provides detailed information about the issues found during validation.
Supports validation of RO-Crates stored locally as directories or as ZIP archives (
.zip
files) or remotely accessible via HTTP or HTTPS (e.g.,http://example.com/ro-crate.zip
).Supports CLI-based validation as well as programmatic validation (so it can easily be used by Python code).
Extensible framework: new RO-Crate profiles can be added, implementing profile requirements as SHACL shapes and/or Python code.
Getting Started
Resources
- Writing a new profile
- API documentation
- Core Services
- Core Models
- RO-Crate
- Profiles, Requirements, and Checks
Profile
Profile.path
Profile.identifier
Profile.name
Profile.token
Profile.uri
Profile.comment
Profile.version
Profile.is_profile_of
Profile.is_transitive_profile_of
Profile.parents
Profile.siblings
Profile.readme_file_path
Profile.profile_specification_file_path
Profile.severity
Profile.description
Profile.requirements
Profile.get_requirements()
Profile.get_requirement()
Profile.get_requirement_check()
Profile.get_by_identifier()
Profile.get_by_uri()
Profile.get_by_name()
Profile.get_by_token()
Profile.get_sibling_profiles()
Profile.all()
Requirement
RequirementCheck
- Severity
- Validation
ValidationSettings
ValidationSettings.profiles_path
ValidationSettings.profile_identifier
ValidationSettings.enable_profile_inheritance
ValidationSettings.abort_on_first
ValidationSettings.disable_inherited_profiles_reporting
ValidationSettings.disable_remote_crate_download
ValidationSettings.requirement_severity
ValidationSettings.requirement_severity_only
ValidationSettings.allow_requirement_check_override
ValidationSettings.disable_check_for_duplicates
ValidationSettings.skip_checks
ValidationSettings.to_dict()
ValidationSettings.rocrate_uri
ValidationSettings.parse()
ValidationContext
ValidationContext.ro_crate
ValidationContext.validator
ValidationContext.result
ValidationContext.settings
ValidationContext.publicID
ValidationContext.profiles_path
ValidationContext.requirement_severity
ValidationContext.requirement_severity_only
ValidationContext.rocrate_uri
ValidationContext.fail_fast
ValidationContext.rel_fd_path
ValidationContext.get_data_graph()
ValidationContext.data_graph
ValidationContext.inheritance_enabled
ValidationContext.profile_identifier
ValidationContext.allow_requirement_check_override
ValidationContext.disable_check_for_duplicates
ValidationContext.profiles
ValidationContext.target_profile
ValidationContext.get_profile_by_token()
ValidationContext.get_profile_by_identifier()
ValidationResult
ValidationResult.context
ValidationResult.rocrate_uri
ValidationResult.validation_settings
ValidationResult.executed_checks
ValidationResult.get_executed_check_result()
ValidationResult.skipped_checks
ValidationResult.issues
ValidationResult.get_issues()
ValidationResult.get_issues_by_check()
ValidationResult.has_issues()
ValidationResult.passed()
ValidationResult.add_issue()
ValidationResult.failed_requirements
ValidationResult.failed_checks
ValidationResult.get_failed_checks_by_requirement()
ValidationResult.get_failed_checks_by_requirement_and_severity()
ValidationResult.to_dict()
ValidationResult.to_json()
CheckIssue
Event
EventType
Subscriber
- Errors
- Python Check API
- Index