aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Module/Apschema.php
blob: 6b0325d448acebdf70b5ae6e7db93eb7d752e988 (plain) (tree)



























                                                                              
                                                                    
                                                                          


                                                                             









                                                                          
                                                                         
 
                                                                                       

                                                                  
                                










                                                              
 
<?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'    => 'as: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',

				'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'
				
			]
		];

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

	}




}