Create a new graph and load RDF data from a URI into it
This static function is shorthand for: $graph = new EasyRdf_Graph($uri); $graph->load($uri, $format);
The document type is optional but should be specified if it can't be guessed or got from the HTTP headers.
string $uri The URI of the data to load:
string $format Optional format of the data (eg. rdfxml):
object EasyRdf_Graph The new the graph object
public static function newAndLoad($uri, $format = null) {
$graph = new self($uri);
$graph
->load($uri, $format);
return $graph;
}