You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the ro-crate-py package to load the example .eln files I encounter errors like the following in almost all cases:
(...)
File "(...)/ro-crate-py/rocrate/model/entity.py", line 107, in __setitem__
raise ValueError(f"no @id in {v}")
ValueError: no @id in {'value': 'Test if everything is working as intended.', 'propertyID': '.objective', 'name': ' → Objective', '@type': 'PropertyValue', 'description': 'What is the objective?'}
I originally thought this was an issue of the ro-crate-py-package and posted an issue there: ResearchObject/ro-crate-py#202
It turns out that the structure of the .eln-example files does not comply the following RO-Crate-Requirement:
The RO-Crate Metadata File MUST contain RO-Crate JSON-LD; a valid JSON-LD 1.0 document in flattened and compacted form
RSpace-2023-12-08-14-44-xml-SELECTION-c0bEtpHcnNe-HA.eln - ok
export.eln
no @id in {'@type': 'AggregateRating', 'ratingValue': 4, 'reviewCount': 1}
sampledb_export.eln
no @id in {'value': 'Measurement', '@type': 'PropertyValue', 'propertyID': 'name', 'name': 'Object Name'}
records-example.eln
no @id in {'@type': 'PropertyValue', 'additionalType': 'str', 'propertyID': 'type', 'value': 'Measurement'}
Export workbook-2024-08-27-export.eln
no @id in {'@type': 'Organization', 'name': 'AI4Green', 'slogan': 'AI for Green Chemistry. Electronic Lab Notebook with Machine Learning Support.', 'url': 'https://www.ai4green.app', 'parentOrganization': '#university-of-nottingham'}
PASTA.eln
no @id in {'value': 'Test if everything is working as intended.', 'propertyID': '.objective', 'name': ' → Objective', '@type': 'PropertyValue', 'description': 'What is the objective?'}
test.eln
no @id in {'@type': 'TextObject', 'encodingFormat': 'text/plain', 'text': 'JSON export of 00-use-this-record-to-test-chatbot.'}
(So only the RSpace example seems to contain a flattened JSON-LD.)
The validator currently does not check this requirement, but a feature request is already submitted: crs4/rocrate-validator#27
The text was updated successfully, but these errors were encountered:
When using the ro-crate-py package to load the example .eln files I encounter errors like the following in almost all cases:
I originally thought this was an issue of the ro-crate-py-package and posted an issue there:
ResearchObject/ro-crate-py#202
It turns out that the structure of the .eln-example files does not comply the following RO-Crate-Requirement:
See: https://www.researchobject.org/ro-crate/specification/1.1/structure.html#ro-crate-metadata-file-ro-crate-metadatajson
and: ResearchObject/ro-crate-py#202
Test report for the .eln-example files:
(So only the RSpace example seems to contain a flattened JSON-LD.)
The validator currently does not check this requirement, but a feature request is already submitted: crs4/rocrate-validator#27
The text was updated successfully, but these errors were encountered: