/** * Parse the source, sending the results to a {@link Dataset}. * This method is equivalent to {@code parse(dataset.asDatasetGraph())}. */ public void parse(Dataset dataset) { parse(dataset.asDatasetGraph()); }
/** * Parse the source, sending the results to a {@link DatasetGraph}. * Short form for {@code build().parse(dataset)} * which sends triples and prefixes to the {@code DatasetGraph}. * * @param dataset */ public void parse(DatasetGraph dataset) { build().parse(dataset); }
/** * Parse the source, sending the results to a {@link Graph}. The source must be for * triples; any quads are discarded. */ public void parse(Graph graph) { parse(StreamRDFLib.graph(graph)); }
/** * Parse the source, sending the results to a {@link Model}. * The source must be for triples; any quads are discarded. * This method is equivalent to {@code parse(model.getGraph())}. */ public void parse(Model model) { parse(model.getGraph()); }
/** * Parse the source, sending the results to a {@link StreamRDF}. * Short form for {@code build().parse(stream)}. * @param stream */ public void parse(StreamRDF stream) { build().parse(stream); }
/** * Parse the source, sending the results to a {@link Model}. * The source must be for triples; any quads are discarded. * Short form for {@code build().parse(model)} * which sends triples and prefixes to the {@code Model}. * * @param model */ public void parse(Model model) { build().parse(model); }
/** * Parse the source, sending the results to a {@link Dataset}. * Short form for {@code build().parse(dataset)} * which sends triples and prefixes to the {@code Dataset}. * * @param dataset */ public void parse(Dataset dataset) { build().parse(dataset); }
/** * Parse the source, sending the results to a {@link DatasetGraph}. */ public void parse(DatasetGraph dataset) { parse(StreamRDFLib.dataset(dataset)); }
/** * Parse the source, sending the results to a {@link Graph}. * The source must be for triples; any quads are discarded. * Short form for {@code build().parse(graph)} * which sends triples and prefixes to the {@code Graph}. * * @param graph */ public void parse(Graph graph) { build().parse(graph); }
try { output.start(); parser.parse(output); output.finish(); output1.flush();
try { output.start(); parser.parse(output); output.finish(); output1.flush();
/** Parse, forcing the language.*/ public static void parse(DatasetGraph dataset, String uri, String base, Lang lang) { RDFParser.create().forceLang(lang).source(uri).base(base).build().parse(dataset); }
public static void parse(Graph graph, String uri, String base, Lang lang) { RDFParser.create().forceLang(lang).source(uri).base(base).build().parse(graph); }
RDFParser parser = builder.build(); try { parser.parse(sink); successful = true; } catch (RiotException ex) {
RDFParser parser = builder.build(); try { parser.parse(sink); successful = true; } catch (RiotException ex) {