Package | Description |
---|---|
org.eclipse.rdf4j.query |
Interfaces and classes for handling queries and query results.
|
org.eclipse.rdf4j.query.resultio | |
org.eclipse.rdf4j.rio |
Rio: The rdf4j parser/writer API.
|
Modifier and Type | Method and Description |
---|---|
static 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. |
Modifier and Type | Method and Description |
---|---|
static void |
QueryResultIO.writeGraph(GraphQueryResult gqr,
RDFFormat format,
OutputStream out)
Writes a graph query result document in a specific RDF format to an output stream.
|
Modifier and Type | Method and Description |
---|---|
static java.util.function.Supplier<UnsupportedRDFormatException> |
Rio.unsupportedFormat(RDFFormat unsupportedFormat)
Helper method to use to create a lambda for
Optional.orElseThrow(Supplier) to indicate a format is
unsupported. |
static java.util.function.Supplier<UnsupportedRDFormatException> |
Rio.unsupportedFormat(String unsupportedFormat)
Helper method to use to create a lambda for
Optional.orElseThrow(Supplier) to indicate a format is
unsupported. |
Modifier and Type | Method and Description |
---|---|
static RDFParser |
Rio.createParser(RDFFormat format)
Convenience methods for creating RDFParser objects.This method uses the registry returned by
RDFParserRegistry.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 by
RDFWriterRegistry.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 by
RDFWriterRegistry.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 by
RDFWriterRegistry.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 by
RDFWriterRegistry.getInstance() to get a factory for the specified format and uses this factory to create
the appropriate writer. |
static void |
Rio.main(String[] args) |
static Model |
Rio.parse(InputStream in,
String baseURI,
RDFFormat dataFormat,
ParserConfig settings,
ValueFactory valueFactory,
ParseErrorListener errors,
Resource... contexts)
Adds RDF data from an
InputStream to a Model , optionally to one or more named contexts. |
static Model |
Rio.parse(InputStream in,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
Adds RDF data from an
InputStream to a Model , optionally to one or more named contexts. |
static Model |
Rio.parse(Reader reader,
String baseURI,
RDFFormat dataFormat,
ParserConfig settings,
ValueFactory valueFactory,
ParseErrorListener errors,
Resource... contexts)
|
static Model |
Rio.parse(Reader reader,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
|
static void |
Rio.write(Iterable<Statement> model,
OutputStream output,
String baseURI,
RDFFormat dataFormat)
Writes the given statements to the given
OutputStream 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 given
OutputStream in the given format. |
static void |
Rio.write(Iterable<Statement> model,
Writer output,
String baseURI,
RDFFormat dataFormat)
Writes the given statements to the given
Writer 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 given
Writer in the given format. |
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.