This file is indexed.

/usr/share/doc/libgraphite-php/examples/to_json.php is in libgraphite-php 1.5-1.

This file is owned by root:root, with mode 0o644.

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
<?php

require_once( "../arc/ARC2.php" );
require_once( "../Graphite.php" );

$graph = new Graphite();

$graph->ns( "sr", "http://data.ordnancesurvey.co.uk/ontology/spatialrelations/" );

$rd = $graph->resource( "http://id.southampton.ac.uk/building/32" )->prepareDescription();

$rd->addRoute( '*' );
$rd->addRoute( '*/rdfs:label' );
$rd->addRoute( '*/rdf:type' );
$rd->addRoute( '-sr:within/rdf:type' );
$rd->addRoute( '-sr:within/rdfs:label' );

$n = $rd->loadSPARQL( "http://sparql.data.southampton.ac.uk/" );

$rd->handleFormat( "json" );