Example #1
0
 function __init()
 {
     parent::__init();
     $this->store = $this->caller;
     $this->keep_time_limit = $this->v('keep_time_limit', 0, $this->a);
     $this->limit = 100000;
 }
Example #2
0
 function __init()
 {
     parent::__init();
     foreach ($this->ns as $k => $v) {
         $this->nsp[$v] = $k;
     }
 }
Example #3
0
 function __init()
 {
     /* db_con */
     parent::__init();
     $this->table_lock = 0;
     $this->triggers = $this->v('store_triggers', array(), $this->a);
 }
 function __init()
 {
     parent::__init();
     $this->max_operations = $this->v('sparqlscript_max_operations', 0, $this->a);
     $this->max_queries = $this->v('sparqlscript_max_queries', 0, $this->a);
     $this->env = array('endpoint' => '', 'vars' => array(), 'output' => '', 'operation_count' => 0, 'query_count' => 0);
 }
Example #5
0
 function __init()
 {
     parent::__init();
     $this->store = $this->caller;
     ARC2::inc('Reader');
     $this->reader = new ARC2_Reader($this->a, $this);
 }
Example #6
0
 function __init()
 {
     parent::__init();
     $this->nodes = $this->caller->getNodes();
     $this->index = $this->caller->getNodeIndex();
     $this->bnode_prefix = $this->v('bnode_prefix', 'arc' . substr(md5(uniqid(rand())), 0, 4) . 'b', $this->a);
     $this->bnode_id = 0;
 }
 function __init()
 {
     /* db_con */
     parent::__init();
     $this->xsd = 'http://www.w3.org/2001/XMLSchema#';
     $this->allow_extension_functions = $this->v('store_allow_extension_functions', 1, $this->a);
     $this->handler_type = '';
 }
 function __init()
 {
     parent::__init();
     $this->uri = '';
     $this->index = array();
     $this->fetched = array();
     $this->store = '';
 }
Example #9
0
 function __init()
 {
     /* db_con */
     parent::__init();
     $this->table_lock = 0;
     $this->triggers = $this->v('store_triggers', array(), $this->a);
     $this->queue_queries = $this->v('store_queue_queries', 0, $this->a);
     $this->is_win = strtolower(substr(PHP_OS, 0, 3)) == 'win' ? true : false;
 }
Example #10
0
 function __init()
 {
     parent::__init();
     $this->ns_count = 0;
     $this->ns = $this->v('ns', array(), $this->a);
     $this->nsp = array();
     foreach ($this->ns as $k => $v) {
         $this->nsp[$v] = $k;
     }
     $this->nsp['http://www.w3.org/1999/02/22-rdf-syntax-ns#'] = 'rdf';
     $this->used_ns = array('http://www.w3.org/1999/02/22-rdf-syntax-ns#');
 }
Example #11
0
 function __init()
 {
     /* proxy_host, proxy_port, proxy_skip, http_accept_header, http_user_agent_header, max_redirects, reader, skip_dupes */
     parent::__init();
     $this->a['format'] = $this->v('format', false, $this->a);
     $this->triples = array();
     $this->t_count = 0;
     $this->added_triples = array();
     $this->skip_dupes = $this->v('skip_dupes', false, $this->a);
     $this->bnode_prefix = $this->v('bnode_prefix', 'arc' . substr(md5(uniqid(rand())), 0, 4) . 'b', $this->a);
     $this->bnode_id = 0;
 }
Example #12
0
 function __init()
 {
     parent::__init();
     $this->nodes = $this->caller->getNodes();
     $this->index = $this->caller->getNodeIndex();
     $this->bnode_prefix = $this->v('bnode_prefix', 'arc' . substr(md5(uniqid(rand())), 0, 4) . 'b', $this->a);
     $this->bnode_id = 0;
     $this->keep_cdata_ws = $this->v('keep_cdata_whitespace', 0, $this->a);
     if (!isset($this->a['ns'])) {
         $this->a['ns'] = array('rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#');
     }
 }
 function __init()
 {
     /* reader */
     parent::__init();
     $this->encoding = $this->v('encoding', false, $this->a);
     $this->state = 0;
     $this->x_base = $this->base;
     $this->xml = 'http://www.w3.org/XML/1998/namespace';
     $this->rdf = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
     $this->nsp = array($this->xml => 'xml', $this->rdf => 'rdf');
     $this->allowCDataNodes = 1;
     $this->target_encoding = '';
 }
Example #14
0
 function __init()
 {
     /* inc_path, proxy_host, proxy_port, proxy_skip, http_accept_header, http_user_agent_header, max_redirects */
     parent::__init();
     $this->http_method = 'GET';
     $this->message_body = '';
     $this->http_accept_header = $this->v('http_accept_header', 'Accept: application/rdf+xml; q=0.9, */*; q=0.1', $this->a);
     $this->http_user_agent_header = $this->v('http_user_agent_header', 'User-Agent: ARC Reader (http://arc.semsol.org/)', $this->a);
     $this->http_custom_headers = $this->v('http_custom_headers', '', $this->a);
     $this->max_redirects = $this->v('max_redirects', 3, $this->a);
     $this->format = $this->v('format', false, $this->a);
     $this->redirects = array();
     $this->stream_id = '';
 }
 function __init()
 {
     /* inc_path, proxy_host, proxy_port, proxy_skip, http_accept_header, http_user_agent_header, max_redirects */
     parent::__init();
     $this->http_method = $this->v('http_method', 'GET', $this->a);
     $this->message_body = $this->v('message_body', '', $this->a);
     $this->http_accept_header = $this->v('http_accept_header', 'Accept: application/rdf+xml; q=0.9, text/turtle; q=0.8, */*; q=0.1', $this->a);
     $this->http_user_agent_header = $this->v('http_user_agent_header', 'User-Agent: ARC Reader (http://arc.semsol.org/)', $this->a);
     $this->http_custom_headers = $this->v('http_custom_headers', '', $this->a);
     $this->max_redirects = $this->v('max_redirects', 3, $this->a);
     $this->format = $this->v('format', false, $this->a);
     $this->redirects = array();
     $this->stream_id = '';
     $this->timeout = $this->v('reader_timeout', 30, $this->a);
     $this->response_headers = array();
     $this->digest_auth = 0;
     $this->auth_infos = $this->v('reader_auth_infos', array(), $this->a);
 }
 function __init()
 {
     parent::__init();
     $this->graph = ARC2::getComponent('PMJ_ResourceGraphPlugin', array('ns' => $this->ns));
     if (!isset($this->currURI)) {
         $this->currURI = isset($this->a['currURI']) ? $this->expandPName($this->a['currURI']) : false;
     }
     if (!isset($this->revProp)) {
         $this->revProp = isset($this->a['revProp']) ? $this->expandPName($this->a['revProp']) : false;
     }
     if (!isset($this->revURI)) {
         $this->revURI = isset($this->a['revURI']) ? $this->expandPName($this->a['revURI']) : false;
     }
     $this->storeGraphURI = isset($this->a['storeGraphURI']) ? $this->expandPName($this->a['storeGraphURI']) : '';
     $this->subNegotiators = array();
     $this->store = isset($this->a['store']) ? $this->a['store'] : false;
     $this->selector = isset($this->a['selector']) ? $this->a['selector'] : NegotiatorSelector::getInstance();
     $this->source = isset($this->a['source']) ? $this->a['source'] : false;
     $this->ns['rdfs'] = 'http://www.w3.org/2000/01/rdf-schema#';
     $this->ns['rdf'] = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
     $this->ns['xsd'] = "http://www.w3.org/2001/XMLSchema#";
 }
 function __init()
 {
     /* db_con */
     parent::__init();
     $this->store = $this->caller;
 }
 function __init()
 {
     parent::__init();
     $this->headers = array('http' => 'HTTP/1.1 200 OK');
 }
Example #19
0
 function __init()
 {
     parent::__init();
 }
 function __init()
 {
     parent::__init();
     $this->env = array('endpoint' => '', 'vars' => array(), 'output' => '');
 }
Example #21
0
 function __init()
 {
     parent::__init();
     $this->store = $this->caller;
 }
 function __init()
 {
     parent::__init();
     $this->data = array();
 }
 function __init()
 {
     parent::__init();
     $this->content_header = 'application/json';
 }
 function __init()
 {
     parent::__init();
     $this->content_header = 'text/xml';
 }
 function __init()
 {
     parent::__init();
     $this->resources = array();
 }
 function getRDFXML()
 {
     return parent::toRDFXML($this->index, $this->ns);
 }
 function __init()
 {
     parent::__init();
     $this->graphviz_path = $this->v('graphviz_path', '/usr/localbin/dot', $this->a);
     $this->graphviz_temp = $this->v('graphviz_temp', '/tmp/', $this->a);
 }