Posts

Showing posts with the label bioinformatics

How to represent a table structure in jsonapi

Image
How to represent a table structure in jsonapi Have the following problem. We are implementing a REST API very much based on JsonApi specification. We are importing table structured files. Where: - part of the row is the metadata of Object1 - column header is the link to an external Object2 - cell value is the 'expression' of the relationship between Object1 and Object2. For example: You have biological sample (Object2) and run experiment to see if a specific mutation (Object 1) is available to that sample. The cell value can have different values which specifically state that a mutation for that sample is present, partially present or non present. How using JSONAPI we would be able to represent such relationship. In which object the cell value should be saved? Object1? The relationship object? UPD: Forgot to mention. If we use only the "green" part of the row (metadata), we would be able to create unique objects. Which could be reused across files and linked to new ob...