{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "@context": [
    "https://schemas.meta-aiml.org/v3.0.0/context.jsonld"
  ],
  "@id": "https://schemas.meta-aiml.org/v3.0.0/entity/personal_website.json",
  "$id": "https://schemas.meta-aiml.org/v3.0.0/entity/personal_website.json",
  "@type": "PersonalWebsite",
  "schemaVersion": "3.0.0",
  "aimlVersion": "3.0.0",
  "title": "Personal Website Entity Schema",
  "description": "v3 schema for personal websites focused on publishing identity, portfolio, and creator content from an individual publisher to an audience.",
  "examples": [
    {
      "description": "Personal portfolio site with project gallery and biography pages",
      "reference": "personal_website_example_portfolio"
    },
    {
      "description": "Creator personal site with blog posts and newsletter subscriptions",
      "reference": "personal_website_example_creator_blog"
    }
  ],
  "type": "object",
  "additionalProperties": false,
  "allOf": [
    {
      "$ref": "../ontology/digital_entity.json"
    },
    {
      "$ref": "../archetypes/broadcast_publisher.json"
    }
  ],
  "properties": {
    "@type": {
      "const": "PersonalWebsite"
    },
    "ontologicalMode": {
      "const": "DigitalEntity"
    },
    "interactionArchetype": {
      "type": "array",
      "contains": {
        "const": "BroadcastPublisher"
      },
      "items": {
        "type": "string",
        "enum": [
          "BroadcastPublisher"
        ]
      }
    },
    "domain": {
      "const": "Personal"
    },
    "businessModel": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Sponsorship",
          "Subscription",
          "Advertising",
          "Donation"
        ]
      }
    },
    "deliveryFormat": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "WebApp"
        ]
      }
    },
    "name": {
      "$ref": "../components/multilingual_format.json#/$defs/LocalizedText"
    },
    "description": {
      "$ref": "../components/multilingual_format.json#/$defs/LocalizedText"
    },
    "shortDescription": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "foundingDate": {
      "type": "string",
      "format": "date"
    },
    "properties": {
      "type": "object",
      "properties": {
        "primaryPurpose": {
          "type": "string",
          "enum": [
            "portfolio",
            "resume",
            "thought_leadership",
            "creator_brand"
          ]
        },
        "supportsContactForm": {
          "type": "boolean"
        },
        "supportsNewsletter": {
          "type": "boolean"
        },
        "supportsMediaGallery": {
          "type": "boolean"
        },
        "customDomainOwned": {
          "type": "boolean"
        }
      }
    },
    "capabilities": {
      "type": "object",
      "required": [
        "content"
      ],
      "properties": {
        "content": {
          "$ref": "../components/capability_groups.json#/$defs/ContentCapabilities"
        },
        "interaction": {
          "$ref": "../components/capability_groups.json#/$defs/InteractionCapabilities"
        },
        "financial": {
          "$ref": "../components/capability_groups.json#/$defs/FinancialCapabilities"
        },
        "community": {
          "$ref": "../components/capability_groups.json#/$defs/CommunityCapabilities"
        }
      }
    },
    "modules": {
      "type": "object",
      "properties": {
        "pages": {
          "type": "object",
          "properties": {
            "projectGalleryEnabled": {
              "type": "boolean"
            },
            "aboutPageEnabled": {
              "type": "boolean"
            },
            "pressKitEnabled": {
              "type": "boolean"
            }
          }
        },
        "publishing": {
          "type": "object",
          "properties": {
            "draftPreviewEnabled": {
              "type": "boolean"
            },
            "scheduledPostsEnabled": {
              "type": "boolean"
            },
            "rssFeedEnabled": {
              "type": "boolean"
            }
          }
        },
        "analytics": {
          "type": "object",
          "properties": {
            "trafficAnalyticsEnabled": {
              "type": "boolean"
            },
            "referrerBreakdownEnabled": {
              "type": "boolean"
            },
            "goalTrackingEnabled": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "structuralMetadata": {
      "type": "object",
      "properties": {
        "topology": {
          "const": "hub_and_spoke"
        },
        "roles": {
          "const": [
            "publisher",
            "audience"
          ]
        },
        "valueSource": {
          "const": "content_creation"
        },
        "transactionFlow": {
          "const": "one_to_many"
        },
        "networkEffects": {
          "const": "none"
        },
        "ownershipPattern": {
          "type": "string",
          "enum": [
            "individual_owned",
            "creator_team_owned"
          ]
        }
      }
    },
    "targetAudience": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "siteCapabilities": {
      "type": "object",
      "properties": {
        "supportedDevices": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "desktop",
              "mobile",
              "tablet"
            ]
          }
        },
        "languages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "accessibilityFeatures": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  },
  "required": [
    "@type",
    "ontologicalMode",
    "interactionArchetype",
    "domain",
    "name",
    "description",
    "deliveryFormat",
    "capabilities",
    "structuralMetadata",
    "modules"
  ],
  "validationMetadata": {
    "schemaVersion": "3.0.0",
    "phase": "entity",
    "status": "draft",
    "lastValidated": "2026-02-20T12:00:00Z",
    "validator": "META-AIML QA"
  },
  "semanticAnnotations": {
    "classificationRationale": "PersonalWebsite is modeled as DigitalEntity + BroadcastPublisher because a personal author publishes content and portfolio artifacts to an audience.",
    "disambiguationNotes": "Different from social profiles where value is network-driven user interaction."
  },
  "governanceMetadata": {
    "entityVersion": "3.0.0",
    "introducedIn": "META-AIML v3.0.0",
    "stabilityLevel": "draft",
    "sdkValidationRules": [
      "RULE-PWEB-001: @type MUST equal \"PersonalWebsite\"",
      "RULE-PWEB-002: ontologicalMode MUST equal \"DigitalEntity\"",
      "RULE-PWEB-003: interactionArchetype MUST contain \"BroadcastPublisher\"",
      "RULE-PWEB-004: capabilities.content MUST be present",
      "RULE-PWEB-005: structuralMetadata.topology MUST equal \"hub_and_spoke\"",
      "RULE-PWEB-006: structuralMetadata.valueSource MUST equal \"content_creation\""
    ]
  }
}
