/** Read RDF data. * Use {@code RDFParser.source(uri).parse(sink)} * @param sink Destination for the RDF read. * @param uri URI to read from (includes file: and a plain file name). */ //@deprecated Use {@code RDFParser.source(uri).parse(sink)} //@Deprecated public static void parse(StreamRDF sink, String uri) { parse(sink, uri, defaultLang(uri)) ; }
/** Read triples into a Model from the given location, with some parameters for the reader * @see #read(Graph,String,String,Lang,Context) * @param graph Destination for the RDF read * @param uri URI to read from (includes file: and a plain file name). * @param context Content object to control reading process. * @throws RiotNotFoundException if the location is not found - the graph is unchanged. * @deprecated To be removed. Use {@code RDFParser.create().context(context)...} */ @Deprecated public static void read(Graph graph, String uri, Context context) { read(graph, uri, defaultLang(uri), context) ; }
/** Read quads or triples into a Dataset from the given location, with hint of language. * @see #read(DatasetGraph, String, String, Lang, Context) * @param dataset Destination * @param uri URI to read from (includes file: and a plain file name). */ public static void read(DatasetGraph dataset, String uri) { read(dataset, uri, defaultLang(uri)) ; }
/** Read triples into a Model from the given location. * The syntax is determined from input source URI (content negotiation or extension). * @param graph Destination for the RDF read. * @param uri URI to read from (includes file: and a plain file name). * @throws RiotNotFoundException if the location is not found - the graph is unchanged. * @see #read(Graph,String,Lang,Context) */ public static void read(Graph graph, String uri) { read(graph, uri, defaultBase(uri), defaultLang(uri), (Context)null) ; }