Here is the list of the most complex expressions used in the code. A complex expression is an expression that requires more than 20 tokens to be build.
Literal arrays are omitted.
File | Count | Expression |
---|---|---|
/extractors/ARC2_PoshRdfExtractor.php:83 | 1 | array_merge($ct, array('ns' => array_merge($ct['ns'], $this->v('xmlns', array( ), $n['a'])), 'rpointer' => isset($n['a']['id']) ? $n['a']['id'] : ($n['tag'] == 'cdata' ? '' : $ct['rpointer'] . '/' . $pos), 'tag' => $n['tag'], 'id' => $n['id'], 'lang' => $this->v('xml:lang', $ct['lang'], $n['a']), )) |
/store/ARC2_StoreLoadQueryHandler.php:116 | 1 | $o = (($o_type == 'bnode') && !$this->keep_bnode_ids) ? '_:b' . abs(crc32($g . $o)) . '_' . (strlen($o) > 12 ? substr(substr($o, 2), -10) : substr($o, 2)) : $o |
/store/ARC2_StoreLoadQueryHandler.php:115 | 1 | $s = (($s_type == 'bnode') && !$this->keep_bnode_ids) ? '_:b' . abs(crc32($g . $s)) . '_' . (strlen($s) > 12 ? substr(substr($s, 2), -10) : substr($s, 2)) : $s |
/store/ARC2_StoreLoadQueryHandler.php:246 | 1 | $sql = "SELECT t FROM " . $this->store->getTablePrefix( ) . "triple WHERE s = " . $t['s'] . " AND p = " . $t['p'] . " AND o = " . $t['o'] . " AND o_lang_dt = " . $t['o_lang_dt'] . " AND s_type = " . $t['s_type'] . " AND o_type = " . $t['o_type'] . " LIMIT 1 " |
/store/ARC2_StoreLoadQueryHandler.php:118 | 1 | $t = array('s' => $this->getStoredTermID($s, $type_ids[$s_type], 's'), 'p' => $this->getStoredTermID($p, '0', 'id'), 'o' => $this->getStoredTermID($o, $type_ids[$o_type], 'o'), 'o_lang_dt' => $this->getStoredTermID($o_dt . $o_lang, $o_dt ? '0' : '2', 'id'), 'o_comp' => $this->getOComp($o), 's_type' => $type_ids[$s_type], 'o_type' => $type_ids[$o_type], ) |
/store/ARC2_StoreLoadQueryHandler.php:399 | 1 | $this->insert_times[$tbl] = array('min' => min($dur, $this->insert_times[$tbl]['min']), 'max' => max($dur, $this->insert_times[$tbl]['max']), 'sum' => $dur + $this->insert_times[$tbl]['sum']) |
/store/ARC2_StoreLoadQueryHandler.php:340 | 1 | $this->sql_buffers[$tbl] .= $sql . "(" . $t['t'] . ", " . $t['s'] . ", " . $t['p'] . ", " . $t['o'] . ", " . $t['o_lang_dt'] . ", '" . mysql_real_escape_string($t['o_comp'], $con) . "', " . $t['s_type'] . ", " . $t['o_type'] . ")" |
/extractors/ARC2_PoshRdfExtractor.php:83 | 1 | $lct = array_merge($ct, array('ns' => array_merge($ct['ns'], $this->v('xmlns', array( ), $n['a'])), 'rpointer' => isset($n['a']['id']) ? $n['a']['id'] : ($n['tag'] == 'cdata' ? '' : $ct['rpointer'] . '/' . $pos), 'tag' => $n['tag'], 'id' => $n['id'], 'lang' => $this->v('xml:lang', $ct['lang'], $n['a']), )) |
/extractors/ARC2_PoshRdfExtractor.php:53 | 1 | $context = array('id' => $n['id'], 'tag' => $n['tag'], 'base' => $base, 's' => array(array('_doc', $base)), 'next_s' => array('_doc', $base), 'ps' => array( ), 'ns' => $this->a['ns'], 'lang' => '', 'rpointer' => '', ) |
/sparqlscript/ARC2_SPARQLScriptProcessor.php:363 | 1 | $val2 = isset($this->env['vars'][$block['var3']['value']]) ? $this->env['vars'][$block['var3']['value']] : array('value_type' => 'undefined', 'value' => '') |
/sparqlscript/ARC2_SPARQLScriptProcessor.php:362 | 1 | $val1 = isset($this->env['vars'][$block['var2']['value']]) ? $this->env['vars'][$block['var2']['value']] : array('value_type' => 'undefined', 'value' => '') |
/store/ARC2_StoreEndpoint.php:327 | 1 | $formats = array('xml' => 'SPARQLXML', 'sparql-results+xml' => 'SPARQLXML', 'json' => 'SPARQLJSON', 'sparql-results+json' => 'SPARQLJSON', 'php_ser' => 'PHPSER', 'plain' => 'Plain', 'sql' => ($this->allow_sql ? 'Plain' : 'xSQL'), 'infos' => 'Plain', 'htmltab' => 'HTMLTable', 'tsv' => 'TSV', ) |
/store/ARC2_StoreSelectQueryHandler.php:1595 | 1 | $r = ($op == '!') ? $sub_r_1 . ' NOT LIKE ' . $m[1] . $m[2] . '%' . $m[1] : $sub_r_1 . ' LIKE ' . $m[1] . $m[2] . '%' . $m[1] |
/store/ARC2_StoreEndpoint.php:592 | 1 | $formats = array('rdfxml' => 'RDFXML', 'rdf+xml' => 'RDFXML', 'json' => 'RDFJSON', 'rdf+json' => 'RDFJSON', 'turtle' => 'Turtle', 'x-turtle' => 'Turtle', 'rdf+n3' => 'Turtle', 'php_ser' => 'PHPSER', 'sql' => ($this->allow_sql ? 'Plain' : 'xSQL'), 'infos' => 'Plain', ) |
/store/ARC2_StoreEndpoint.php:530 | 2 | $formats = array('xml' => 'SPARQLXML', 'sparql-results+xml' => 'SPARQLXML', 'json' => 'SPARQLJSON', 'sparql-results+json' => 'SPARQLJSON', 'plain' => 'Plain', 'php_ser' => 'PHPSER', 'sql' => ($this->allow_sql ? 'Plain' : 'xSQL'), 'infos' => 'Plain', ) |
/store/ARC2_StoreEndpoint.php:711 | 2 | $formats = array('xml' => 'SPARQLXML', 'sparql-results+xml' => 'SPARQLXML', 'json' => 'SPARQLJSON', 'sparql-results+json' => 'SPARQLJSON', 'plain' => 'Plain', 'php_ser' => 'PHPSER', 'sql' => ($this->allow_sql ? 'Plain' : 'xSQL'), 'infos' => 'Plain', ) |
/store/ARC2_StoreEndpoint.php:648 | 1 | $formats = array('rdfxml' => 'RDFXML', 'rdf+xml' => 'RDFXML', 'json' => 'RDFJSON', 'rdf+json' => 'RDFJSON', 'turtle' => 'Turtle', 'x-turtle' => 'Turtle', 'rdf+n3' => 'Turtle', 'php_ser' => 'PHPSER', 'sql' => ($this->allow_sql ? 'Plain' : 'xSQL'), 'infos' => 'Plain') |
/ARC2.php:232 | 1 | $r[] = array('s' => $s, 'p' => $p, 'o' => $o['value'], 's_type' => preg_match('/^\_\:/', $s) ? 'bnode' : 'uri', 'o_type' => $o['type'], 'o_datatype' => isset($o['datatype']) ? $o['datatype'] : '', 'o_lang' => isset($o['lang']) ? $o['lang'] : '', ) |
/ARC2_Reader.php:227 | 1 | $h_code = $http_mthd . ' ' . $this->v1('path', '/', $parts) . (($v = $this->v1('query', 0, $parts)) ? '?' . $v : '') . (($v = $this->v1('fragment', 0, $parts)) ? '#' . $v : '') |
/ARC2_Reader.php:231 | 1 | $h_code .= ' HTTP/1.0' . $nl . 'Host: ' . $parts['host'] . $port_code . $nl . (($v = $this->http_accept_header) ? $v . $nl : '') . (($v = $this->http_user_agent_header) && !preg_match('/User\-Agent\:/', $this->http_custom_headers) ? $v . $nl : '') . (($http_mthd == 'POST') ? 'Content-Length: ' . strlen($this->message_body) . $nl : '') . ($this->http_custom_headers ? trim($this->http_custom_headers) . $nl : '') . $nl . '' |
/serializers/ARC2_NTriplesSerializer.php:164 | 1 | $r = ((ord($c_utf[0]) - 224) * 4096) + ((ord($c_utf[1]) - 128) * 64) + (ord($c_utf[2]) - 128) |
/serializers/ARC2_NTriplesSerializer.php:167 | 1 | $r = ((ord($c_utf[0]) - 240) * 262144) + ((ord($c_utf[1]) - 128) * 4096) + ((ord($c_utf[2]) - 128) * 64) + (ord($c_utf[3]) - 128) |
/sparqlscript/ARC2_SPARQLScriptProcessor.php:129 | 1 | $r_struct = array('y' => date('Y'), 'mo' => date('m'), 'd' => date('d'), 'h' => date('H'), 'mi' => date('i'), 's' => date('s')) |
/sparqlscript/ARC2_SPARQLScriptProcessor.php:335 | 1 | $r = array('value_type' => isset($vts[$qt]) ? $vts[$qt] : $qt . ' result', 'value' => ($qt == 'select') ? $this->v('rows', array( ), $qr['result']) : $qr['result'], ) |
/parsers/ARC2_TurtleParser.php:442 | 2 | $r['triples'][] = array('type' => 'triple', 's' => $s, 'p' => $this->rdf . 'first', 'o' => $sub_r['id'], 's_type' => 'bnode', 'p_type' => 'uri', 'o_type' => $sub_r['type'], 'o_lang' => '', 'o_datatype' => '') |
/parsers/ARC2_TurtleParser.php:447 | 2 | $r['triples'][] = array('type' => 'triple', 's' => $s, 'p' => $this->rdf . 'first', 'o' => $sub_r['id'], 's_type' => 'bnode', 'p_type' => 'uri', 'o_type' => $sub_r['type'], 'o_lang' => '', 'o_datatype' => '') |
/parsers/ARC2_RDFXMLParser.php:241 | 1 | $s = array('x_base' => isset($a[$this->xml . 'base']) ? $this->calcURI($a[$this->xml . 'base']) : $this->getParentXBase( ), 'x_lang' => isset($a[$this->xml . 'lang']) ? $a[$this->xml . 'lang'] : $this->getParentXLang( ), 'li_count' => 0, ) |
/parsers/ARC2_TurtleParser.php:438 | 1 | $r['triples'][] = array('type' => 'triple', 's' => $s, 'p' => $this->rdf . 'first', 'o' => $sub_r['value'], 's_type' => 'bnode', 'p_type' => 'uri', 'o_type' => $sub_r['type'], 'o_lang' => $this->v('lang', '', $sub_r), 'o_datatype' => $this->v('datatype', '', $sub_r)) |
/parsers/ARC2_TurtleParser.php:858 | 1 | $char = chr(($no >> 18) + 240) . chr((($no >> 12) & 63) + 128) . chr((($no >> 6) & 63) + 128) . chr(($no & 63) + 128) |
/parsers/ARC2_TurtleParser.php:454 | 1 | $r['triples'][] = array('type' => 'triple', 's' => $s, 'p' => $this->rdf . 'rest', 'o' => $this->rdf . 'nil', 's_type' => 'bnode', 'p_type' => 'uri', 'o_type' => 'uri', 'o_lang' => '', 'o_datatype' => '') |
/parsers/ARC2_TurtleParser.php:460 | 1 | $r['triples'][] = array('type' => 'triple', 's' => $s, 'p' => $this->rdf . 'rest', 'o' => $next_s, 's_type' => 'bnode', 'p_type' => 'uri', 'o_type' => 'bnode', 'o_lang' => '', 'o_datatype' => '') |
/extractors/ARC2_ErdfExtractor.php:174 | 2 | $t = array('s' => $s, 's_type' => 'uri', 'p' => $ct['ns']['rdfs'] . 'label', 'o' => $ct['cur_obj_literal']['value'], 'o_type' => 'literal', 'o_lang' => $ct['cur_obj_literal']['datatype'] ? '' : $ct['cur_obj_literal']['lang'], 'o_datatype' => $ct['cur_obj_literal']['datatype'], ) |
/extractors/ARC2_ErdfExtractor.php:189 | 2 | $t = array('s' => $s, 's_type' => 'uri', 'p' => $ct['ns']['rdfs'] . 'label', 'o' => $ct['cur_obj_literal']['value'], 'o_type' => 'literal', 'o_lang' => $ct['cur_obj_literal']['datatype'] ? '' : $ct['cur_obj_literal']['lang'], 'o_datatype' => $ct['cur_obj_literal']['datatype'], ) |
/extractors/ARC2_ErdfExtractor.php:81 | 2 | $t = array('s' => $ct['cur_res'], 's_type' => 'uri', 'p' => $uri, 'o' => $ct['cur_obj_literal']['value'], 'o_type' => 'literal', 'o_lang' => $ct['cur_obj_literal']['datatype'] ? '' : $ct['cur_obj_literal']['lang'], 'o_datatype' => $ct['cur_obj_literal']['datatype'], ) |
/extractors/ARC2_ErdfExtractor.php:119 | 2 | $t = array('s' => $ct['cur_res'], 's_type' => 'uri', 'p' => $uri, 'o' => $ct['cur_obj_literal']['value'], 'o_type' => 'literal', 'o_lang' => $ct['cur_obj_literal']['datatype'] ? '' : $ct['cur_obj_literal']['lang'], 'o_datatype' => $ct['cur_obj_literal']['datatype'], ) |
/parsers/ARC2_AtomParser.php:91 | 1 | $this->mappings = array('feed' => $this->rss . 'channel', 'entry' => $this->rss . 'item', 'title' => $this->rss . 'title', 'link' => $this->rss . 'link', 'summary' => $this->rss . 'description', 'content' => $this->content . 'encoded', 'id' => $this->dc . 'identifier', 'author' => $this->dc . 'creator', 'category' => $this->dc . 'subject', 'updated' => $this->dc . 'date', 'source' => $this->dc . 'source', ) |
/parsers/ARC2_RSSParser.php:87 | 1 | $this->mappings = array('channel' => $this->rss . 'channel', 'item' => $this->rss . 'item', 'title' => $this->rss . 'title', 'link' => $this->rss . 'link', 'description' => $this->rss . 'description', 'guid' => $this->dc . 'identifier', 'author' => $this->dc . 'creator', 'category' => $this->dc . 'subject', 'pubDate' => $this->dc . 'date', 'pubdate' => $this->dc . 'date', 'source' => $this->dc . 'source', 'enclosure' => $this->enc . 'enclosure', ) |
/extractors/ARC2_RdfaExtractor.php:211 | 1 | $new_ct = array('base' => $lct['base'], 'p_s' => $lct['new_s'] ? $lct['new_s'] : $ct['p_s'], 'p_o' => $lct['cur_o_res'] ? $lct['cur_o_res'] : ($lct['new_s'] ? $lct['new_s'] : $ct['p_s']), 'ns' => $lct['ns'], 'inco_ts' => $lct['inco_ts'], 'lang' => $lct['lang']) |
/parsers/ARC2_LegacyXMLParser.php:239 | 1 | $node = array('tag' => $t, 'tag_exact' => $t_exact, 'a' => $a, 'level' => $this->level, 'pos' => 0, 'p_id' => $this->node_count - 1, 'state' => 'open', 'empty' => 0, 'cdata' => '') |
/parsers/ARC2_TurtleParser.php:531 | 1 | elseif(!$this->x('\s', $sub_v) && ($sub_r = $this->x('\^\^', $sub_v)) && (list($sub_r, $sub_v) = $this->xIRIref($sub_r[1])) && $sub_r[1]) { /**/ } |
/extractors/ARC2_RdfaExtractor.php:77 | 3 | if(isset($n['a'][$attr]) && (list($uri, $sub_v) = $this->xURI($n['a'][$attr], $lct['base'], $lct['ns'], '', $lct)) && $uri) { /**/ } |
/extractors/ARC2_RdfaExtractor.php:99 | 3 | if(isset($n['a'][$attr]) && (list($uri, $sub_v) = $this->xURI($n['a'][$attr], $lct['base'], $lct['ns'], '', $lct)) && $uri) { /**/ } |
/extractors/ARC2_RdfaExtractor.php:116 | 3 | if(isset($n['a'][$attr]) && (list($uri, $sub_v) = $this->xURI($n['a'][$attr], $lct['base'], $lct['ns'], '', $lct)) && $uri) { /**/ } |