world.ptah.location

ptah.world

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "locationProperties": {
      "description": "Structured metadata for locations",
      "properties": {
        "climate": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "controllingFaction": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "notableHistory": {
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "population": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "A place inside a world. Where things happen. Locations nest infinitely — a room inside a building inside a city inside a territory.",
      "key": "tid",
      "record": {
        "properties": {
          "canonicalStatus": {
            "description": "The canonical standing of this location",
            "knownValues": [
              "world.ptah.defs#canonicalStatusOfficial",
              "world.ptah.defs#canonicalStatusCommunity",
              "world.ptah.defs#canonicalStatusApocryphal"
            ],
            "type": "string"
          },
          "createdAt": {
            "description": "Timestamp when this location was created",
            "format": "datetime",
            "type": "string"
          },
          "creatorDID": {
            "description": "The permanent identity of the location's creator",
            "format": "did",
            "type": "string"
          },
          "depthIndex": {
            "description": "Nesting depth — 0 for top-level, incrementing for each level down",
            "minimum": 0,
            "type": "integer"
          },
          "description": {
            "description": "What this location is like",
            "maxGraphemes": 1024,
            "maxLength": 10240,
            "type": "string"
          },
          "locationProperties": {
            "description": "Additional structured properties for this location",
            "ref": "#locationProperties",
            "type": "ref"
          },
          "locationType": {
            "description": "The type of location",
            "knownValues": [
              "territory",
              "city",
              "building",
              "room",
              "landmark",
              "wilderness",
              "vessel",
              "virtual"
            ],
            "type": "string"
          },
          "name": {
            "description": "The name of the location",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "parentLocation": {
            "description": "Reference to the parent location (if nested)",
            "format": "at-uri",
            "type": "string"
          },
          "worldReference": {
            "description": "Reference to the world this location exists in",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "name",
          "creatorDID",
          "worldReference",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "world.ptah.location",
  "lexicon": 1
}

Validate Record

Validate a record against world.ptah.location

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:l45z35sxxjuobp5q65a5vu22
CID
bafyreibd2s4ht7kxszpmj6mezwelefg2n5qy3md6kkyl5svbcxhdhh74pe
Indexed At
2026-03-25 20:41 UTC
AT-URI
at://did:plc:l45z35sxxjuobp5q65a5vu22/com.atproto.lexicon.schema/world.ptah.location

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A location record in The Ptah Protocol. A place inside a world — what gives events and actions an address. Without it, things happen in the world but they happen nowhere specific. With it, history accumulates in place…

  • The foundational record. Everything else references it. A world must exist before characters, events, or logs can exist inside it.

  • A world record in The Ptah Protocol. The foundational record — everything else references it. A world must exist before characters, events, or lore can exist inside it.

  • A location reference

Lexicon Garden

@