Parse a file containing RDF data into the graph object.
string $filename The path of the file to load:
string $format Optional format of the file:
string $uri The URI of the file to load:
integer The number of triples added to the graph
public function parseFile($filename, $format = null, $uri = null) {
if ($uri === null) {
$uri = "file://{$filename}";
}
return $this
->parse(file_get_contents($filename), $format, $uri);
}