/** * 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 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 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); }
.errorHandler(errorHandler) .resolveURIs(false) .build(); RiotException exception = null ; try {
.errorHandler(errorHandler) .resolveURIs(false) .build(); RiotException exception = null ; try {
/** 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); }
.source(input.getInputStream()) .forceLang(lang) .build(); if ( loadBuffered ) { Graph g = GraphFactory.createGraphMem();
RDFParser parser = builder.build(); try { parser.parse(sink);
RDFParser parser = builder.build(); try { parser.parse(sink);