Download scene_graph.schema.json from ChartGalaxyPP/ChartGalaxyPlusPlus: direct link, hf CLI and curl.
- Browser
- Download file 18.5 kB
-
https://huggingface.co/datasets/ChartGalaxyPP/ChartGalaxyPlusPlus/resolve/main/scene_graph.schema.json
- Command line
-
hf download hf://datasets/ChartGalaxyPP/ChartGalaxyPlusPlus/scene_graph.schema.json
-
curl -L -o scene_graph.schema.json https://huggingface.co/datasets/ChartGalaxyPP/ChartGalaxyPlusPlus/resolve/main/scene_graph.schema.json
18.5 kB
| {"$defs":{"axis_group":{"additionalProperties":false,"properties":{"bbox":{"description":"Full-image logical bounding box in [y0, x0, y1, x1] order on a 0-1000 grid.","items":{"maximum":1000,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"color_palette":{"description":"Dominant region colors. RGB uses #RRGGBB; RGBA uses #RRGGBBAA with alpha in the final two digits.","items":{"pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","type":"string"},"type":"array","uniqueItems":true},"desc":{"description":"Complete crop-local reconstruction description. It must not be a short label explanation or truncated content, and must not transcribe, translate, paraphrase, or explain visible wording. Text regions describe typography and layout only.","minLength":1,"pattern":"\\S","type":"string"},"group_type":{"const":"axis"},"label":{"pattern":"^<axis [1-9][0-9]*>$","type":"string"},"node_kind":{"const":"group"},"parent":{"oneOf":[{"const":"ROOT"},{"pattern":"^<(text|image|shape|chart|axis|legend|legend_item|data_item|series|panel) [1-9][0-9]*>$","type":"string"}]}},"required":["label","parent","node_kind","bbox","desc","color_palette","group_type"],"type":"object"},"chart_group":{"additionalProperties":false,"properties":{"bbox":{"description":"Full-image logical bounding box in [y0, x0, y1, x1] order on a 0-1000 grid.","items":{"maximum":1000,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"color_palette":{"description":"Dominant region colors. RGB uses #RRGGBB; RGBA uses #RRGGBBAA with alpha in the final two digits.","items":{"pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","type":"string"},"type":"array","uniqueItems":true},"desc":{"description":"Complete crop-local reconstruction description. It must not be a short label explanation or truncated content, and must not transcribe, translate, paraphrase, or explain visible wording. Text regions describe typography and layout only.","minLength":1,"pattern":"\\S","type":"string"},"group_type":{"const":"chart"},"label":{"pattern":"^<chart [1-9][0-9]*>$","type":"string"},"node_kind":{"const":"group"},"parent":{"oneOf":[{"const":"ROOT"},{"pattern":"^<(text|image|shape|chart|axis|legend|legend_item|data_item|series|panel) [1-9][0-9]*>$","type":"string"}]}},"required":["label","parent","node_kind","bbox","desc","color_palette","group_type"],"type":"object"},"data_item_group":{"additionalProperties":false,"properties":{"bbox":{"description":"Full-image logical bounding box in [y0, x0, y1, x1] order on a 0-1000 grid.","items":{"maximum":1000,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"color_palette":{"description":"Dominant region colors. RGB uses #RRGGBB; RGBA uses #RRGGBBAA with alpha in the final two digits.","items":{"pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","type":"string"},"type":"array","uniqueItems":true},"desc":{"description":"Complete crop-local reconstruction description. It must not be a short label explanation or truncated content, and must not transcribe, translate, paraphrase, or explain visible wording. Text regions describe typography and layout only.","minLength":1,"pattern":"\\S","type":"string"},"group_type":{"const":"data_item"},"label":{"pattern":"^<data_item [1-9][0-9]*>$","type":"string"},"node_kind":{"const":"group"},"parent":{"oneOf":[{"const":"ROOT"},{"pattern":"^<(text|image|shape|chart|axis|legend|legend_item|data_item|series|panel) [1-9][0-9]*>$","type":"string"}]}},"required":["label","parent","node_kind","bbox","desc","color_palette","group_type"],"type":"object"},"image_element":{"additionalProperties":false,"allOf":[{"if":{"properties":{"role_family":{"const":"data_expression"}},"required":["role_family"]},"then":{"properties":{"role":{"enum":["data_mark","value_label","direct_readout"]}}}},{"if":{"properties":{"role_family":{"const":"reading_reference"}},"required":["role_family"]},"then":{"properties":{"role":{"enum":["axis_line","tick_mark","tick_label","axis_title","gridline","legend_key","legend_label","legend_title","entity_label","reference_line","annotation_connector"]}}}},{"if":{"properties":{"role_family":{"const":"context"}},"required":["role_family"]},"then":{"properties":{"role":{"enum":["heading","explanation","source_credit","subject_depiction"]}}}},{"if":{"properties":{"role_family":{"const":"presentation"}},"required":["role_family"]},"then":{"properties":{"role":{"enum":["boundary","separator","emphasis","ornament"]}}}}],"properties":{"bbox":{"description":"Full-image logical bounding box in [y0, x0, y1, x1] order on a 0-1000 grid.","items":{"maximum":1000,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"color_palette":{"description":"Dominant region colors. RGB uses #RRGGBB; RGBA uses #RRGGBBAA with alpha in the final two digits.","items":{"pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","type":"string"},"type":"array","uniqueItems":true},"desc":{"description":"Complete crop-local reconstruction description. It must not be a short label explanation or truncated content, and must not transcribe, translate, paraphrase, or explain visible wording. Text regions describe typography and layout only.","minLength":1,"pattern":"\\S","type":"string"},"element_type":{"const":"image"},"label":{"pattern":"^<image [1-9][0-9]*>$","type":"string"},"node_kind":{"const":"element"},"parent":{"oneOf":[{"const":"ROOT"},{"pattern":"^<(text|image|shape|chart|axis|legend|legend_item|data_item|series|panel) [1-9][0-9]*>$","type":"string"}]},"role":{"enum":["data_mark","value_label","direct_readout","axis_line","tick_mark","tick_label","axis_title","gridline","legend_key","legend_label","legend_title","entity_label","reference_line","annotation_connector","heading","explanation","source_credit","subject_depiction","boundary","separator","emphasis","ornament"]},"role_family":{"enum":["data_expression","reading_reference","context","presentation"]}},"required":["label","parent","node_kind","bbox","desc","color_palette","element_type","role_family","role"],"type":"object"},"legend_group":{"additionalProperties":false,"properties":{"bbox":{"description":"Full-image logical bounding box in [y0, x0, y1, x1] order on a 0-1000 grid.","items":{"maximum":1000,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"color_palette":{"description":"Dominant region colors. RGB uses #RRGGBB; RGBA uses #RRGGBBAA with alpha in the final two digits.","items":{"pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","type":"string"},"type":"array","uniqueItems":true},"desc":{"description":"Complete crop-local reconstruction description. It must not be a short label explanation or truncated content, and must not transcribe, translate, paraphrase, or explain visible wording. Text regions describe typography and layout only.","minLength":1,"pattern":"\\S","type":"string"},"group_type":{"const":"legend"},"label":{"pattern":"^<legend [1-9][0-9]*>$","type":"string"},"node_kind":{"const":"group"},"parent":{"oneOf":[{"const":"ROOT"},{"pattern":"^<(text|image|shape|chart|axis|legend|legend_item|data_item|series|panel) [1-9][0-9]*>$","type":"string"}]}},"required":["label","parent","node_kind","bbox","desc","color_palette","group_type"],"type":"object"},"legend_item_group":{"additionalProperties":false,"properties":{"bbox":{"description":"Full-image logical bounding box in [y0, x0, y1, x1] order on a 0-1000 grid.","items":{"maximum":1000,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"color_palette":{"description":"Dominant region colors. RGB uses #RRGGBB; RGBA uses #RRGGBBAA with alpha in the final two digits.","items":{"pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","type":"string"},"type":"array","uniqueItems":true},"desc":{"description":"Complete crop-local reconstruction description. It must not be a short label explanation or truncated content, and must not transcribe, translate, paraphrase, or explain visible wording. Text regions describe typography and layout only.","minLength":1,"pattern":"\\S","type":"string"},"group_type":{"const":"legend_item"},"label":{"pattern":"^<legend_item [1-9][0-9]*>$","type":"string"},"node_kind":{"const":"group"},"parent":{"oneOf":[{"const":"ROOT"},{"pattern":"^<(text|image|shape|chart|axis|legend|legend_item|data_item|series|panel) [1-9][0-9]*>$","type":"string"}]}},"required":["label","parent","node_kind","bbox","desc","color_palette","group_type"],"type":"object"},"panel_group":{"additionalProperties":false,"properties":{"bbox":{"description":"Full-image logical bounding box in [y0, x0, y1, x1] order on a 0-1000 grid.","items":{"maximum":1000,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"color_palette":{"description":"Dominant region colors. RGB uses #RRGGBB; RGBA uses #RRGGBBAA with alpha in the final two digits.","items":{"pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","type":"string"},"type":"array","uniqueItems":true},"desc":{"description":"Complete crop-local reconstruction description. It must not be a short label explanation or truncated content, and must not transcribe, translate, paraphrase, or explain visible wording. Text regions describe typography and layout only.","minLength":1,"pattern":"\\S","type":"string"},"group_type":{"const":"panel"},"label":{"pattern":"^<panel [1-9][0-9]*>$","type":"string"},"node_kind":{"const":"group"},"parent":{"oneOf":[{"const":"ROOT"},{"pattern":"^<(text|image|shape|chart|axis|legend|legend_item|data_item|series|panel) [1-9][0-9]*>$","type":"string"}]}},"required":["label","parent","node_kind","bbox","desc","color_palette","group_type"],"type":"object"},"series_group":{"additionalProperties":false,"properties":{"bbox":{"description":"Full-image logical bounding box in [y0, x0, y1, x1] order on a 0-1000 grid.","items":{"maximum":1000,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"color_palette":{"description":"Dominant region colors. RGB uses #RRGGBB; RGBA uses #RRGGBBAA with alpha in the final two digits.","items":{"pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","type":"string"},"type":"array","uniqueItems":true},"desc":{"description":"Complete crop-local reconstruction description. It must not be a short label explanation or truncated content, and must not transcribe, translate, paraphrase, or explain visible wording. Text regions describe typography and layout only.","minLength":1,"pattern":"\\S","type":"string"},"group_type":{"const":"series"},"label":{"pattern":"^<series [1-9][0-9]*>$","type":"string"},"node_kind":{"const":"group"},"parent":{"oneOf":[{"const":"ROOT"},{"pattern":"^<(text|image|shape|chart|axis|legend|legend_item|data_item|series|panel) [1-9][0-9]*>$","type":"string"}]}},"required":["label","parent","node_kind","bbox","desc","color_palette","group_type"],"type":"object"},"shape_element":{"additionalProperties":false,"allOf":[{"if":{"properties":{"role_family":{"const":"data_expression"}},"required":["role_family"]},"then":{"properties":{"role":{"enum":["data_mark","value_label","direct_readout"]}}}},{"if":{"properties":{"role_family":{"const":"reading_reference"}},"required":["role_family"]},"then":{"properties":{"role":{"enum":["axis_line","tick_mark","tick_label","axis_title","gridline","legend_key","legend_label","legend_title","entity_label","reference_line","annotation_connector"]}}}},{"if":{"properties":{"role_family":{"const":"context"}},"required":["role_family"]},"then":{"properties":{"role":{"enum":["heading","explanation","source_credit","subject_depiction"]}}}},{"if":{"properties":{"role_family":{"const":"presentation"}},"required":["role_family"]},"then":{"properties":{"role":{"enum":["boundary","separator","emphasis","ornament"]}}}}],"properties":{"bbox":{"description":"Full-image logical bounding box in [y0, x0, y1, x1] order on a 0-1000 grid.","items":{"maximum":1000,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"color_palette":{"description":"Dominant region colors. RGB uses #RRGGBB; RGBA uses #RRGGBBAA with alpha in the final two digits.","items":{"pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","type":"string"},"type":"array","uniqueItems":true},"desc":{"description":"Complete crop-local reconstruction description. It must not be a short label explanation or truncated content, and must not transcribe, translate, paraphrase, or explain visible wording. Text regions describe typography and layout only.","minLength":1,"pattern":"\\S","type":"string"},"element_type":{"const":"shape"},"label":{"pattern":"^<shape [1-9][0-9]*>$","type":"string"},"node_kind":{"const":"element"},"parent":{"oneOf":[{"const":"ROOT"},{"pattern":"^<(text|image|shape|chart|axis|legend|legend_item|data_item|series|panel) [1-9][0-9]*>$","type":"string"}]},"role":{"enum":["data_mark","value_label","direct_readout","axis_line","tick_mark","tick_label","axis_title","gridline","legend_key","legend_label","legend_title","entity_label","reference_line","annotation_connector","heading","explanation","source_credit","subject_depiction","boundary","separator","emphasis","ornament"]},"role_family":{"enum":["data_expression","reading_reference","context","presentation"]}},"required":["label","parent","node_kind","bbox","desc","color_palette","element_type","role_family","role"],"type":"object"},"text_element":{"additionalProperties":false,"allOf":[{"if":{"properties":{"role_family":{"const":"data_expression"}},"required":["role_family"]},"then":{"properties":{"role":{"enum":["data_mark","value_label","direct_readout"]}}}},{"if":{"properties":{"role_family":{"const":"reading_reference"}},"required":["role_family"]},"then":{"properties":{"role":{"enum":["axis_line","tick_mark","tick_label","axis_title","gridline","legend_key","legend_label","legend_title","entity_label","reference_line","annotation_connector"]}}}},{"if":{"properties":{"role_family":{"const":"context"}},"required":["role_family"]},"then":{"properties":{"role":{"enum":["heading","explanation","source_credit","subject_depiction"]}}}},{"if":{"properties":{"role_family":{"const":"presentation"}},"required":["role_family"]},"then":{"properties":{"role":{"enum":["boundary","separator","emphasis","ornament"]}}}}],"properties":{"bbox":{"description":"Full-image logical bounding box in [y0, x0, y1, x1] order on a 0-1000 grid.","items":{"maximum":1000,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"color_palette":{"description":"Dominant region colors. RGB uses #RRGGBB; RGBA uses #RRGGBBAA with alpha in the final two digits.","items":{"pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","type":"string"},"type":"array","uniqueItems":true},"desc":{"description":"Complete crop-local reconstruction description. It must not be a short label explanation or truncated content, and must not transcribe, translate, paraphrase, or explain visible wording. Text regions describe typography and layout only.","minLength":1,"pattern":"\\S","type":"string"},"element_type":{"const":"text"},"label":{"pattern":"^<text [1-9][0-9]*>$","type":"string"},"node_kind":{"const":"element"},"parent":{"oneOf":[{"const":"ROOT"},{"pattern":"^<(text|image|shape|chart|axis|legend|legend_item|data_item|series|panel) [1-9][0-9]*>$","type":"string"}]},"role":{"enum":["data_mark","value_label","direct_readout","axis_line","tick_mark","tick_label","axis_title","gridline","legend_key","legend_label","legend_title","entity_label","reference_line","annotation_connector","heading","explanation","source_credit","subject_depiction","boundary","separator","emphasis","ornament"]},"role_family":{"enum":["data_expression","reading_reference","context","presentation"]},"text":{"description":"Required exact visible wording, preserving case, spelling, numbers, punctuation, reading order, and JSON newline characters. Must be nonblank.","minLength":1,"pattern":"\\S","type":"string"}},"required":["label","parent","node_kind","bbox","desc","color_palette","element_type","role_family","role","text"],"type":"object"}},"$id":"https://chartgalaxy.org/schema/image2json-training-0.6.json","$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"compositional_deconstruction":{"additionalProperties":false,"properties":{"background":{"description":"Pure background description only. Do not include foreground subjects or regional objects.","minLength":1,"pattern":"\\S","type":"string"},"nodes":{"items":{"oneOf":[{"$ref":"#/$defs/text_element"},{"$ref":"#/$defs/image_element"},{"$ref":"#/$defs/shape_element"},{"$ref":"#/$defs/chart_group"},{"$ref":"#/$defs/axis_group"},{"$ref":"#/$defs/legend_group"},{"$ref":"#/$defs/legend_item_group"},{"$ref":"#/$defs/data_item_group"},{"$ref":"#/$defs/series_group"},{"$ref":"#/$defs/panel_group"}]},"minItems":1,"type":"array"}},"required":["background","nodes"],"type":"object"},"high_level_description":{"description":"Overall visible composition and reconstruction description; use node labels, and preserve visible wording in text fields.","minLength":1,"pattern":"\\S","type":"string"},"style_description":{"additionalProperties":false,"not":{"properties":{"art_style":{"type":"string"},"photo":{"type":"string"}}},"properties":{"aesthetics":{"description":"Visual aesthetics, finish, texture, mood, and overall look.","minLength":1,"pattern":"\\S","type":"string"},"art_style":{"description":"Required artistic-style field; null when no reliable description is available. Cannot contain a description alongside photo.","minLength":1,"pattern":"\\S","type":["string","null"]},"color_palette":{"description":"Dominant image colors. RGB uses #RRGGBB; RGBA uses #RRGGBBAA with alpha in the final two digits.","items":{"pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","type":"string"},"type":"array","uniqueItems":true},"lighting":{"description":"Lighting direction, quality, exposure, contrast, highlights, and shadows.","minLength":1,"pattern":"\\S","type":"string"},"medium":{"description":"Open medium name, for example photograph, illustration, 3d_render, graphic_design, painting, or mixed_media.","minLength":1,"pattern":"\\S","type":"string"},"photo":{"description":"Observable photographic appearance only; do not invent camera settings.","minLength":1,"pattern":"\\S","type":["string","null"]}},"required":["aesthetics","lighting","photo","medium","art_style","color_palette"],"type":"object"}},"required":["high_level_description","style_description","compositional_deconstruction"],"title":"ChartGalaxy fixed image2scenegraph training target without image metadata or encodings","type":"object"} | |