Skip to content

Commit

Permalink
Add failing test case for SPARQL 1.1 graph mgmt operations
Browse files Browse the repository at this point in the history
The test case currently fails and will drop <http://example.com/my-graph>
  • Loading branch information
QuarksToQuasars committed Apr 11, 2022
1 parent 940dcbe commit 05a334d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/SparqlGenerator-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,18 @@ describe('A SPARQL generator', function () {
'GROUP BY ?k';
expect(generatedQuery).toEqual(expectedQuery);
});

// TODO enable once fixed
// test currently fails, i.e. sparql.js drops <http://example.com/my-graph>
it.skip('should preserve source graph in sparql 1.1 update graph management operations', function () {
var parser = new SparqlParser();
var parsedQuery = parser.parse('ADD <http://example.com/my-graph> TO <http://example.com/your-graph>');
var generator = new SparqlGenerator();
var generatedQuery = generator.stringify(parsedQuery);
var expectedQuery =
'ADD <http://example.com/my-graph> TO <http://example.com/your-graph>';
expect(generatedQuery).toEqual(expectedQuery);
});
});

function testQueries(directory, settings) {
Expand Down

0 comments on commit 05a334d

Please sign in to comment.