﻿{
  "$schema": "https://json-schema.org/draft-07/schema",
  "$id": "https://geoar.it/schemas/metarverse/v0.1/base-schema.json",
  "title": "MetARverse URI Base Schema v0.1",
  "description": "Defines the core URI components for semantic events with spatial and contextual anchors.",
  "type": "object",
  "required": [
    "semantic-event-type",
    "semantic-event-status",
    "semantic-anchor-type",
    "semantic-anchor-id",
    "datetime"
  ],
  "properties": {
    "memory-bucket": {
      "type": "string",
      "description": "A grouping tag for related events, e.g., 'greek-holiday-2023'."
    },
    "life-domain": {
      "type": "string",
      "enum": [ "holiday", "relationship", "health", "learning", "career" ],
      "description": "High-level life context category."
    },
    "actor": {
      "type": "string",
      "description": "The actor responsible or affected, identified via IEEE P2874 HID."
    },
    "reporter": {
      "type": "string",
      "description": "The reporting agent or system, identified via IEEE P2874 HID."
    },
    "semantic-event-type": {
      "type": "string",
      "description": "The domain of the event, e.g., 'feeling', 'transport', 'event', etc."
    },
    "semantic-event-status": {
      "type": "string",
      "description": "The specific event status (e.g., 'happy', 'departed', 'info-given')."
    },
    "intensity": {
      "type": "number",
      "minimum": 0.0,
      "maximum": 1.0,
      "description": "How intense the event or feeling is (0.0 to 1.0)."
    },
    "urgency": {
      "type": "number",
      "minimum": 0.0,
      "maximum": 1.0,
      "description": "How urgent or time-sensitive the event is (0.0 to 1.0)."
    },
    "datetime": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp in ISO-8601 format with milliseconds (UTC)."
    },
    "semantic-anchor-type": {
      "type": "string",
      "enum": [ "postcode", "h3", "hsid", "latlon", "human-body", "robot" ],
      "description": "The type of spatial or contextual anchor."
    },
    "semantic-anchor-id": {
      "type": "string",
      "description": "The value identifying the anchor, format varies by type (e.g., 'NE1 1AA', '0x8b30b6bb', '55.9733,-1.613')"
    },
    "sub-path": {
      "type": "array",
      "description": "Optional additional hierarchical path segments.",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
