server/src/app/Models/TranscriptResource.php
author ymh <ymh.work@gmail.com>
Fri, 15 Sep 2017 14:54:08 +0200
changeset 548 f624c19354e4
parent 521 b3c738a20af8
permissions -rw-r--r--
to version 0.23

<?php
namespace CorpusParole\Models;

use CorpusParole\Libraries\RdfModel\RdfModelResource;
use CorpusParole\Libraries\Utils;

use JsonSerializable;
use Log;


/**
 */
class TranscriptResource extends WebResource  {

    private $conformsTo = -1;
    private $rights = false;


    protected function doClearMemoizationCache() {
        $this->conformsTo = -1;
        $this->rights = false;
    }

    public function getConformsTo() {
        if($this->conformsTo === -1) {
            $conformsTo = $this->getResource("<http://purl.org/dc/terms/conformsTo>");
            $this->conformsTo = is_null($conformsTo)?null:$conformsTo->getUri();
        }

        return $this->conformsTo;
    }

    public function getRights() {
        if($this->rights === false) {
            $rightsRes = $this->getResource("<http://purl.org/dc/terms/license>");
            $this->rights = is_null($rightsRes)?null:$rightsRes->getUri();
        }
        return $this->rights;
    }


    protected function jsonSerializeExtra() {
        return [
            'conforms-to' => $this->getConformsTo(),
            'rights' => $this->getRights()
        ];
    }

}
PK\>jm/ tweet_live-ffbd8565b65f/script/backup/.DS_StoreUTMPK\>&K%9 tweet_live-ffbd8565b65f/script/backup/enmi2010_twitter.dbUTMPK\>Rk> tweet_live-ffbd8565b65f/script/backup/enmi2010_twitter_rest.dbUTMPK\>zh > otweet_live-ffbd8565b65f/script/backup/export_tweet_enmi2010.dbUTMPK\>8 ǃtweet_live-ffbd8565b65f/script/lib/iri_tweet/__init__.pyUTMPK\>QU7VJ 8tweet_live-ffbd8565b65f/script/lib/iri_tweet/create_twitter_export_conf.pyUTMPK\>Z ? tweet_live-ffbd8565b65f/script/lib/iri_tweet/export_tweet_db.pyUTMPK\>O~;F tweet_live-ffbd8565b65f/script/lib/iri_tweet/export_twitter_alchemy.pyUTMPK\>B'6 7tweet_live-ffbd8565b65f/script/lib/iri_tweet/models.pyUTMPK\>$ScB utweet_live-ffbd8565b65f/script/lib/iri_tweet/tweet_twitter_user.pyUTMPK\> ?35 tweet_live-ffbd8565b65f/script/lib/iri_tweet/utils.pyUTMPK\>?Y=p8 Ltweet_live-ffbd8565b65f/script/lib/tweetstream/CHANGELOGUTMPK\>$ 6 tweet_live-ffbd8565b65f/script/lib/tweetstream/LICENSEUTMPK\>V-5 rtweet_live-ffbd8565b65f/script/lib/tweetstream/READMEUTMPK\>y? etweet_live-ffbd8565b65f/script/lib/tweetstream/servercontext.pyUTMPK\>ު7 tweet_live-ffbd8565b65f/script/lib/tweetstream/setup.pyUTMPK\> [:в H tweet_live-ffbd8565b65f/script/lib/tweetstream/tests/test_tweetstream.pyUTMPK\>U{ o%F tweet_live-ffbd8565b65f/script/lib/tweetstream/tweetstream/__init__.pyUTMPK\>:B tweet_live-ffbd8565b65f/script/lib/tweetstream/tweetstream/auth.pyUTMPK\>S{rZC =tweet_live-ffbd8565b65f/script/lib/tweetstream/tweetstream/oauth.pyUTMPK\>DiR_3 tweet_live-ffbd8565b65f/script/rest/enmi_profile.pyUTMPK\>+ 5  tweet_live-ffbd8565b65f/script/rest/export_twitter.pyUTMPK\>)35  tweet_live-ffbd8565b65f/script/rest/getscreennames.pyUTMPK\>m;3  tweet_live-ffbd8565b65f/script/rest/process_iri.awkUTMPK\> gz2 g tweet_live-ffbd8565b65f/script/rest/reinit_iri.awkUTMPK\>u] 5 7 tweet_live-ffbd8565b65f/script/rest/search_twitter.pyUTMPK\>n2  tweet_live-ffbd8565b65f/script/stream/get_stats.pyUTMPK\>uX= 2 tweet_live-ffbd8565b65f/script/stream/recorder_tweetstream.pyUTMPK\>>9< u$ tweet_live-ffbd8565b65f/script/virtualenv/res/anyjson.tar.gzUTMPK\>oIP~< &= tweet_live-ffbd8565b65f/script/virtualenv/res/credential.txtUTMPK\>JKF > tweet_live-ffbd8565b65f/script/virtualenv/res/distribute-0.6.14.tar.gzUTMPK\> x(C ܉ tweet_live-ffbd8565b65f/script/virtualenv/res/httplib2-0.6.0.tar.gzUTMPK <[