Uses of Class
org.eclipse.rdf4j.rio.UnsupportedRDFormatException
Package
Description
Interfaces and classes for handling queries and query results.
Rio: The RDF4J parser/writer API.
-
Uses of UnsupportedRDFormatException in org.eclipse.rdf4j.query
Modifier and TypeMethodDescriptionstatic GraphQueryResult
QueryResults.parseGraphBackground
(InputStream in, String baseURI, RDFFormat format) Parses an RDF document and returns it as a GraphQueryResult object, with parsing done on a separate thread in the background.
IMPORTANT: As this method will spawn a new thread in the background, it is vitally important that the resulting GraphQueryResult be closed consistently when it is no longer required, to prevent resource leaks. -
Uses of UnsupportedRDFormatException in org.eclipse.rdf4j.query.resultio
Modifier and TypeMethodDescriptionstatic void
QueryResultIO.writeGraph
(GraphQueryResult gqr, RDFFormat format, OutputStream out) Writes a graph query result document in a specific RDF format to an output stream. -
Uses of UnsupportedRDFormatException in org.eclipse.rdf4j.rio
Modifier and TypeMethodDescriptionstatic Supplier
<UnsupportedRDFormatException> Rio.unsupportedFormat
(String unsupportedFormat) Helper method to use to create a lambda forOptional.orElseThrow(Supplier)
to indicate a format is unsupported.static Supplier
<UnsupportedRDFormatException> Rio.unsupportedFormat
(RDFFormat unsupportedFormat) Helper method to use to create a lambda forOptional.orElseThrow(Supplier)
to indicate a format is unsupported.Modifier and TypeMethodDescriptionstatic RDFParser
Rio.createParser
(RDFFormat format) Convenience methods for creating RDFParser objects.This method uses the registry returned byRDFParserRegistry.getInstance()
to get a factory for the specified format and uses this factory to create the appropriate parser.static RDFParser
Rio.createParser
(RDFFormat format, ValueFactory valueFactory) Convenience methods for creating RDFParser objects that use the specified ValueFactory to create RDF model objects.static RDFWriter
Rio.createWriter
(RDFFormat format, OutputStream out) Convenience methods for creating RDFWriter objects.This method uses the registry returned byRDFWriterRegistry.getInstance()
to get a factory for the specified format and uses this factory to create the appropriate writer.static RDFWriter
Rio.createWriter
(RDFFormat format, OutputStream out, String baseURI) Convenience methods for creating RDFWriter objects.This method uses the registry returned byRDFWriterRegistry.getInstance()
to get a factory for the specified format and uses this factory to create the appropriate writer.static RDFWriter
Rio.createWriter
(RDFFormat format, Writer writer) Convenience methods for creating RDFWriter objects.This method uses the registry returned byRDFWriterRegistry.getInstance()
to get a factory for the specified format and uses this factory to create the appropriate writer.static RDFWriter
Rio.createWriter
(RDFFormat format, Writer writer, String baseURI) Convenience methods for creating RDFWriter objects.This method uses the registry returned byRDFWriterRegistry.getInstance()
to get a factory for the specified format and uses this factory to create the appropriate writer.static void
static Model
Rio.parse
(InputStream in, String baseURI, RDFFormat dataFormat, Resource... contexts) Adds RDF data from anInputStream
to aModel
, optionally to one or more named contexts.static Model
Rio.parse
(InputStream in, String baseURI, RDFFormat dataFormat, ParserConfig settings, Resource... contexts) Adds RDF data from anInputStream
to aModel
, optionally to one or more named contexts.static Model
Rio.parse
(InputStream in, String baseURI, RDFFormat dataFormat, ParserConfig settings, ValueFactory valueFactory, ParseErrorListener errors, ModelFactory modelFactory, Resource... contexts) Adds RDF data from anInputStream
to aModel
, optionally to one or more named contexts.static Model
Rio.parse
(InputStream in, String baseURI, RDFFormat dataFormat, ParserConfig settings, ValueFactory valueFactory, ParseErrorListener errors, Resource... contexts) Adds RDF data from anInputStream
to aModel
, optionally to one or more named contexts.static Model
Rio.parse
(InputStream in, RDFFormat dataFormat, Resource... contexts) Adds RDF data from anInputStream
to aModel
, optionally to one or more named contexts.static Model
Rio.parse
(InputStream in, RDFFormat dataFormat, ParserConfig settings, Resource... contexts) Adds RDF data from anInputStream
to aModel
, optionally to one or more named contexts.static Model
static Model
Rio.parse
(Reader reader, String baseURI, RDFFormat dataFormat, ParserConfig settings, ValueFactory valueFactory, ParseErrorListener errors, ModelFactory modelFactory, Resource... contexts) static Model
Rio.parse
(Reader reader, String baseURI, RDFFormat dataFormat, ParserConfig settings, ValueFactory valueFactory, ParseErrorListener errors, Resource... contexts) static Model
static Model
Rio.parse
(Reader reader, RDFFormat dataFormat, ParserConfig settings, Resource... contexts) static void
Writes the given statements to the givenOutputStream
in the given format.static void
Rio.write
(Iterable<Statement> model, OutputStream output, String baseURI, RDFFormat dataFormat, WriterConfig settings) Writes the given statements to the givenOutputStream
in the given format.static void
Writes the given statements to the givenWriter
in the given format.static void
Rio.write
(Iterable<Statement> model, Writer output, String baseURI, RDFFormat dataFormat, WriterConfig settings) Writes the given statements to the givenWriter
in the given format.