Merge · JSON-LD Context

Merge Chat Api Context

JSON-LD context defining the semantic vocabulary for Merge Chat Api from Merge.

5 Classes 13 Properties 4 Namespaces
View Context View on GitHub

Namespaces

merge: https://api.merge.dev/schema/
schema: https://schema.org/
dcterms: http://purl.org/dc/terms/
xsd: http://www.w3.org/2001/XMLSchema#

Classes

Message Conversation User Group Member

Properties

Property Type Container
id string
remoteId string
conversation reference
author reference
content string
contentHtml string
parentMessage reference
attachments set
mentions reference set
sentAt dateTime
remoteWasDeleted boolean
createdAt dateTime
modifiedAt dateTime

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "merge": "https://api.merge.dev/schema/",
    "schema": "https://schema.org/",
    "dcterms": "http://purl.org/dc/terms/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "Message": "schema:Message",
    "Conversation": "schema:Conversation",
    "User": "schema:Person",
    "Group": "schema:Group",
    "Member": "merge:Member",

    "id": { "@id": "dcterms:identifier", "@type": "xsd:string" },
    "remoteId": { "@id": "merge:remote_id", "@type": "xsd:string" },
    "conversation": { "@id": "merge:conversation", "@type": "@id" },
    "author": { "@id": "schema:sender", "@type": "@id" },
    "content": { "@id": "schema:text", "@type": "xsd:string" },
    "contentHtml": { "@id": "merge:content_html", "@type": "xsd:string" },
    "parentMessage": { "@id": "merge:parent_message", "@type": "@id" },
    "attachments": { "@id": "schema:associatedMedia", "@container": "@set" },
    "mentions": { "@id": "schema:mentions", "@container": "@set", "@type": "@id" },
    "sentAt": { "@id": "schema:dateSent", "@type": "xsd:dateTime" },
    "remoteWasDeleted": { "@id": "merge:remote_was_deleted", "@type": "xsd:boolean" },
    "createdAt": { "@id": "dcterms:created", "@type": "xsd:dateTime" },
    "modifiedAt": { "@id": "dcterms:modified", "@type": "xsd:dateTime" }
  }
}