| { |
| "$schema": "https://json-schema.org/draft/2020-12/schema", |
| "$id": "https://huggingface.co/datasets/egobowwow/egobowwow-1k/resolve/v1.1.0/schemas/grounded-label-graph.schema.json", |
| "title": "EgoBowWow grounded world-label graph", |
| "description": "Language-independent environment, agent, hand, entity, relation, procedure, sensor, geometry, trajectory, state, action, and provenance context for one event. Typed assertions reuse the 13 multimodal evaluation label kinds.", |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "schema_version", |
| "environment", |
| "coordinate_frames", |
| "agents", |
| "entities", |
| "relations", |
| "procedure", |
| "modalities", |
| "assertions", |
| "semantic_alignment", |
| "provenance" |
| ], |
| "properties": { |
| "schema_version": {"const": "1.0.0"}, |
| "environment": {"$ref": "#/$defs/environment"}, |
| "coordinate_frames": { |
| "type": "array", |
| "minItems": 1, |
| "items": {"$ref": "#/$defs/coordinateFrame"} |
| }, |
| "agents": {"type": "array", "minItems": 1, "items": {"$ref": "#/$defs/agent"}}, |
| "entities": {"type": "array", "items": {"$ref": "#/$defs/entity"}}, |
| "relations": {"type": "array", "items": {"$ref": "#/$defs/relation"}}, |
| "procedure": {"$ref": "#/$defs/procedure"}, |
| "modalities": { |
| "type": "array", |
| "minItems": 1, |
| "items": {"$ref": "#/$defs/modality"} |
| }, |
| "assertions": { |
| "type": "array", |
| "items": {"$ref": "https://huggingface.co/datasets/egobowwow/egobowwow-1k/resolve/v1.0.0/schemas/eval-common.schema.json#/$defs/label"} |
| }, |
| "semantic_alignment": {"$ref": "#/$defs/semanticAlignment"}, |
| "provenance": {"$ref": "#/$defs/provenance"} |
| }, |
| "$defs": { |
| "id": { |
| "type": "string", |
| "pattern": "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$", |
| "maxLength": 192 |
| }, |
| "sha256": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"}, |
| "nullableId": {"oneOf": [{"type": "null"}, {"$ref": "#/$defs/id"}]}, |
| "environment": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "site_context_id", |
| "physical_environment_id", |
| "scene_type_id", |
| "station_type_id", |
| "lighting_id", |
| "weather_id", |
| "clutter_id", |
| "material_state_ids", |
| "map_artifact_id" |
| ], |
| "properties": { |
| "site_context_id": {"$ref": "#/$defs/id"}, |
| "physical_environment_id": {"enum": ["indoor", "outdoor", "mixed", "unknown"]}, |
| "scene_type_id": {"$ref": "#/$defs/id"}, |
| "station_type_id": {"$ref": "#/$defs/id"}, |
| "lighting_id": {"$ref": "#/$defs/id"}, |
| "weather_id": {"$ref": "#/$defs/id"}, |
| "clutter_id": {"$ref": "#/$defs/id"}, |
| "material_state_ids": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "map_artifact_id": { |
| "oneOf": [ |
| {"type": "null"}, |
| {"type": "string", "pattern": "^artifact:sha256:[0-9a-f]{64}$"} |
| ] |
| } |
| } |
| }, |
| "coordinateFrame": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["frame_id", "frame_kind", "parent_frame_id", "calibration_digest"], |
| "properties": { |
| "frame_id": {"$ref": "#/$defs/id"}, |
| "frame_kind": {"enum": ["world", "site", "camera", "head", "body", "hand", "object", "robot", "sensor"]}, |
| "parent_frame_id": {"$ref": "#/$defs/nullableId"}, |
| "calibration_digest": {"oneOf": [{"type": "null"}, {"$ref": "#/$defs/sha256"}]} |
| } |
| }, |
| "hand": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "hand_id", |
| "laterality", |
| "role_ids", |
| "visibility", |
| "contact_entity_ids", |
| "pose_label_keys", |
| "trajectory_label_keys" |
| ], |
| "properties": { |
| "hand_id": {"$ref": "#/$defs/id"}, |
| "laterality": {"enum": ["left", "right", "unknown", "not_applicable"]}, |
| "role_ids": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "visibility": {"enum": ["visible", "partially_occluded", "fully_occluded", "out_of_view", "unknown"]}, |
| "contact_entity_ids": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "pose_label_keys": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "trajectory_label_keys": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}} |
| } |
| }, |
| "agent": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["agent_id", "agent_kind", "role_ids", "hands", "body_pose_label_keys", "gaze_label_keys"], |
| "properties": { |
| "agent_id": {"$ref": "#/$defs/id"}, |
| "agent_kind": {"enum": ["human", "robot"]}, |
| "role_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "hands": {"type": "array", "maxItems": 2, "items": {"$ref": "#/$defs/hand"}}, |
| "body_pose_label_keys": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "gaze_label_keys": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}} |
| } |
| }, |
| "entity": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "entity_id", |
| "category_id", |
| "role_ids", |
| "state_before_ids", |
| "state_after_ids", |
| "geometry_label_keys", |
| "pose_label_keys", |
| "trajectory_label_keys" |
| ], |
| "properties": { |
| "entity_id": {"$ref": "#/$defs/id"}, |
| "category_id": {"$ref": "#/$defs/id"}, |
| "role_ids": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "state_before_ids": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "state_after_ids": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "geometry_label_keys": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "pose_label_keys": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "trajectory_label_keys": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}} |
| } |
| }, |
| "relation": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["relation_id", "predicate_id", "subject_id", "object_id", "phase_id", "assertion_label_key"], |
| "properties": { |
| "relation_id": {"$ref": "#/$defs/id"}, |
| "predicate_id": {"enum": ["contact", "holding", "supporting", "inside", "on", "under", "near", "attached_to", "aligned_with", "gaze_at"]}, |
| "subject_id": {"$ref": "#/$defs/id"}, |
| "object_id": {"$ref": "#/$defs/id"}, |
| "phase_id": {"enum": ["approach", "contact", "manipulation", "release", "postcondition", "continuous", "unknown"]}, |
| "assertion_label_key": {"oneOf": [{"type": "null"}, {"$ref": "#/$defs/id"}]} |
| } |
| }, |
| "procedure": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "activity_category_id", |
| "task_id", |
| "goal_state_ids", |
| "step_id", |
| "precondition_ids", |
| "outcome", |
| "correctness", |
| "error_ids", |
| "intervention_ids", |
| "proficiency" |
| ], |
| "properties": { |
| "activity_category_id": {"$ref": "#/$defs/id"}, |
| "task_id": {"$ref": "#/$defs/id"}, |
| "goal_state_ids": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "step_id": {"$ref": "#/$defs/id"}, |
| "precondition_ids": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "outcome": {"enum": ["success", "partial", "failure", "aborted", "unknown"]}, |
| "correctness": {"enum": ["correct", "mistake", "recovery", "demonstration", "unknown"]}, |
| "error_ids": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "intervention_ids": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "proficiency": {"enum": ["novice", "intermediate", "expert", "not_assessed", "unknown"]} |
| } |
| }, |
| "modality": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["modality_id", "kind", "clock_id", "coordinate_frame_id", "artifact_id"], |
| "properties": { |
| "modality_id": {"$ref": "#/$defs/id"}, |
| "kind": {"enum": ["rgb", "monochrome", "depth", "audio", "imu", "eye_gaze", "point_cloud", "body_pose", "hand_pose", "object_pose", "segmentation", "proprioception", "robot_action", "force_torque", "tactile", "language"]}, |
| "clock_id": {"$ref": "#/$defs/id"}, |
| "coordinate_frame_id": {"$ref": "#/$defs/nullableId"}, |
| "artifact_id": { |
| "oneOf": [ |
| {"type": "null"}, |
| {"type": "string", "pattern": "^artifact:sha256:[0-9a-f]{64}$"} |
| ] |
| } |
| } |
| }, |
| "semanticAlignment": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "predicate_concept_id", |
| "argument_bindings", |
| "effector_hand_ids", |
| "action_assertion_label_keys" |
| ], |
| "properties": { |
| "predicate_concept_id": {"$ref": "#/$defs/id"}, |
| "argument_bindings": { |
| "type": "array", |
| "items": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["role_id", "concept_id", "ground_ref_id"], |
| "properties": { |
| "role_id": {"enum": ["agent", "patient", "instrument", "source", "destination", "recipient", "beneficiary", "location", "support_surface"]}, |
| "concept_id": {"$ref": "#/$defs/id"}, |
| "ground_ref_id": {"$ref": "#/$defs/id"} |
| } |
| } |
| }, |
| "effector_hand_ids": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "action_assertion_label_keys": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}} |
| } |
| }, |
| "provenance": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["source_profile_ids", "rubric_ids", "annotation_method", "producer_digest", "review_status"], |
| "properties": { |
| "source_profile_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "rubric_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, |
| "annotation_method": {"enum": ["sensor_ground_truth", "human", "model", "derived", "mixed"]}, |
| "producer_digest": {"$ref": "#/$defs/sha256"}, |
| "review_status": {"enum": ["unreviewed", "single_review", "double_review", "adjudicated", "sensor_qa_pass"]} |
| } |
| } |
| } |
| } |
|
|