Create a new SPARQL Result object
You should not normally need to create a SPARQL result object directly - it will be constructed automatically for you by EasyRdf_Sparql_Client.
string $data The SPARQL result body:
string $mimeType The MIME type of the result:
public function __construct($data, $mimeType) {
if ($mimeType == 'application/sparql-results+xml') {
return $this
->parseXml($data);
}
elseif ($mimeType == 'application/sparql-results+json') {
return $this
->parseJson($data);
}
else {
throw new EasyRdf_Exception("Unsupported SPARQL Query Results format: {$mimeType}");
}
}