{
  "$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/social_network.json",
  "$id": "https://schemas.meta-aiml.org/v3.0.0/entity/social_network.json",
  "@type": "SocialNetwork",
  "schemaVersion": "3.0.0",
  "aimlVersion": "3.0.0",
  "title": "Social Network Entity Schema",
  "description": "v3 schema for social networking platforms where the primary value source is user-generated content and graph interactions among participants.",
  "examples": [
    {
      "description": "General social platform with feeds, groups, and creator communities",
      "reference": "social_network_example_general"
    },
    {
      "description": "Professional network with connection graph and community channels",
      "reference": "social_network_example_professional"
    }
  ],
  "type": "object",
  "additionalProperties": false,
  "allOf": [
    {
      "$ref": "../ontology/digital_entity.json"
    },
    {
      "$ref": "../archetypes/network_graph.json"
    }
  ],
  "properties": {
    "@type": {
      "const": "SocialNetwork"
    },
    "ontologicalMode": {
      "const": "DigitalEntity"
    },
    "interactionArchetype": {
      "type": "array",
      "contains": {
        "const": "NetworkGraph"
      },
      "items": {
        "type": "string",
        "enum": [
          "NetworkGraph"
        ]
      }
    },
    "domain": {
      "const": "Social"
    },
    "businessModel": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Advertising",
          "Subscription",
          "Freemium",
          "CreatorRevenueShare"
        ]
      }
    },
    "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": {
        "connectionModel": {
          "type": "string",
          "enum": [
            "follow",
            "friend_graph",
            "hybrid"
          ]
        },
        "feedRankingModel": {
          "type": "string",
          "enum": [
            "chronological",
            "algorithmic",
            "hybrid"
          ]
        },
        "supportsCreatorMonetization": {
          "type": "boolean"
        },
        "supportsPrivateCommunities": {
          "type": "boolean"
        },
        "moderationModel": {
          "type": "string",
          "enum": [
            "community",
            "ai_assisted",
            "human",
            "hybrid"
          ]
        },
        "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": [
        "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"
        },
        "financial": {
          "$ref": "../components/capability_groups.json#/$defs/FinancialCapabilities"
        }
      }
    },
    "modules": {
      "type": "object",
      "properties": {
        "identity": {
          "type": "object",
          "properties": {
            "verifiedProfilesEnabled": {
              "type": "boolean"
            },
            "reputationSignalsEnabled": {
              "type": "boolean"
            },
            "impersonationDetectionEnabled": {
              "type": "boolean"
            }
          }
        },
        "moderation": {
          "type": "object",
          "properties": {
            "contentModerationEnabled": {
              "type": "boolean"
            },
            "appealsWorkflowEnabled": {
              "type": "boolean"
            },
            "safetyEscalationEnabled": {
              "type": "boolean"
            }
          }
        },
        "distribution": {
          "type": "object",
          "properties": {
            "recommendationEngineEnabled": {
              "type": "boolean"
            },
            "notificationRoutingEnabled": {
              "type": "boolean"
            },
            "trendingSystemsEnabled": {
              "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"
        },
        "graphGrowthPattern": {
          "type": "string",
          "enum": [
            "invite_driven",
            "interest_driven",
            "algorithmic_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": "SocialNetwork is modeled as DigitalEntity + NetworkGraph because user-user graph and user-generated interactions are the dominant value source.",
    "disambiguationNotes": "Different from publisher-first content platforms where audience remains mostly passive."
  },
  "governanceMetadata": {
    "entityVersion": "3.0.0",
    "introducedIn": "META-AIML v3.0.0",
    "stabilityLevel": "draft",
    "sdkValidationRules": [
      "RULE-SOCN-001: @type MUST equal \"SocialNetwork\"",
      "RULE-SOCN-002: ontologicalMode MUST equal \"DigitalEntity\"",
      "RULE-SOCN-003: interactionArchetype MUST contain \"NetworkGraph\"",
      "RULE-SOCN-004: capabilities MUST include interaction, content, community",
      "RULE-SOCN-005: structuralMetadata.valueSource MUST equal \"user_generated\"",
      "RULE-SOCN-006: structuralMetadata.networkEffects MUST equal \"same_side\""
    ]
  }
}
