-
-
Save mamund/2c537865bdc99cd4f3c8 to your computer and use it in GitHub Desktop.
adjusted bio-alps example to move the custom "_property" section elements in into the existing "data" section for each item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"collection" : { | |
"version" : "1.0", | |
"href" : "http://example.org/assemblies/", | |
"links" : [ | |
{ | |
"rel" : "profile", | |
"href" : "http://alps.example.org/bioassembly.xml" | |
}, | |
{ | |
"rel" : "search", | |
"href" : "http://example.org/assemblies/search" | |
}, | |
{ | |
"rel" : "create-form", | |
"href" : "http://example.org/assemblies/add" | |
} | |
], | |
"items" : [ | |
{ | |
"href" : "http://example.org/assemblies/hg38", | |
"rel" : "item", | |
"data" : [ | |
{"name" : "title", "value" : "Human genome assembly GRCh38" }, | |
{"name" : "version", "value" : "hg38" }, | |
{"name" : "SO:0001491", "value" : "finished", "type" : "property" }, | |
{"name" : "EFO:0000634", "value" : "Homo Sapiens", "type" : "property" } | |
], | |
"links" : [ | |
{ | |
"rel" : "related", | |
"href" : "http://example.org/hg38/chr/1" | |
}, | |
{ | |
"rel" : "related", | |
"href" : "http://example.org/hg38/chr/2" | |
}, | |
{ | |
"rel" : "related", | |
"href" : "http://example.org/hg38/chr/3" | |
}, | |
{ | |
"rel" : "edit-form", | |
"href" : "http://example.org/assemblies/hg38/edit" | |
} | |
] | |
}, | |
{ | |
"href" : "http://example.org/assemblies/hg19", | |
"rel" : "item", | |
"data" : [ | |
{"name" : "title", "value" : "Human genome assembly GRCh37" }, | |
{"name" : "version", "value" : "hg19" }, | |
{"name" : "SO:0001491", "value" : "finished", "type" : "property" }, | |
{"name" : "EFO:0000634", "value" : "Homo Sapiens", "type" : "property" } | |
], | |
"links" : [ | |
{ | |
"rel" : "related", | |
"href" : "http://example.org/hg19/chr/1" | |
}, | |
{ | |
"rel" : "related", | |
"href" : "http://example.org/hg19/chr/2" | |
}, | |
{ | |
"rel" : "related", | |
"href" : "http://example.org/hg19/chr/3" | |
}, | |
{ | |
"rel" : "edit-form", | |
"href" : "http://example.org/assemblies/hg19/edit" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment