{
  "$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/real_estate_platform.json",
  "$id": "https://schemas.meta-aiml.org/v3.0.0/entity/real_estate_platform.json",
  "@type": "RealEstatePlatform",
  "schemaVersion": "3.0.0",
  "aimlVersion": "3.0.0",
  "title": "Real Estate Platform Entity Schema",
  "description": "v3 schema for digital real estate platforms that mediate transactions and lead flows between property seekers, listing providers, and real estate professionals.",
  "examples": [
    {
      "description": "Residential property platform mediating buyer and seller interactions with listing verification",
      "reference": "real_estate_platform_example_residential"
    },
    {
      "description": "Rental marketplace platform connecting tenants and landlords with digital application workflows",
      "reference": "real_estate_platform_example_rentals"
    }
  ],
  "type": "object",
  "additionalProperties": false,
  "allOf": [
    {
      "$ref": "../ontology/digital_entity.json"
    },
    {
      "$ref": "../archetypes/mediated_exchange.json"
    }
  ],
  "properties": {
    "@type": {
      "const": "RealEstatePlatform"
    },
    "ontologicalMode": {
      "const": "DigitalEntity"
    },
    "interactionArchetype": {
      "type": "array",
      "contains": {
        "const": "MediatedExchange"
      },
      "items": {
        "type": "string",
        "enum": [
          "MediatedExchange"
        ]
      }
    },
    "domain": {
      "const": "RealEstate"
    },
    "businessModel": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Commission",
          "ListingFees",
          "Subscription",
          "Advertising"
        ]
      }
    },
    "deliveryFormat": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "WebApp",
          "MobileApp",
          "API"
        ]
      }
    },
    "name": {
      "$ref": "../components/multilingual_format.json#/$defs/LocalizedText"
    },
    "description": {
      "$ref": "../components/multilingual_format.json#/$defs/LocalizedText"
    },
    "shortDescription": {
      "$ref": "../components/multilingual_format.json#/$defs/LocalizedTextOrString"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "foundingDate": {
      "type": "string",
      "format": "date"
    },
    "properties": {
      "type": "object",
      "properties": {
        "marketSegment": {
          "type": "string",
          "enum": [
            "residential",
            "commercial",
            "rental",
            "hybrid"
          ]
        },
        "listingVerificationModel": {
          "type": "string",
          "enum": [
            "manual",
            "automated",
            "hybrid"
          ]
        },
        "supportsVirtualTours": {
          "type": "boolean"
        },
        "supportsMortgagePrequalification": {
          "type": "boolean"
        },
        "supportsDigitalDocumentExchange": {
          "type": "boolean"
        },
        "agentVettingRequired": {
          "type": "boolean"
        },
        "contactPoints": {
          "type": "array",
          "items": {
            "$ref": "../components/common_defs.json#/$defs/ContactPoint"
          }
        },
        "socialProfiles": {
          "type": "array",
          "items": {
            "$ref": "../components/common_defs.json#/$defs/SocialProfile"
          }
        },
        "identifiers": {
          "type": "array",
          "items": {
            "$ref": "../components/common_defs.json#/$defs/Identifier"
          }
        }
      }
    },
    "capabilities": {
      "type": "object",
      "required": [
        "commerce",
        "financial",
        "interaction"
      ],
      "properties": {
        "commerce": {
          "$ref": "../components/capability_groups.json#/$defs/CommerceCapabilities"
        },
        "financial": {
          "$ref": "../components/capability_groups.json#/$defs/FinancialCapabilities"
        },
        "interaction": {
          "$ref": "../components/capability_groups.json#/$defs/InteractionCapabilities"
        },
        "content": {
          "$ref": "../components/capability_groups.json#/$defs/ContentCapabilities"
        },
        "community": {
          "$ref": "../components/capability_groups.json#/$defs/CommunityCapabilities"
        }
      }
    },
    "modules": {
      "type": "object",
      "properties": {
        "listingManagement": {
          "type": "object",
          "properties": {
            "bulkUploadEnabled": {
              "type": "boolean"
            },
            "duplicateDetectionEnabled": {
              "type": "boolean"
            },
            "listingModerationEnabled": {
              "type": "boolean"
            }
          }
        },
        "matchmaking": {
          "type": "object",
          "properties": {
            "leadScoringEnabled": {
              "type": "boolean"
            },
            "savedSearchAlertsEnabled": {
              "type": "boolean"
            },
            "availabilityMatchingEnabled": {
              "type": "boolean"
            }
          }
        },
        "transactionSupport": {
          "type": "object",
          "properties": {
            "offerWorkflowEnabled": {
              "type": "boolean"
            },
            "escrowAssistanceEnabled": {
              "type": "boolean"
            },
            "complianceChecklistsEnabled": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "structuralMetadata": {
      "type": "object",
      "properties": {
        "topology": {
          "const": "triadic"
        },
        "roles": {
          "const": [
            "buyer",
            "seller",
            "platform"
          ]
        },
        "valueSource": {
          "const": "transaction_mediation"
        },
        "transactionFlow": {
          "const": "escrow"
        },
        "networkEffects": {
          "const": "cross_side"
        },
        "trustModel": {
          "type": "string",
          "enum": [
            "verification_first",
            "reputation_assisted",
            "hybrid"
          ]
        }
      }
    },
    "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": "RealEstatePlatform is modeled as DigitalEntity + MediatedExchange because platform value is created by matching and facilitating transactions between distinct market sides.",
    "disambiguationNotes": "Different from direct broker service websites where one provider sells own inventory. This schema targets multi-party mediation and exchange flows."
  },
  "governanceMetadata": {
    "entityVersion": "3.0.0",
    "introducedIn": "META-AIML v3.0.0",
    "stabilityLevel": "draft",
    "sdkValidationRules": [
      "RULE-REPL-001: @type MUST equal \"RealEstatePlatform\"",
      "RULE-REPL-002: ontologicalMode MUST equal \"DigitalEntity\"",
      "RULE-REPL-003: interactionArchetype MUST contain \"MediatedExchange\"",
      "RULE-REPL-004: capabilities MUST include commerce, financial, interaction",
      "RULE-REPL-005: structuralMetadata.topology MUST equal \"triadic\"",
      "RULE-REPL-006: structuralMetadata.valueSource MUST equal \"transaction_mediation\""
    ]
  }
}
