diff --git a/src/rdf4j-tests/transactions.test.js b/src/rdf4j-tests/transactions.test.js new file mode 100644 index 000000000..a78231445 --- /dev/null +++ b/src/rdf4j-tests/transactions.test.js @@ -0,0 +1,22 @@ +const url = 'https://agentlab.ru/rdf4j-server/repositories/rpo-tests/transactions'; + +test('adding triples with PUT query and transactions', async () => { + const tID = await fetch(url, { + method: 'POST', + }).then((r) => r.headers.get('Location')); + + expect(tID).not.toBe(null); + + console.log(tID); + + const result = await fetch(tID + '?action=ADD', { + method: 'PUT', + headers: { + 'Content-Type': 'text/turtle', + }, + body: + ' .', + }).then((r) => r); + + console.log(result); +});