Skip to content

Commit

Permalink
release: 🔖 version 0.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kikkomep committed Nov 13, 2024
2 parents cd823ac + dc581d4 commit c66fa59
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "roc-validator"
version = "0.4.5"
version = "0.4.6"
description = "A Python package to validate RO-Crates"
authors = [
"Marco Enrico Piras <[email protected]>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def is_entity_flat_recursive(entity: Any, is_first: bool = True) -> bool:
return False
# if this is not the root element, it must not contain more properties than @id
else:
if "@id" in entity and len(entity) > 1:
if "@id" not in entity or len(entity) > 1:
return False
if isinstance(entity, list):
for element in entity:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@
"@id": "https://w3id.org/ro/crate/1.1"
},
"about": {
"@type": "Dataset",
"@id": "./",
"hasPart": [
{
"@type": "File",
"@id": "test.csv",
"encodingFormat": "text/csv",
"name": "This is a test file",
"description": "This is a test dataset"
}
],
"name": "This is a test dataset",
"description": "This is a test dataset",
"license": {
"@id": "https://creativecommons.org/licenses/by/4.0/"
},
"datePublished": "2024-11-05"
"@id": "./"
}
},
{
"@id": "./",
"@type": "Dataset",
"name": "This is a test dataset",
"description": "This is a test dataset",
"license": {
"@id": "https://creativecommons.org/licenses/by/4.0/"
},
"datePublished": "2024-11-05",
"hasPart": [
{
"@type": "File",
"name": "File in a nested entity"
}
]
}
]
}

0 comments on commit c66fa59

Please sign in to comment.