Skip to content

Commit

Permalink
Fix SPARQL qt:graphData not loading into named graph
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Apr 10, 2019
1 parent 9881576 commit 75ee246
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/testcase/sparql/TestCaseQueryEvaluation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export class TestCaseQueryEvaluationHandler implements ITestCaseHandler<TestCase
dataGraph = namedNode(graphData.property.label.value);
} else {
dataUri = action.property.graphData.value;
dataGraph = namedNode(action.property.graphData.value);
}
}

Expand Down
4 changes: 2 additions & 2 deletions test/testcase/sparql/TestCaseQueryEvaluation-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,9 @@ describe('TestCaseQueryEvaluationHandler', () => {
expect(testCase.queryString).toEqual(`OK`);
expect(testCase.queryData).toEqualRdfQuadArray([
quad('http://www.w3.org/TR/rdf-syntax-grammar', 'http://purl.org/dc/elements/1.1/title',
'"RDF1.1 XML Syntax 1"'),
'"RDF1.1 XML Syntax 1"', 'RESULT.ttl'),
quad('http://www.w3.org/TR/rdf-syntax-grammar', 'http://purl.org/dc/elements/1.1/title',
'"RDF1.1 XML Syntax 2"'),
'"RDF1.1 XML Syntax 2"', 'RESULT.ttl'),
]);
expect(testCase.queryResult.type).toEqual('quads');
expect(testCase.queryResult.value).toBeRdfIsomorphic([
Expand Down

0 comments on commit 75ee246

Please sign in to comment.