/usr/share/php/arc/store/ARC2_StoreCBJSONLoader.php is in libarc-php 2.2.5-1ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 37 38 | <?php
/**
* ARC2 Store CrunchBase API JSON Loader
*
* @author Benjamin Nowack <bnowack@semsol.com>
* @license http://arc.semsol.org/license
* @homepage <http://arc.semsol.org/>
* @package ARC2
* @version 2010-11-16
*/
ARC2::inc('CBJSONParser');
class ARC2_StoreCBJSONLoader extends ARC2_CBJSONParser {
function __construct($a, &$caller) {
parent::__construct($a, $caller);
}
function __init() {
parent::__init();
}
/* */
function done() {
$this->extractRDF();
}
function addT($s, $p, $o, $s_type, $o_type, $o_dt = '', $o_lang = '') {
$o = $this->toUTF8($o);
$this->caller->addT($s, $p, $o, $s_type, $o_type, $o_dt, $o_lang);
$this->t_count++;
}
/* */
}
|