$q = <<<EOT PREFIX theme: <http://data.sparql.pro/w/Q> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> INSERT { GRAPH <http://sparql.pro/lodTest> { theme:2223 a skos:Concept ; rdfs:label "Physique"@fr ; rdfs:label "Physics"@en . } } EOT; $sp_ReadAndWrite->ResetErrors(); $rows = $sp_ReadAndWrite->query($q, 'raw'); $err = $sp_ReadAndWrite->getErrors(); if ($err) { print_r($err); } /* foreach($rows["result"]["variables"] as $variable){ printf("%-20.20s",$variable); echo '|'; } echo "\n"; foreach ($rows["result"]["rows"] as $row){ foreach($rows["result"]["variables"] as $variable){ printf("%-20.20s",$row[$variable]);