/** * <pre> * clear graphs * </pre> */ public void test_clear_graphs() throws MalformedQueryException, TokenMgrError, ParseException { //DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME) final String sparql = "clear graphs"; final UpdateRoot expected = new UpdateRoot(); { final ClearGraph op = new ClearGraph(); op.setAllGraphs(true); expected.addChild(op); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * create solutions %solutionSet * </pre> */ public void test_create_solutions() throws MalformedQueryException, TokenMgrError, ParseException { //CREATE ( SILENT )? SOLUTIONS SolutionSetName final String sparql = "create solutions %solutionSet"; final UpdateRoot expected = new UpdateRoot(); { final CreateGraph op = new CreateGraph(); expected.addChild(op); op.setTargetSolutionSet("%solutionSet"); assertTrue(op.isTargetSolutionSet()); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
+ "} }"; final IV dcDate = makeIV(valueFactory.createURI("http://purl.org/dc/elements/1.1/date")); final IV dateTime = makeIV(valueFactory.createLiteral("1970-01-01T00:00:00-02:00",XSD.DATETIME)); final IV bookstore = makeIV(valueFactory.createURI("http://example/bookStore")); "%cached_solution_set"); assertTrue(insertClause.isSolutions()); assertFalse(insertClause.isQuads()); final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual);
+ "} }"; final IV dcDate = makeIV(valueFactory.createURI("http://purl.org/dc/elements/1.1/date")); final IV dateTime = makeIV(valueFactory.createLiteral("1970-01-01T00:00:00-02:00",XSD.DATETIME)); final IV bookstore = makeIV(valueFactory.createURI("http://example/bookStore")); final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual);
+ "} }"; final IV dcDate = makeIV(valueFactory.createURI("http://purl.org/dc/elements/1.1/date")); final IV dateTime = makeIV(valueFactory.createLiteral("1970-01-01T00:00:00-02:00",XSD.DATETIME)); final IV bookstore = makeIV(valueFactory.createURI("http://example/bookStore")); "%cached_solution_set"); assertTrue(insertClause.isSolutions()); assertFalse(insertClause.isQuads()); final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual);
+ "} }"; final IV dcDate = makeIV(valueFactory.createURI("http://purl.org/dc/elements/1.1/date")); final IV dateTime = makeIV(valueFactory.createLiteral("1970-01-01T00:00:00-02:00",XSD.DATETIME)); final IV bookstore = makeIV(valueFactory.createURI("http://example/bookStore")); final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual);
/** * <pre> * drop solutions * </pre> */ public void test_drop_solutions() throws MalformedQueryException, TokenMgrError, ParseException { //DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME) final String sparql = "drop solutions"; final UpdateRoot expected = new UpdateRoot(); { final DropGraph op = new DropGraph(); op.setAllSolutionSets(true); expected.addChild(op); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * create solutions %solutionSet * </pre> */ public void test_create_solutions() throws MalformedQueryException, TokenMgrError, ParseException { //CREATE ( SILENT )? SOLUTIONS SolutionSetName final String sparql = "create solutions %solutionSet"; final UpdateRoot expected = new UpdateRoot(); { final CreateGraph op = new CreateGraph(); expected.addChild(op); op.setTargetSolutionSet("%solutionSet"); assertTrue(op.isTargetSolutionSet()); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * clear solutions %solutionSet * </pre> */ public void test_clear_solutions_namedSet() throws MalformedQueryException, TokenMgrError, ParseException { // DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME) final String sparql = "clear solutions %solutionSet"; final UpdateRoot expected = new UpdateRoot(); { final ClearGraph op = new ClearGraph(); expected.addChild(op); op.setTargetSolutionSet("%solutionSet"); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * drop graphs * </pre> */ public void test_drop_graphs() throws MalformedQueryException, TokenMgrError, ParseException { //DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME) final String sparql = "drop graphs"; final UpdateRoot expected = new UpdateRoot(); { final DropGraph op = new DropGraph(); op.setAllGraphs(true); expected.addChild(op); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * drop solutions %solutionSet * </pre> */ public void test_drop_solutions_namedSet() throws MalformedQueryException, TokenMgrError, ParseException { // DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME) final String sparql = "drop solutions %solutionSet"; final UpdateRoot expected = new UpdateRoot(); { final DropGraph op = new DropGraph(); expected.addChild(op); op.setTargetSolutionSet("%solutionSet"); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * clear solutions * </pre> */ public void test_clear_solutions() throws MalformedQueryException, TokenMgrError, ParseException { //DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME)) final String sparql = "clear solutions"; final UpdateRoot expected = new UpdateRoot(); { final ClearGraph op = new ClearGraph(); op.setAllSolutionSets(true); expected.addChild(op); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * clear silent solutions %solutionSet * </pre> */ public void test_clear_solutions_namedSet_silent() throws MalformedQueryException, TokenMgrError, ParseException { //DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME) final String sparql = "clear silent solutions %solutionSet"; final UpdateRoot expected = new UpdateRoot(); { final ClearGraph op = new ClearGraph(); expected.addChild(op); op.setTargetSolutionSet("%solutionSet"); op.setSilent(true); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * drop silent solutions %solutionSet * </pre> */ public void test_drop_solutions_namedSet_silent() throws MalformedQueryException, TokenMgrError, ParseException { //DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME) final String sparql = "drop silent solutions %solutionSet"; final UpdateRoot expected = new UpdateRoot(); { final DropGraph op = new DropGraph(); expected.addChild(op); op.setTargetSolutionSet("%solutionSet"); op.setSilent(true); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * create silent solutions %solutionSet * </pre> */ public void test_create_solutions_silent() throws MalformedQueryException, TokenMgrError, ParseException { //CREATE ( SILENT )? SOLUTIONS SolutionSetName final String sparql = "create silent solutions %solutionSet"; final UpdateRoot expected = new UpdateRoot(); { final CreateGraph op = new CreateGraph(); expected.addChild(op); op.setTargetSolutionSet("%solutionSet"); op.setSilent(true); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * drop solutions * </pre> */ public void test_drop_solutions() throws MalformedQueryException, TokenMgrError, ParseException { //DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME) final String sparql = "drop solutions"; final UpdateRoot expected = new UpdateRoot(); { final DropGraph op = new DropGraph(); op.setAllSolutionSets(true); expected.addChild(op); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * drop solutions %solutionSet * </pre> */ public void test_drop_solutions_namedSet() throws MalformedQueryException, TokenMgrError, ParseException { // DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME) final String sparql = "drop solutions %solutionSet"; final UpdateRoot expected = new UpdateRoot(); { final DropGraph op = new DropGraph(); expected.addChild(op); op.setTargetSolutionSet("%solutionSet"); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * clear solutions * </pre> */ public void test_clear_solutions() throws MalformedQueryException, TokenMgrError, ParseException { //DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME)) final String sparql = "clear solutions"; final UpdateRoot expected = new UpdateRoot(); { final ClearGraph op = new ClearGraph(); op.setAllSolutionSets(true); expected.addChild(op); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * clear graphs * </pre> */ public void test_clear_graphs() throws MalformedQueryException, TokenMgrError, ParseException { //DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME) final String sparql = "clear graphs"; final UpdateRoot expected = new UpdateRoot(); { final ClearGraph op = new ClearGraph(); op.setAllGraphs(true); expected.addChild(op); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }
/** * <pre> * drop graphs * </pre> */ public void test_drop_graphs() throws MalformedQueryException, TokenMgrError, ParseException { //DROP ( SILENT )? (GRAPH IRIref | DEFAULT | NAMED | ALL | GRAPHS | SOLUTIONS | SOLUTIONS %VARNAME) final String sparql = "drop graphs"; final UpdateRoot expected = new UpdateRoot(); { final DropGraph op = new DropGraph(); op.setAllGraphs(true); expected.addChild(op); } final UpdateRoot actual = parseUpdate(sparql, baseURI); assertSameAST(sparql, expected, actual); }