/** Read triples into a Model from the given location, with hint of language and 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 hintLang Hint for the syntax * @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, Lang hintLang, Context context) { read(graph, uri, defaultBase(uri), hintLang, context) ; }
/** Read triples into a Model from the given location, with hint of language and the with some parameters for the reader * @see #read(Model,String,String,Lang,Context) * @param model Destination for the RDF read * @param uri URI to read from (includes file: and a plain file name). * @param hintLang Hint for the syntax * @param context Content object to control reading process. * @throws RiotNotFoundException if the location is not found - the model is unchanged. * @deprecated To be removed. Use {@code RDFParser.create().context(context)...} */ @Deprecated public static void read(Model model, String uri, Lang hintLang, Context context) { read(model, uri, defaultBase(uri), hintLang, context) ; }
/** Read RDF data. * @param sink Destination for the RDF read. * @param uri URI to read from (includes file: and a plain file name). * @param hintLang Hint for the syntax * @param context Content object to control reading process. * @deprecated To be removed. Use {@code RDFParser.source(uri).lang(hintLang).context(context).parse(sink)} */ @Deprecated public static void parse(StreamRDF sink, String uri, Lang hintLang, Context context) { parse(sink, uri, defaultBase(uri), hintLang, context) ; }
/** Read RDF data. * Use {@code RDFParser.source(in).lang(lang).parse(sink)} * @param sink Destination for the RDF read. * @param in Bytes to read. * @param lang Syntax for the stream. */ //@deprecated To be removed. Use {@code RDFParser.source(in).lang(lang).parse(sink)} //@Deprecated public static void parse(StreamRDF sink, InputStream in, Lang lang) { parseFromInputStream(sink, in, defaultBase(), lang, (Context)null) ; }
/** Read RDF data. * @param sink Destination for the RDF read. * @param in StringReader * @param lang Syntax for the stream. * @deprecated To be removed. Use {@code RDFParser.create().source(in).lang(hintLang)...} */ public static void parse(StreamRDF sink, StringReader in, Lang lang) { parse(sink, in, defaultBase(), lang, (Context)null) ; }
/** Read RDF data. * @param sink Destination for the RDF read. * @param in Bytes to read. This must include the content type. * @deprecated To be removed. Use an {@code InputStream} and {@code RDFParser.source(in).lang(hintLang).parse(sink)} */ @Deprecated public static void parse(StreamRDF sink, TypedInputStream in) { parse(sink, in, defaultBase()) ; }
/** Read triples into a Model with bytes from an InputStream. * A base URI and a syntax can be provided. * The base URI defaults to "no base" in which case the data should have no relative URIs. * The lang gives the syntax of the stream. * @param graph Destination for the RDF read. * @param in InputStream * @param lang Language syntax */ public static void read(Graph graph, InputStream in, Lang lang) { read(graph, in, defaultBase(), lang) ; }
/** Read quads or triples into a Dataset from the given location. * @see #read(DatasetGraph, String, String, Lang, Context) * @param dataset Destination * @param uri URI to read from (includes file: and a plain file name). * @param hintLang Language syntax * @deprecated To be removed. Use {@code RDFParser.create().context(context)...} */ @Deprecated public static void read(DatasetGraph dataset, String uri, Lang hintLang, Context context) { read(dataset, uri, defaultBase(uri), hintLang, context) ; }
/** Read quads or triples into a dataset with bytes from an input stream. * @param dataset Destination * @param in InputStream * @param lang Language syntax */ public static void read(DatasetGraph dataset, InputStream in, Lang lang) { read(dataset, in, defaultBase(), lang) ; }
/** Read RDF data. * @param sink Destination for the RDF read. * @param in Reader * @param lang Syntax for the stream. * @deprecated To be removed. An {@code InputStream} or {@code StringReader} is preferable. Use {@code RDFParser.create().source(in).lang(hintLang).parse()} */ @Deprecated public static void parse(StreamRDF sink, Reader in, Lang lang) { parse(sink, in, defaultBase(), lang, (Context)null) ; }
/** Read quads or triples into a Dataset from the given location. * @see #read(Dataset, String, String, Lang, Context) * @param dataset Destination * @param uri URI to read from (includes file: and a plain file name). * @param base Base URI (defaults to uri). * @param hintLang Language syntax * @param context Context for the reader * @throws RiotNotFoundException if the location is not found - the dataset is unchanged. * Throws parse errors depending on the language and reader; the dataset may be partially updated. * @deprecated To be removed. Use {@code RDFParser.create().context(context)...} */ @Deprecated public static void read(Dataset dataset, String uri, String base, Lang hintLang, Context context) { read(dataset.asDatasetGraph(), uri, defaultBase(uri), hintLang, context) ; }
/** 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) ; }