Synapse · JSON-LD Context
Synapse Context
JSON-LD context defining the semantic vocabulary for Synapse from Synapse.
0 Classes
31 Properties
4 Namespaces
Namespaces
xsd:
http://www.w3.org/2001/XMLSchema#
schema:
https://schema.org/
matrix:
https://matrix.org/vocab#
synapse:
https://github.com/element-hq/synapse/vocab#
Properties
| Property | Type | Container |
|---|---|---|
| HomeServer | reference | |
| MatrixUser | reference | |
| MatrixRoom | reference | |
| MatrixEvent | reference | |
| MatrixMessage | reference | |
| MatrixSpace | reference | |
| ApplicationService | reference | |
| RegistrationToken | reference | |
| AdminApi | reference | |
| userId | string | |
| roomId | string | |
| eventId | string | |
| displayName | string | |
| avatarUrl | reference | |
| isAdmin | boolean | |
| isDeactivated | boolean | |
| isGuest | boolean | |
| isFederatable | boolean | |
| isPublic | boolean | |
| isEncrypted | boolean | |
| joinRules | string | |
| historyVisibility | string | |
| memberCount | integer | |
| localMemberCount | integer | |
| roomVersion | string | |
| serverVersion | string | |
| serverName | string | |
| creationTimestamp | integer | |
| accessToken | string | |
| usesAllowed | integer | |
| expiryTime | integer |
JSON-LD Document
{
"@context": {
"@version": 1.1,
"xsd": "http://www.w3.org/2001/XMLSchema#",
"schema": "https://schema.org/",
"matrix": "https://matrix.org/vocab#",
"synapse": "https://github.com/element-hq/synapse/vocab#",
"HomeServer": {
"@id": "matrix:HomeServer",
"@type": "@id",
"rdfs:subClassOf": { "@id": "schema:SoftwareApplication" }
},
"MatrixUser": {
"@id": "matrix:MatrixUser",
"@type": "@id",
"rdfs:subClassOf": { "@id": "schema:Person" }
},
"MatrixRoom": {
"@id": "matrix:MatrixRoom",
"@type": "@id",
"rdfs:subClassOf": { "@id": "schema:ConversationThread" }
},
"MatrixEvent": {
"@id": "matrix:MatrixEvent",
"@type": "@id",
"rdfs:subClassOf": { "@id": "schema:Event" }
},
"MatrixMessage": {
"@id": "matrix:MatrixMessage",
"@type": "@id",
"rdfs:subClassOf": { "@id": "schema:Message" }
},
"MatrixSpace": {
"@id": "matrix:MatrixSpace",
"@type": "@id",
"rdfs:subClassOf": { "@id": "matrix:MatrixRoom" }
},
"ApplicationService": {
"@id": "matrix:ApplicationService",
"@type": "@id",
"rdfs:subClassOf": { "@id": "schema:SoftwareApplication" }
},
"RegistrationToken": {
"@id": "synapse:RegistrationToken",
"@type": "@id"
},
"AdminApi": {
"@id": "synapse:AdminApi",
"@type": "@id"
},
"userId": { "@id": "matrix:userId", "@type": "xsd:string" },
"roomId": { "@id": "matrix:roomId", "@type": "xsd:string" },
"eventId": { "@id": "matrix:eventId", "@type": "xsd:string" },
"displayName": { "@id": "schema:name", "@type": "xsd:string" },
"avatarUrl": { "@id": "schema:image", "@type": "@id" },
"isAdmin": { "@id": "synapse:isAdmin", "@type": "xsd:boolean" },
"isDeactivated": { "@id": "synapse:isDeactivated", "@type": "xsd:boolean" },
"isGuest": { "@id": "synapse:isGuest", "@type": "xsd:boolean" },
"isFederatable": { "@id": "matrix:isFederatable", "@type": "xsd:boolean" },
"isPublic": { "@id": "matrix:isPublic", "@type": "xsd:boolean" },
"isEncrypted": { "@id": "matrix:isEncrypted", "@type": "xsd:boolean" },
"joinRules": { "@id": "matrix:joinRules", "@type": "xsd:string" },
"historyVisibility": { "@id": "matrix:historyVisibility", "@type": "xsd:string" },
"memberCount": { "@id": "matrix:memberCount", "@type": "xsd:integer" },
"localMemberCount": { "@id": "synapse:localMemberCount", "@type": "xsd:integer" },
"roomVersion": { "@id": "matrix:roomVersion", "@type": "xsd:string" },
"serverVersion": { "@id": "synapse:serverVersion", "@type": "xsd:string" },
"serverName": { "@id": "matrix:serverName", "@type": "xsd:string" },
"creationTimestamp": { "@id": "schema:dateCreated", "@type": "xsd:integer" },
"accessToken": { "@id": "synapse:accessToken", "@type": "xsd:string" },
"usesAllowed": { "@id": "synapse:usesAllowed", "@type": "xsd:integer" },
"expiryTime": { "@id": "synapse:expiryTime", "@type": "xsd:integer" }
}
}