ARC2_StoreDumpQueryHandler.php 752 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /*
  3. homepage: http://arc.semsol.org/
  4. license: http://arc.semsol.org/license
  5. class: ARC2 RDF Store DUMP Query Handler
  6. author: Benjamin Nowack
  7. version: 2010-11-16
  8. */
  9. ARC2::inc('StoreQueryHandler');
  10. class ARC2_StoreDumpQueryHandler extends ARC2_StoreQueryHandler {
  11. function __construct($a, &$caller) {/* caller has to be a store */
  12. parent::__construct($a, $caller);
  13. }
  14. function __init() {/* db_con */
  15. parent::__init();
  16. $this->store = $this->caller;
  17. }
  18. /* */
  19. function runQuery($infos, $keep_bnode_ids = 0) {
  20. $this->infos = $infos;
  21. $con = $this->store->getDBCon();
  22. ARC2::inc('StoreDumper');
  23. $d = new ARC2_StoreDumper($this->a, $this->store);
  24. $d->dumpSPOG();
  25. return 1;
  26. }
  27. /* */
  28. }