server/src/app/Libraries/RdfModel/RdfModelDelta.php
author ymh <ymh.work@gmail.com>
Fri, 10 Feb 2017 12:03:12 +0100
changeset 506 8a5bb4b48b85
parent 307 07b44a378ad8
permissions -rw-r--r--
try to solve #0025932 + try to improve indexing process reliability by retrying bnf label resolve queries

<?php
namespace CorpusParole\Libraries\RdfModel;

use EasyRdf\Graph;

/**
 *
 */
class RdfModelDelta {

    public function __construct($uri) {
        $this->uri = $uri;
        $this->deletedGraph = new Graph($uri);
        $this->addedGraph = new Graph($uri);
        $this->deleteWhere = [];
    }

    private $deletedGraph;
    private $addedGraph;
    private $deleteWhere;

    public function getDeletedGraph() {
        return $this->deletedGraph;
    }

    public function getAddedGraph() {
        return $this->addedGraph;
    }

    public function getDeleteWhere() {
        return $this->deleteWhere;
    }

    public function addDeleteWhere($value) {
        array_push($this->deleteWhere, $value);
        return $this;
    }

    public function getUri() {
        return $this->uri;
    }

}