@Test public void Create() throws IOException { UpdateClause create = parse("CREATE GRAPH <http: assertEquals(UpdateClause.Type.CREATE, create.getType()); assertFalse(create.isSilent()); }
private UpdateClause create() throws IOException { String token = collectWhileIn(SILENT); skipWhitespace(); skipWhileIn(GRAPH); skipWhitespace(); UID uid = uri(); return new UpdateClause(prefixes, UpdateClause.Type.CREATE, uid, !token.isEmpty()); }
SPARQLUpdateParser { private UpdateClause create() throws IOException { String token = collectWhileIn(SILENT); skipWhitespace(); skipWhileIn(GRAPH); skipWhitespace(); UID uid = uri(); return new UpdateClause(prefixes, UpdateClause.Type.CREATE, uid, !token.isEmpty()); } }
SPARQLUpdateParser { private UpdateClause create() throws IOException { String token = collectWhileIn(SILENT); skipWhitespace(); skipWhileIn(GRAPH); skipWhitespace(); UID uid = uri(); return new UpdateClause(prefixes, UpdateClause.Type.CREATE, uid, !token.isEmpty()); }  }
SPARQLUpdateParser { private UpdateClause create() throws IOException { String token = collectWhileIn(SILENT); skipWhitespace(); skipWhileIn(GRAPH); skipWhitespace(); UID uid = uri(); return new UpdateClause(prefixes, UpdateClause.Type.CREATE, uid, !token.isEmpty()); }  UpdateClause parse(String str); UpdateClause parse(InputStream in); UpdateClause parse(InputStream in, String charset); String collectWhileIn(CharSet... charSets); String collectWhileNotIn(CharSet... charSets); @Override String toString(); }
SPARQLUpdateParser { private UpdateClause create() throws IOException { String token = collectWhileIn(SILENT); skipWhitespace(); skipWhileIn(GRAPH); skipWhitespace(); UID uid = uri(); return new UpdateClause(prefixes, UpdateClause.Type.CREATE, uid, !token.isEmpty()); }  UpdateClause parse(String str); UpdateClause parse(InputStream in); UpdateClause parse(InputStream in, String charset); String collectWhileIn(CharSet... charSets); String collectWhileNotIn(CharSet... charSets); @Override String toString();  }