?> <hr class="center" /> <div class="center align-right width-1024"> <?php $user_link = sess('u:link'); $user_name = sess('u:name'); if (is_null($user_name) || !strlen($user_name)) { $user_name = $_user; } if ($_options->coderev) { $src = explode('/', __FILE__); $src = array_slice($src, array_search('www', $src)); $src = implode('/', $src); $src = "https://github.com/linkeddata/data.fm/tree/master/{$src}"; $queryFoot = $sparql_n < 1 ? '' : sprintf('with %d quer%s in %ss', $sparql_n, $sparql_n > 1 ? 'ies' : 'y', substr($sparql_t, 0, 6)); $versionFoot = implode(' / ', array('librdf: ' . array_shift(explode(' ', librdf_version_string_get())), 'raptor: ' . array_shift(explode(' ', raptor_version_string_get())), 'rasqal: ' . array_shift(explode(' ', rasqal_version_string_get())))); ?> <div class="footer"> <span id="codeTime" ng-mouseenter="runtime=1" ng-mouseleave="runtime=0"> <em ng-if="runtime"><?php echo $versionFoot; ?> </em></br /><?php echo substr($time, 0, 6); ?> s </span> </div> <?php } ?>
/** * Return a string representation of the node. * * @return string A string representation of the node * @access public */ public function __toString() { $rs = librdf_node_to_string($this->node); if ("1.0.11" > librdf_version_string_get()) { if (librdf_node_is_resource($this->node)) { $rs = '<' . substr($rs, 1, -1) . '>'; } elseif (librdf_node_is_literal($this->node)) { $rs = '"' . $rs . '"'; } elseif (librdf_node_is_blank($this->node)) { $rs = '_:' . substr($rs, 1, -1); } } return $rs; }
/** * Return a string representation of a statement * * @return string The statement as a string * @access public */ public function __toString() { $rs = librdf_statement_to_string($this->statement); if ("1.0.11" > librdf_version_string_get()) { $s = $this->getSubject(); $p = $this->getPredicate(); $o = $this->getObject(); $rs = "{$s} {$p} {$o}"; } return $rs; }