mirror of
https://github.com/JHUAPL/aqueduct.git
synced 2026-01-08 23:38:10 -05:00
41 lines
753 B
PHP
41 lines
753 B
PHP
<?php
|
|
/*
|
|
homepage: http://arc.semsol.org/
|
|
license: http://arc.semsol.org/license
|
|
|
|
class: ARC2 Store CrunchBase API JSON Loader
|
|
author: Benjamin Nowack
|
|
version: 2008-07-15
|
|
*/
|
|
|
|
ARC2::inc('CBJSONParser');
|
|
|
|
class ARC2_StoreCBJSONLoader extends ARC2_CBJSONParser {
|
|
|
|
function __construct($a = '', &$caller) {
|
|
parent::__construct($a, $caller);
|
|
}
|
|
|
|
function ARC2_StoreCBJSONLoader($a = '', &$caller) {
|
|
$this->__construct($a, $caller);
|
|
}
|
|
|
|
function __init() {
|
|
parent::__init();
|
|
}
|
|
|
|
/* */
|
|
|
|
function done() {
|
|
$this->extractRDF();
|
|
}
|
|
|
|
function addT($s, $p, $o, $s_type, $o_type, $o_dt = '', $o_lang = '') {
|
|
$this->caller->addT($s, $p, $o, $s_type, $o_type, $o_dt, $o_lang);
|
|
$this->t_count++;
|
|
}
|
|
|
|
/* */
|
|
|
|
}
|