The “Classic”#
This example is equivalent to the one in Section 4 of DDL in BNF for HDF5.
{
"apiVersion": "1.0.0",
"id": "e203fee7-89b4-4216-894d-7aef0e3a199d",
"root": "903d1d75-e617-4767-a3bf-0cb3ee509027",
"groups": {
"903d1d75-e617-4767-a3bf-0cb3ee509027": {
"attributes": [
{
"name": "attr1",
"type": {
"class": "H5T_STRING",
"length": 17,
"strPad": "H5T_STR_NULLTERM",
"charSet": "H5T_CSET_ASCII"
},
"shape": {
"class": "H5S_SCALAR"
},
"value": "string attribute"
}
],
"links": [
{
"class": "H5L_TYPE_HARD",
"title": "dset1",
"collection": "datasets",
"id": "30292613-8d2a-4dc4-a277-b9d59d5b0d20"
},
{
"class": "H5L_TYPE_HARD",
"title": "group1",
"collection": "groups",
"id": "be8dcb22-b411-4439-85e9-ea384a685ae0"
},
{
"class": "H5L_TYPE_HARD",
"title": "group2",
"collection": "groups",
"id": "be8dcb22-b411-4439-85e9-ea384a685ae0"
},
{
"class": "H5L_TYPE_HARD",
"title": "dset2",
"collection": "datasets",
"id": "0a68caca-629a-44aa-9f37-311e7ffb8417"
},
{
"class": "H5L_TYPE_HARD",
"title": "dset3",
"collection": "datasets",
"id": "4b43748e-817f-44c6-a9f1-16e242fd374b"
},
{
"class": "H5L_TYPE_SOFT",
"title": "slink1",
"h5path": "somevalue"
},
{
"class": "H5L_TYPE_HARD",
"title": "type1",
"collection": "datatypes",
"id": "a93ff089-d466-44e7-b3f0-09db34ec2ef5"
}
]
},
"be8dcb22-b411-4439-85e9-ea384a685ae0": {
"links": [
{
"class": "H5L_TYPE_HARD",
"title": "dset3",
"collection": "datasets",
"id": "42f5e3a2-5e70-4faf-9893-fd216257a0d9"
}
]
}
},
"datasets": {
"30292613-8d2a-4dc4-a277-b9d59d5b0d20": {
"type": {
"class": "H5T_INTEGER",
"base": "H5T_STD_I32BE"
},
"shape": {
"class": "H5S_SIMPLE",
"dims": [ 10, 10 ],
"maxdims": [ 10, 10 ]
},
"value": [
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
]
},
"0a68caca-629a-44aa-9f37-311e7ffb8417": {
"type": {
"class": "H5T_COMPOUND",
"fields": [
{
"name": "a",
"type": {
"class": "H5T_INTEGER",
"base": "H5T_STD_I32BE"
}
},
{
"name": "b",
"type": {
"class": "H5T_FLOAT",
"base": "H5T_IEEE_F32BE"
}
},
{
"name": "c",
"type": {
"class": "H5T_FLOAT",
"base": "H5T_IEEE_F64BE"
}
}
]
},
"shape": {
"class": "H5S_SIMPLE",
"dims": [5],
"maxdims": [5]
},
"value": [
[ 1, 0.1, 0.01 ],
[ 2, 0.2, 0.02 ],
[ 3, 0.3, 0.03 ],
[ 4, 0.4, 0.04 ],
[ 5, 0.5, 0.05 ]
]
},
"4b43748e-817f-44c6-a9f1-16e242fd374b": {
"type": {
"class": "H5T_VLEN",
"base": {
"class": "H5T_INTEGER",
"base": "H5T_STD_I32LE"
}
},
"shape": {
"class": "H5S_SIMPLE",
"dims": [4],
"maxdims": [4]
},
"value": [
[ 0 ],
[ 10, 11 ],
[ 20, 21, 22 ],
[ 30, 31, 32, 33 ]
]
},
"42f5e3a2-5e70-4faf-9893-fd216257a0d9": {
"type": "datatypes/a93ff089-d466-44e7-b3f0-09db34ec2ef5",
"shape": {
"class": "H5S_SIMPLE",
"dims": [5],
"maxdims": [5]
},
"value": [
[
[ 0, 1, 2, 3 ],
[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