Update litepub context

main
Bob Mottram 2023-07-08 18:38:51 +01:00
parent be82be3326
commit 8ac310011d
1 changed files with 43 additions and 34 deletions

View File

@ -256,44 +256,53 @@ def get_litepub_social() -> {}:
def getLitepubV0_1() -> {}:
# https://domain/schemas/litepub-0.1.jsonld
return {
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
'@context': [
'https://www.w3.org/ns/activitystreams',
'https://w3id.org/security/v1',
{
"Emoji": "toot:Emoji",
"Hashtag": "as:Hashtag",
"PropertyValue": "schema:PropertyValue",
"atomUri": "ostatus:atomUri",
"conversation": {
"@id": "ostatus:conversation",
"@type": "@id"
'ChatMessage': 'litepub:ChatMessage',
'Emoji': 'toot:Emoji',
'EmojiReact': 'litepub:EmojiReact',
'Hashtag': 'as:Hashtag',
'PropertyValue': 'schema:PropertyValue',
'alsoKnownAs': {
'@id': 'as:alsoKnownAs',
'@type': '@id'
},
"discoverable": "toot:discoverable",
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
"capabilities": "litepub:capabilities",
"ostatus": "http://ostatus.org#",
"schema": "http://schema.org#",
"toot": "http://joinmastodon.org/ns#",
"value": "schema:value",
"sensitive": "as:sensitive",
"litepub": "http://litepub.social/ns#",
"invisible": "litepub:invisible",
"directMessage": "litepub:directMessage",
"listMessage": {
"@id": "litepub:listMessage",
"@type": "@id"
'atomUri': 'ostatus:atomUri',
'capabilities': 'litepub:capabilities',
'contentMap': {
'@container': '@language',
'@id': 'as:content'
},
"oauthRegistrationEndpoint": {
"@id": "litepub:oauthRegistrationEndpoint",
"@type": "@id"
'conversation': {
'@id': 'ostatus:conversation',
'@type': '@id'
},
"EmojiReact": "litepub:EmojiReact",
"ChatMessage": "litepub:ChatMessage",
"alsoKnownAs": {
"@id": "as:alsoKnownAs",
"@type": "@id"
}
}
'directMessage': 'litepub:directMessage',
'discoverable': 'toot:discoverable',
'fedibird': 'http://fedibird.com/ns#',
'formerRepresentations': 'litepub:formerRepresentations',
'invisible': 'litepub:invisible',
'listMessage': {
'@id': 'litepub:listMessage',
'@type': '@id'
},
'litepub': 'http://litepub.social/ns#',
'manuallyApprovesFollowers': 'as:manuallyApprovesFollowers',
'misskey': 'https://misskey-hub.net/ns#',
'oauthRegistrationEndpoint': {
'@id': 'litepub:oauthRegistrationEndpoint',
'@type': '@id'
},
'ostatus': 'http://ostatus.org#',
'quoteUri': 'fedibird:quoteUri',
'quoteUrl': 'as:quoteUrl',
'schema': 'http://schema.org#',
'sensitive': 'as:sensitive',
'toot': 'http://joinmastodon.org/ns#',
'value': 'schema:value',
'vcard': 'http://www.w3.org/2006/vcard/ns#'}
]
}