Ejemplo n.º 1
0
 public function __construct($role = parent::DOCUMENT_ROLE, BNodeLabeler $labeler = null, N3Quoter $quoter = null)
 {
     parent::__construct($role, $labeler, $quoter);
     $this->transitionTable[self::STATE_OBJECT] = array(self::STATE_DOCUMENT => " .\n", self::STATE_SUBJECT => " .\n\n", self::STATE_PREDICATE => " ;\n\t", self::STATE_OBJECT => ",\n\t\t");
     $this->transitionTable[self::STATE_DOCUMENT][self::STATE_SUBJECT] = "\n";
     $this->transitionTable[self::STATE_SUBJECT][self::STATE_PREDICATE] = ' ';
     $this->transitionTable[self::STATE_PREDICATE][self::STATE_OBJECT] = ' ';
     $this->transitionTable[self::STATE_START][self::STATE_DOCUMENT] = function () {
         $this->beginDocument();
     };
 }
Ejemplo n.º 2
0
 protected function writeValue($value, $typeBase = null, $typeLocal = null)
 {
     $this->writeSubjectAndObject();
     $this->write(' ');
     parent::writeValue($value, $typeBase, $typeLocal);
 }