Skip to content

Commit 75d0442

Browse files
committed
refactor(checks): ♻️ document web-data-entity exclusion
1 parent 76e92a4 commit 75d0442

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rocrate_validator/profiles/ro-crate/must/4_data_entity_metadata.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ def check_availability(self, context: ValidationContext) -> bool:
3838
return True
3939
# Perform the check
4040
result = True
41+
# Web-based Data Entities (absolute URIs with any scheme other than `file`,
42+
# e.g. http://, https://, ftp://, scp://, s3://, ...) are not required to
43+
# be part of the local payload per the RO-Crate specification.
4144
for entity in context.ro_crate.metadata.get_data_entities(exclude_web_data_entities=True):
4245
assert entity.id is not None, "Entity has no @id"
4346
logger.debug("Ensure the presence of the Data Entity '%s' within the RO-Crate", entity.id)
4447
try:
45-
logger.debug("Ensure the presence of the Data Entity '%s' within the RO-Crate", entity.id)
4648
if entity.has_local_identifier():
4749
logger.debug(
4850
"Ignoring the Data Entity '%s' as it is a local entity with a local identifier. "

0 commit comments

Comments
 (0)