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
  
     | 
    
      <?php
/*
homepage: http://arc.semsol.org/
license:  http://arc.semsol.org/license
class:    ARC2 Store Turtle Loader
author:   Benjamin Nowack
version:  2008-06-28 (Tweak: adjusted to normalized "literal" type)
*/
ARC2::inc('TurtleParser');
class ARC2_StoreTurtleLoader extends ARC2_TurtleParser {
  function __construct($a = '', &$caller) {
    parent::__construct($a, $caller);
  }
  
  function ARC2_StoreTurtleLoader($a = '', &$caller) {
    $this->__construct($a, $caller);
  }
  function __init() {
    parent::__init();
  }
  /*  */
  
  function addT($t) {
    $this->caller->addT($t['s'], $t['p'], $t['o'], $t['s_type'], $t['o_type'], $t['o_datatype'], $t['o_lang']);
    $this->t_count++;
  }
  /*  */
}
 
     |