Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example of ro-crate-metadata.json with information from zattr file #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dev3/2024-07-02/example-metadata/zattr/zattr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Example zattrs file and how that data would look in ro-crate-metadata.json.

Context has been left to the imagination, as it would require a lot of effort to find suitable linked data terms to use.

zattr_as_rocrate.json shows an approximation of what the structure might look like. Fields such as "omero" and "multiscales" have dissapeared, as they would probably be equivalent to different named graphs in linked data terminology, rather than actual different objects.

zattr_as_rocrate_extended_linked_data.json builds on zattr_as_rocrate.json to show what the data could look like were external vocabularies used to reference the units & types of axes used. This could possbily also be used for the 'family' field in channels, but stopped with units & axes because those seemed most likely to have existing external vocabularies.
148 changes: 148 additions & 0 deletions dev3/2024-07-02/example-metadata/zattr/zattr_as_rocrate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
{
"@context": "https://some.sensible.context",
"@graph": [
{
"@type": "CreativeWork",
"@id": "ro-crate-metadata.json",
"conformsTo": {
"@id": "https://w3id.org/ro/crate/1.1"
},
"about": {
"@id": "./"
}
},
{
"@id": "./",
"@type": "Dataset",
"axes": [
"_:b0",
"_:b1",
"_:b2",
"_:b3",
"_:b4"
],
"version": "Bio-Formats 6.10.1",
"method": "loci.common.image.SimpleImageScaler",
"channels": [
"_:b5",
"_:b6"
],
"render_default": "_:b7",
"has_part": [
"./0/",
"./1/"
]
},
{
"@id": "_:b0",
"@type": "axis",
"name": "t",
"axis_type": "time"
},
{
"@id": "_:b1",
"@type": "axis",
"name": "c",
"axis_type": "channel"
},
{
"@id": "_:b2",
"@type": "axis",
"name": "z",
"axis_type": "space"
},
{
"@id": "_:b3",
"@type": "axis",
"name": "y",
"axis_type": "space",
"unit": "micrometer"
},
{
"@id": "_:b4",
"@type": "axis",
"name": "x",
"axis_type": "space",
"unit": "micrometer"
},
{
"@id": "_:b5",
"@type": "channel",
"color": "FF6600",
"coefficient": 1,
"active": true,
"label": "AF555-T1",
"window": "_:b8",
"family": "linear",
"inverted": false
},
{
"@id": "_:b6",
"@type": "channel",
"color": "00FF00",
"coefficient": 1,
"active": true,
"label": "AF488-T2",
"window": "_:b9",
"family": "linear",
"inverted": false
},
{
"@id": "_:b8",
"@type": "RenderedView",
"defaultT": 0,
"model": "color",
"defaultZ": 0
},
{
"@id": "_:b8",
"@type": "window",
"min": 0.0,
"max": 255.0,
"start": 0.0,
"end": 255.0
},
{
"@id": "_:b9",
"@type": "window",
"min": 0.0,
"max": 255.0,
"start": 0.0,
"end": 255.0
},
{
"@id": "./0/",
"@type": "Dataset",
"coordianteTansformations": "_:b10"
},
{
"@id": "./1/",
"@type": "Dataset",
"coordianteTansformations": "_:b11"
},
{
"@id": "_:b10",
"@type": "CoordinateTransformation",
"scale": [
1.0,
1.0,
1.0,
0.22007964065255714,
0.22007964065255714
],
"transformation_type": "scale"
},
{
"@id": "_:b11",
"@type": "CoordinateTransformation",
"scale": [
1.0,
1.0,
1.0,
0.4401592813051143,
0.4401592813051143
],
"transformation_type": "scale"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
{
"@context": "https://some.sensible.context",
"@graph": [
{
"@type": "CreativeWork",
"@id": "ro-crate-metadata.json",
"conformsTo": {
"@id": "https://w3id.org/ro/crate/1.1"
},
"about": {
"@id": "./"
}
},
{
"@id": "./",
"@type": "Dataset",
"axes": [
"_:b0",
"_:b1",
"_:b2",
"_:b3",
"_:b4"
],
"version": "Bio-Formats 6.10.1",
"method": "loci.common.image.SimpleImageScaler",
"channels": [
"_:b5",
"_:b6"
],
"render_default": "_:b7",
"has_part": [
"./0/",
"./1/"
]
},
{
"@id": "_:b0",
"@type": "axis",
"name": "t",
"axis_type": "https://some.external.vocab/0123"
},
{
"@id": "https://some.external.vocab/0123",
"@type": "AxisClassification",
"name": "time"
},
{
"@id": "_:b1",
"@type": "axis",
"name": "c",
"axis_type": "https://some.external.vocab/0124"
},
{
"@id": "https://some.external.vocab/0124",
"@type": "AxisClassification",
"name": "channel"
},
{
"@id": "_:b2",
"@type": "axis",
"name": "z",
"axis_type": "https://some.external.vocab/0125"
},
{
"@id": "https://some.external.vocab/0125",
"@type": "AxisClassification",
"name": "space"
},
{
"@id": "_:b3",
"@type": "axis",
"name": "y",
"axis_type": "https://some.external.vocab/0125",
"unit": "https://some.other.external.vocab/0123"
},
{
"@id": "https://some.other.external.vocab/0123",
"@type": "UnitOfMeasure",
"name": "micrometer"
},
{
"@id": "_:b4",
"@type": "axis",
"name": "x",
"axis_type": "https://some.external.vocab/0125",
"unit": "https://some.other.external.vocab/0123"
},
{
"@id": "_:b5",
"@type": "channel",
"color" : "FF6600",
"coefficient" : 1,
"active" : true,
"label" : "AF555-T1",
"window" : "_:b8",
"family" : "linear",
"inverted" : false
},
{
"@id": "_:b6",
"@type": "channel",
"color" : "00FF00",
"coefficient" : 1,
"active" : true,
"label" : "AF488-T2",
"window" : "_:b9",
"family" : "linear",
"inverted" : false
},
{
"@id": "_:b8",
"@type": "RenderedView",
"defaultT" : 0,
"model" : "color",
"defaultZ" : 0
},
{
"@id": "_:b8",
"@type": "window",
"min" : 0.0,
"max" : 255.0,
"start" : 0.0,
"end" : 255.0
},
{
"@id": "_:b9",
"@type": "window",
"min" : 0.0,
"max" : 255.0,
"start" : 0.0,
"end" : 255.0
},
{
"@id": "./0/",
"@type": "Dataset",
"coordianteTansformations": "_:b10"
},
{
"@id": "./1/",
"@type": "Dataset",
"coordianteTansformations": "_:b11"
},
{
"@id": "_:b10",
"@type": "CoordinateTransformation",
"scale": [
1.0,
1.0,
1.0,
0.22007964065255714,
0.22007964065255714
],
"transformation_type": "scale"
},
{
"@id": "_:b11",
"@type": "CoordinateTransformation",
"scale": [
1.0,
1.0,
1.0,
0.4401592813051143,
0.4401592813051143
],
"transformation_type": "scale"
}
]
}
Loading