aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Apschema.php
blob: 8d57fb777d2d0b5b1922472ee2e8c43013524d35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php

namespace Zotlabs\Module;


class Apschema extends \Zotlabs\Web\Controller {

	function init() {

		$base = z_root();

		$arr = [
			'@context' => [
				'zot'              => z_root() . '/apschema#',
				'id'               => '@id',
				'type'             => '@type',
				'commentPolicy'    => 'zot:commentPolicy',
				'meData'           => 'zot:meData',
				'meDataType'       => 'zot:meDataType',
				'meEncoding'       => 'zot:meEncoding',
				'meAlgorithm'      => 'zot:meAlgorithm',
				'meCreator'        => 'zot:meCreator',
				'meSignatureValue' => 'zot:meSignatureValue',
				'locationAddress'  => 'zot:locationAddress',
				'locationPrimary'  => 'zot:locationPrimary',
				'locationDeleted'  => 'zot:locationDeleted',
				'nomadicLocation'  => 'zot:nomadicLocation',
				'nomadicHubs'      => 'zot:nomadicHubs',
				'emojiReaction'    => 'zot:emojiReaction',
				'expires'          => 'zot:expires',
				'directMessage'    => 'zot:directMessage',
				'schema'           => 'http://schema.org#',
				'PropertyValue'    => 'schema:PropertyValue',
				'value'            => 'schema:value',

				'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',


				'magicEnv' => [
					'@id'   => 'zot:magicEnv',
					'@type' => '@id'
				],

				'nomadicLocations' => [
					'@id'   => 'zot:nomadicLocations',
					'@type' => '@id'
				],

				'ostatus'      => 'http://ostatus.org#',
				'conversation' => 'ostatus:conversation',

				'diaspora'     => 'https://diasporafoundation.org/ns/',
				'guid'         => 'diaspora:guid',

				'Hashtag'      => 'as:Hashtag',
				'Bookmark'     => 'zot:Bookmark',
				'Category'     => 'zot:Category'

			]
		];

		header('Content-Type: application/ld+json');
		echo json_encode($arr,JSON_UNESCAPED_SLASHES);
		killme();

	}




}