{
  "$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/dating_platform.json",
  "$id": "https://schemas.meta-aiml.org/v3.0.0/entity/dating_platform.json",
  "@type": "DatingPlatform",
  "schemaVersion": "3.0.0",
  "aimlVersion": "3.0.0",
  "title": "Dating Platform Entity Schema",
  "description": "v3 schema for social dating platforms where graph-based user interactions are primary, with optional monetization layers for boosts and premium matchmaking features.",
  "examples": [
    {
      "description": "Mobile dating app with profile matching, in-app chat, and premium boosts",
      "reference": "dating_platform_example_mobile"
    },
    {
      "description": "Safety-first dating platform with verification workflows and moderation tooling",
      "reference": "dating_platform_example_safety"
    }
  ],
  "type": "object",
  "additionalProperties": false,
  "allOf": [
    {
      "$ref": "../ontology/digital_entity.json"
    },
    {
      "$ref": "../archetypes/network_graph.json"
    }
  ],
  "properties": {
    "@type": {
      "const": "DatingPlatform"
    },
    "ontologicalMode": {
      "const": "DigitalEntity"
    },
    "interactionArchetype": {
      "type": "array",
      "contains": {
        "const": "NetworkGraph"
      },
      "items": {
        "type": "string",
        "enum": [
          "NetworkGraph"
        ]
      }
    },
    "domain": {
      "const": "Social"
    },
    "businessModel": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Freemium",
          "Subscription",
          "InAppPurchases"
        ]
      }
    },
    "deliveryFormat": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "MobileApp",
          "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": {
        "matchingModel": {
          "type": "string",
          "enum": [
            "swipe",
            "compatibility",
            "hybrid"
          ]
        },
        "supportsIdentityVerification": {
          "type": "boolean"
        },
        "supportsSafetyCheckins": {
          "type": "boolean"
        },
        "profileModerationMode": {
          "type": "string",
          "enum": [
            "manual",
            "ai_assisted",
            "hybrid"
          ]
        },
        "monetizationLayer": {
          "type": "string",
          "enum": [
            "premium_tiers",
            "boosts",
            "hybrid"
          ]
        }
      }
    },
    "capabilities": {
      "type": "object",
      "required": [
        "interaction",
        "content",
        "community"
      ],
      "properties": {
        "interaction": {
          "$ref": "../components/capability_groups.json#/$defs/InteractionCapabilities"
        },
        "content": {
          "$ref": "../components/capability_groups.json#/$defs/ContentCapabilities"
        },
        "community": {
          "$ref": "../components/capability_groups.json#/$defs/CommunityCapabilities"
        },
        "commerce": {
          "$ref": "../components/capability_groups.json#/$defs/CommerceCapabilities"
        },
        "financial": {
          "$ref": "../components/capability_groups.json#/$defs/FinancialCapabilities"
        }
      }
    },
    "modules": {
      "type": "object",
      "properties": {
        "matchingEngine": {
          "type": "object",
          "properties": {
            "preferenceScoringEnabled": {
              "type": "boolean"
            },
            "recommendationRefreshWindowHours": {
              "type": "integer",
              "minimum": 1
            },
            "coldStartHandlingEnabled": {
              "type": "boolean"
            }
          }
        },
        "trustAndSafety": {
          "type": "object",
          "properties": {
            "abuseReportingEnabled": {
              "type": "boolean"
            },
            "imageModerationEnabled": {
              "type": "boolean"
            },
            "incidentEscalationWorkflowEnabled": {
              "type": "boolean"
            }
          }
        },
        "premiumFeatures": {
          "type": "object",
          "properties": {
            "boostsEnabled": {
              "type": "boolean"
            },
            "superLikesEnabled": {
              "type": "boolean"
            },
            "priorityDiscoveryEnabled": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "structuralMetadata": {
      "type": "object",
      "properties": {
        "topology": {
          "const": "many_to_many"
        },
        "roles": {
          "const": [
            "user",
            "user"
          ]
        },
        "valueSource": {
          "const": "user_generated"
        },
        "transactionFlow": {
          "const": "peer_to_peer"
        },
        "networkEffects": {
          "const": "same_side"
        },
        "monetizationOverlay": {
          "type": "string",
          "enum": [
            "optional",
            "integrated",
            "tiered"
          ]
        }
      }
    },
    "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": "DatingPlatform is modeled as DigitalEntity with NetworkGraph archetype because user-user interactions and social graph dynamics are the core value source. Premium monetization is modeled as a business layer, not as a second archetype.",
    "disambiguationNotes": "Distinct from pure marketplaces. Monetization features may include paid boosts and subscriptions, but the platform topology remains user-to-user."
  },
  "governanceMetadata": {
    "entityVersion": "3.0.0",
    "introducedIn": "META-AIML v3.0.0",
    "stabilityLevel": "draft",
    "sdkValidationRules": [
      "RULE-DATE-001: @type MUST equal \"DatingPlatform\"",
      "RULE-DATE-002: ontologicalMode MUST equal \"DigitalEntity\"",
      "RULE-DATE-003: interactionArchetype MUST contain \"NetworkGraph\"",
      "RULE-DATE-004: capabilities MUST include interaction, content, community",
      "RULE-DATE-005: structuralMetadata.valueSource MUST equal \"user_generated\"",
      "RULE-DATE-006: paid boosts and premium tiers MAY exist without introducing an additional archetype"
    ]
  }
}
