RDFParser { public void parse(Graph graph) { parse(StreamRDFLib.graph(graph)); } RDFParser(String uri, Path path, String content, InputStream inputStream, Reader javaReader, StreamManager streamManager, 
                            HttpClient httpClient, Lang hintLang, Lang forceLang, String baseUri, boolean strict, Optional<Boolean> checking, 
                            boolean canonicalLexicalValues, LangTagForm langTagForm,  
                            boolean resolveURIs, IRIResolver resolver, FactoryRDF factory,
                            ErrorHandler errorHandler, Context context); static RDFParserBuilder create(); static RDFParserBuilder source(Path path); static RDFParserBuilder source(String uriOrFile); static RDFParserBuilder fromString(String string); static RDFParserBuilder source(InputStream input); void parse(Graph graph); void parse(Model model); void parse(DatasetGraph dataset); void parse(Dataset dataset); void parse(StreamRDF destination);  }
@Test public void labels_01() { Graph graph = GraphFactory.createGraphMem(); builder() .labelToNode(LabelToNode.createUseLabelAsGiven()) .parse(graph); assertEquals(1, graph.size()); StringWriter sw = new StringWriter(); RDFDataMgr.write(sw, graph, Lang.NT); String s = sw.toString(); assertTrue(s.contains("_:Bb")); }
@Test public void factory_01() { TestingFactoryRDF f = new TestingFactoryRDF(); Graph graph = GraphFactory.createGraphMem(); builder() .factory(f) .parse(graph); assertEquals(1, graph.size()); assertNotEquals(0, f.counter); }