server/src/app/Libraries/Sparql/SparqlClient.php
changeset 28 b0b56e0f8c7f
parent 4 f55970e41793
child 109 d22ed5792f8e
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
   114             ]
   114             ]
   115         );
   115         );
   116         if($resp->getStatusCode() != 204) {
   116         if($resp->getStatusCode() != 204) {
   117             throw new CorpusParoleException("Could not update in transaction with operation $operation: "
   117             throw new CorpusParoleException("Could not update in transaction with operation $operation: "
   118                 . $resp->getStatusCode() . " - "
   118                 . $resp->getStatusCode() . " - "
   119                 . $resp->getReasonPhrase() . " : " . $resp->getBody(), 1);
   119                 . $resp->getReasonPhrase() . " : " . $resp->getBody()
       
   120                 . " : $query" , 1);
   120         }
   121         }
   121     }
   122     }
   122 
   123 
   123     public function add(Graph $graph) {
   124     public function add(Graph $graph) {
   124         $this->updateData('INSERT', $graph);
   125         $this->updateData('INSERT', $graph);