Skip to content

Commit

Permalink
Fix triple-store socket hangup issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zvonimir authored and Zvonimir committed Feb 11, 2025
1 parent dd1023d commit 6e555f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/triple-store/implementation/ot-triple-store.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { QueryEngine as Engine } from '@comunica/query-sparql';
import { setTimeout } from 'timers/promises';
import axios from 'axios';
import {
SCHEMA_CONTEXT,
TRIPLE_STORE_CONNECT_MAX_RETRIES,
Expand Down Expand Up @@ -565,7 +566,11 @@ class OtTripleStore {
}

async queryVoid(repository, query) {
return this.queryEngine.queryVoid(query, this.repositories[repository].updateContext);
await axios.post(this.repositories[repository].sparqlEndpointUpdate, query, {
headers: {
'Content-Type': 'application/sparql-update',
},
});
}

async ask(repository, query) {
Expand Down

0 comments on commit 6e555f0

Please sign in to comment.