3 homepage: http://arc.semsol.org/
4 license: http://arc.semsol.org/license
6 class: ARC2 Store SPOG Loader
7 author: Morten Høybye Frederiksen / Benjamin Nowack
11 ARC2::inc('SPOGParser');
13 class ARC2_StoreSPOGLoader extends ARC2_SPOGParser {
15 function __construct($a = '', &$caller) {
16 parent::__construct($a, $caller);
19 function ARC2_StoreSPOGLoader($a = '', &$caller) {
20 $this->__construct($a, $caller);
29 function addT($s, $p, $o, $s_type, $o_type, $o_dt = '', $o_lang = '', $g) {
30 if (!($s && $p && $o)) return 0;
31 if (!$g) $g = $this->caller->target_graph;
32 if ($this->caller->fixed_target_graph) $g = $this->caller->fixed_target_graph;
33 $prev_g = $this->caller->target_graph;
34 $this->caller->target_graph = $g;
35 $this->caller->addT($s, $p, $o, $s_type, $o_type, $o_dt, $o_lang);
36 $this->caller->target_graph = $prev_g;