/usr/share/doc/libgraphite-php/examples/freeze.php is in libgraphite-php 1.5-1.
This file is owned by root:root, with mode 0o755.
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 | #!/usr/bin/php
<?php
# this is intended to be run on the command-line, but you could run it
# via the web if you wanted.
# you'll need to change all the paths.
require_once("../arc/ARC2.php");
require_once("../Graphite.php");
$graph = new Graphite();
$graph->ns( "foo", "http://example.org/foons/" );
$graph->load( "mydata.rdf" );
$graph->freeze( "mydata.rdf.graphite" );
# to use this graph from a script, use
# $graph = Graphite::thaw( "mydata.rdf.graphite" );
|