{ "$schema": "http://json-schema.org/schema#", "$id": "https://raw.githubusercontent.com/smart-data-models/dataModel.SocialMedia/master/SMPost/schema.json", "$schemaVersion": "0.0.2", "title": "Social Media - SMPost", "description": "This entity contains a harmonised description of a generic SMPost made for the Social Media domain.", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "type": { "type": "string", "description": "Property. NGSI-LD Entity Type. It must be equal to SMPost.", "enum": [ "SMPost" ] }, "postCreatedAt": { "type": "string", "format": "date-time", "description": "Property. The datetime of the creation of the SMPost." }, "postId": { "type": "string", "description": "Property. Model:'https://schema.org/Text'. The post ID of the SMPost." }, "hasLanguage": { "type": "string", "description": "Property. Model:'https://schema.org/Text'. The language of the post." }, "hasPostURL": { "type": "string", "description": "Property. Model:'https://schema.org/Text'. The URL of the post." }, "hasText": { "type": "array", "description": "Property. The content that is in textual form.", "items": { "type": "string" } }, "hasImages": { "type": "array", "description": "Property. The URLs of the content that is in image form.", "items": { "type": "string" } }, "hasVideos": { "type": "array", "description": "Property. The URLs of the content that is in video form.", "items": { "type": "string" } }, "hasPrivacyLevel": { "type": "string", "description": "Property. Model:'https://schema.org/Text'. The privacy setting of the post." }, "hasHashtags": { "type": "array", "description": "Property. The hashtags of the post.", "items": { "type": "string" } }, "hasThumbnails": { "type": "array", "description": "Property. The thumbnail URLs of the post.", "items": { "type": "string" } }, "platform": { "type": "string", "description": "Property. Platform of post." }, "createdBy": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Relationship. Model:'https://schema.org/Text'. The ID of the SMUser that created this post." }, "hasReferencedLocations": { "type": "array", "description": "Relationship. The IDs of the locations referenced in this post.", "items": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ] } }, "hasMentions": { "type": "array", "description": "Relationship. The IDs of the SMUsers mentioned in this post.", "items": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ] } }, "hasAnalysis": { "type": "array", "description": "Relationship. The IDs of the SMAnalyses that analyze this post.", "items": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ] } }, "hasInteractionCount": { "type": "array", "description": "Property. The different interactions of this post.", "items": { "type": "object", "properties": { "interactionType": { "type": "string", "enum": [ "Comment", "Dislike", "Favorite", "Like", "Quote", "Reactions", "Reply", "Retweet", "Shares", "Views" ] }, "count": { "type": "number" } } } }, "belongsToCollection": { "type": "array", "description": "Relationship. The IDs of the SMCollections, which this post is a part of.", "items": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ] } } } } ], "required": [ "id", "type", "postCreatedAt", "postId", "platform" ] }