mirror of
https://github.com/JHUAPL/aqueduct.git
synced 2026-01-09 15:58:04 -05:00
42 lines
860 B
PHP
42 lines
860 B
PHP
<?php
|
|
/*
|
|
homepage: http://arc.semsol.org/
|
|
license: http://arc.semsol.org/license
|
|
|
|
class: ARC2 RDF Store DUMP Query Handler
|
|
author: Benjamin Nowack
|
|
version: 2008-07-02
|
|
*/
|
|
|
|
ARC2::inc('StoreQueryHandler');
|
|
|
|
class ARC2_StoreDumpQueryHandler extends ARC2_StoreQueryHandler {
|
|
|
|
function __construct($a = '', &$caller) {/* caller has to be a store */
|
|
parent::__construct($a, $caller);
|
|
}
|
|
|
|
function ARC2_StoreDumpQueryHandler($a = '', &$caller) {
|
|
$this->__construct($a, $caller);
|
|
}
|
|
|
|
function __init() {/* db_con */
|
|
parent::__init();
|
|
$this->store =& $this->caller;
|
|
}
|
|
|
|
/* */
|
|
|
|
function runQuery($infos, $keep_bnode_ids = 0) {
|
|
$this->infos = $infos;
|
|
$con = $this->store->getDBCon();
|
|
ARC2::inc('StoreDumper');
|
|
$d =& new ARC2_StoreDumper($this->a, $this->store);
|
|
$d->dumpSPOG();
|
|
return 1;
|
|
}
|
|
|
|
/* */
|
|
|
|
}
|