ISA-tools / isa-api

ISA tools API
https://isa-tools.org
Other
41 stars 38 forks source link

isajson: create @id for a number of ISA objects currently 'orphaned' #414

Open proccaserra opened 3 years ago

proccaserra commented 3 years ago

Background: Conversion from ISA-JSON to ISA-JSONLD and tuning of ISA JSON context files

Affected component: isajson.py

example fix on def get_ontology_source(obj) (https://github.com/ISA-tools/isa-api/blob/0e934efcc32b13166a3808ec3373116078e47912/isatools/isajson.py#L1599) return clean_nulls( { "@id": id_gen(obj), "name": obj.name, "description": obj.description, "file": obj.file, "version": obj.version, "comments": get_comments(obj.comments) if obj.comments else [] }

proccaserra commented 3 years ago

further testing indicates retrofit is needed for the following objects too