Uses of Class
org.eclipse.rdf4j.rio.RDFFormat
Package
Description
Interfaces and classes for handling queries and query results.
The rdf4j SPARQL 1.1 parser.
The Repository API: the main API for accessing rdf databases and SPARQL endpoints.
Abstract base classes and wrappers for the main Repository API interfaces.
A repository wrapper with convenience functions for handling contexts.
A repository that serves as a proxy client for a remote repository on an RDF4J Server.
A
Repository
that serves as a SPARQL endpoint client.Helper classes for working with Repositories.
Rio: The RDF4J parser/writer API.
Parser/writer for the RDF4J binary RDF format.
Parser/writer for the HDT v1.0 format.
Parser/writer for the JSON-LD 1.1 format.
Parser/writer for the JSON-LD 1.0 format.
Writer for the Notation-3 (N3) format.
Parser/writer for the N-Quads format.
Parser/writer for the N-Triples format.
Parser/writer for the RDF/JSON format.
Parser/writer for the RDF/XML format.
Pretty-printing for the RDF/XML format.
Parser/writer for the TriG format.
Parser/writer for the TriX format.
Parser/writer for the Turtle format.
Rdf4j-Spring OperationLog
Rdf4j-Spring ResultCache
Rdf4J-Spring Tx
-
Uses of RDFFormat in org.eclipse.rdf4j.console.util
-
Uses of RDFFormat in org.eclipse.rdf4j.http.client
Modifier and TypeMethodDescriptionSPARQLProtocolSession.getPreferredRDFFormat()
Gets the preferredRDFFormat
for encoding RDF documents.Modifier and TypeMethodDescriptionvoid
RDF4JProtocolSession.addData
(InputStream contents, String baseURI, RDFFormat dataFormat, Resource... contexts) void
RDF4JProtocolSession.removeData
(InputStream contents, String baseURI, RDFFormat dataFormat, Resource... contexts) void
SPARQLProtocolSession.setPreferredRDFFormat
(RDFFormat format) Sets the preferred format for encoding RDF documents.protected void
RDF4JProtocolSession.upload
(InputStream contents, String baseURI, RDFFormat dataFormat, boolean overwrite, boolean preserveNodeIds, Protocol.Action action, Resource... contexts) void
RDF4JProtocolSession.upload
(InputStream contents, String baseURI, RDFFormat dataFormat, boolean overwrite, boolean preserveNodeIds, Resource... contexts) protected void
RDF4JProtocolSession.upload
(Reader contents, String baseURI, RDFFormat dataFormat, boolean overwrite, boolean preserveNodeIds, Protocol.Action action, Resource... contexts) void
RDF4JProtocolSession.upload
(Reader contents, String baseURI, RDFFormat dataFormat, boolean overwrite, boolean preserveNodeIds, Resource... contexts) -
Uses of RDFFormat in org.eclipse.rdf4j.http.client.shacl
ModifierConstructorDescriptionRemoteShaclValidationException
(StringReader stringReader, String s, RDFFormat format) -
Uses of RDFFormat 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 RDFFormat in org.eclipse.rdf4j.query.parser.sparql
-
Uses of RDFFormat 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 RDFFormat in org.eclipse.rdf4j.repository
Modifier and TypeMethodDescriptionvoid
Adds RDF data from the specified file to a specific contexts in the repository.default void
Adds RDF data from the specified file to a specific contexts in the repository.void
RepositoryConnection.add
(InputStream in, String baseURI, RDFFormat dataFormat, Resource... contexts) Adds RDF data from an InputStream to the repository, optionally to one or more named contexts.default void
RepositoryConnection.add
(InputStream in, RDFFormat dataFormat, Resource... contexts) Adds RDF data from an InputStream to the repository, optionally to one or more named contexts.void
Adds RDF data from a Reader to the repository, optionally to one or more named contexts.default void
Adds RDF data from a Reader to the repository, optionally to one or more named contexts.void
Adds the RDF data that can be found at the specified URL to the repository, optionally to one or more named contexts.default void
Adds the RDF data that can be found at the specified URL to the repository, optionally to one or more named contexts. -
Uses of RDFFormat in org.eclipse.rdf4j.repository.base
Modifier and TypeMethodDescriptionvoid
AbstractRepositoryConnection.add
(File file, String baseURI, RDFFormat dataFormat, Resource... contexts) void
AbstractRepositoryConnection.add
(InputStream in, String baseURI, RDFFormat dataFormat, Resource... contexts) void
AbstractRepositoryConnection.add
(Reader reader, String baseURI, RDFFormat dataFormat, Resource... contexts) void
AbstractRepositoryConnection.add
(URL url, String baseURI, RDFFormat dataFormat, Resource... contexts) void
RepositoryConnectionWrapper.add
(File file, String baseURI, RDFFormat dataFormat, Resource... contexts) void
RepositoryConnectionWrapper.add
(InputStream in, String baseURI, RDFFormat dataFormat, Resource... contexts) void
RepositoryConnectionWrapper.add
(Reader reader, String baseURI, RDFFormat dataFormat, Resource... contexts) void
RepositoryConnectionWrapper.add
(URL url, String baseURI, RDFFormat dataFormat, Resource... contexts) -
Uses of RDFFormat in org.eclipse.rdf4j.repository.contextaware
Modifier and TypeMethodDescriptionvoid
void
void
ContextAwareConnection.add
(InputStream in, String baseURI, RDFFormat dataFormat, Resource... contexts) void
ContextAwareConnection.add
(InputStream in, RDFFormat dataFormat, Resource... contexts) void
ContextAwareConnection.add
(Reader reader, String baseURI, RDFFormat dataFormat, Resource... contexts) void
void
void
-
Uses of RDFFormat in org.eclipse.rdf4j.repository.http
Modifier and TypeMethodDescriptionHTTPRepository.getPreferredRDFFormat()
Indicates the current preferredRDFFormat
.Modifier and TypeMethodDescriptionvoid
HTTPRepository.setPreferredRDFFormat
(RDFFormat format) Sets the preferred serialization format for RDF to the suppliedRDFFormat
, overriding theSPARQLProtocolSession
's default preference. -
Uses of RDFFormat in org.eclipse.rdf4j.repository.sparql
Modifier and TypeMethodDescriptionvoid
void
SPARQLConnection.add
(InputStream in, String baseURI, RDFFormat dataFormat, Resource... contexts) void
void
-
Uses of RDFFormat in org.eclipse.rdf4j.repository.util
Modifier and TypeMethodDescriptionvoid
RDFLoader.load
(File file, String baseURI, RDFFormat dataFormat, RDFHandler rdfHandler) Parses RDF data from the specified file to the given RDFHandler.void
RDFLoader.load
(InputStream in, String baseURI, RDFFormat dataFormat, RDFHandler rdfHandler) Parses RDF data from an InputStream to the RDFHandler.void
RDFLoader.load
(Reader reader, String baseURI, RDFFormat dataFormat, RDFHandler rdfHandler) Parses RDF data from a Reader to the RDFHandler.void
RDFLoader.load
(URL url, String baseURI, RDFFormat dataFormat, RDFHandler rdfHandler) Parses the RDF data that can be found at the specified URL to the RDFHandler. -
Uses of RDFFormat in org.eclipse.rdf4j.rio
Modifier and TypeFieldDescriptionstatic final RDFFormat
RDFFormat.BINARY
A binary RDF format.static final RDFFormat
RDFFormat.HDT
The HDT file format, an RDF serialization format.static final RDFFormat
RDFFormat.JSONLD
The JSON-LD file format, an RDF serialization format that supports recording of named graphs.static final RDFFormat
RDFFormat.N3
The N3/Notation3 file format.static final RDFFormat
RDFFormat.NDJSONLD
The NDJSON-LD is a Newline Delimited JSON-LD format.static final RDFFormat
RDFFormat.NQUADS
The N-Quads file format, an RDF serialization format that supports recording of named graphs.static final RDFFormat
RDFFormat.NTRIPLES
The N-Triples file format.static final RDFFormat
RDFFormat.RDFA
The RDFa file format, an RDF serialization format.static final RDFFormat
RDFFormat.RDFJSON
The RDF/JSON file format, an RDF serialization format that supports recording of named graphs.static final RDFFormat
RDFFormat.RDFXML
The RDF/XML file format.static final RDFFormat
RDFFormat.TRIG
The TriG file format, a Turtle-based RDF serialization format that supports recording of named graphs.static final RDFFormat
RDFFormat.TRIGSTAR
The TriG-star file format, a TriG-based RDF serialization format that supports RDF-star triples.static final RDFFormat
RDFFormat.TRIX
The TriX file format, an XML-based RDF serialization format that supports recording of named graphs.static final RDFFormat
RDFFormat.TURTLE
The Turtle file format.static final RDFFormat
RDFFormat.TURTLESTAR
The Turtle-star file format, a Turtle-based RDF serialization format that supports RDF-star triples.Modifier and TypeMethodDescriptionprotected RDFFormat
RDFParserRegistry.getKey
(RDFParserFactory factory) protected RDFFormat
RDFWriterRegistry.getKey
(RDFWriterFactory factory) RDFParser.getRDFFormat()
Gets the RDF format that this parser can parse.RDFParserFactory.getRDFFormat()
Returns the RDF format for this factory.RDFWriter.getRDFFormat()
Gets the RDF format that this RDFWriter uses.RDFWriterFactory.getRDFFormat()
Returns the RDF format for this factory.Modifier and TypeMethodDescriptionRio.getParserFormatForFileName
(String fileName) Tries to match the extension of a file name against the list of RDF formats that can be parsed.Rio.getParserFormatForMIMEType
(String mimeType) Tries to match a MIME type against the list of RDF formats that can be parsed.Rio.getWriterFormatForFileName
(String fileName) Tries to match the extension of a file name against the list of RDF formats that can be written.Rio.getWriterFormatForMIMEType
(String mimeType) Tries to match a MIME type against the list of RDF formats that can be written.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.RDFFormat.getAcceptParams
(Iterable<RDFFormat> rdfFormats, boolean requireContext, RDFFormat preferredFormat) Processes the supplied collection ofRDFFormat
s and assigns quality values to each based on whether context must be supported and whether the format is preferred.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 Supplier
<UnsupportedRDFormatException> Rio.unsupportedFormat
(RDFFormat unsupportedFormat) Helper method to use to create a lambda forOptional.orElseThrow(Supplier)
to indicate a format is unsupported.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
Rio.write
(Iterable<Statement> model, OutputStream output, RDFFormat dataFormat) Writes the given statements to the givenOutputStream
in the given format.static void
Rio.write
(Iterable<Statement> model, OutputStream output, 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.static void
Writes the given statements to the givenWriter
in the given format.static void
Writes the given statements to the givenWriter
in the given format.static void
Rio.write
(Statement st, OutputStream output, RDFFormat dataFormat) Writes the given statement to the givenOutputStream
in the given format.static void
Rio.write
(Statement st, OutputStream output, RDFFormat dataFormat, WriterConfig settings) Writes the given single statement to the givenOutputStream
in the given format.static void
Writes the given single statement to the givenWriter
in the given format.static void
Rio.write
(Statement statement, Writer output, RDFFormat dataFormat, WriterConfig settings) Writes the given single statement to the givenWriter
in the given format.Modifier and TypeMethodDescriptionRDFFormat.getAcceptParams
(Iterable<RDFFormat> rdfFormats, boolean requireContext, RDFFormat preferredFormat) Processes the supplied collection ofRDFFormat
s and assigns quality values to each based on whether context must be supported and whether the format is preferred. -
Uses of RDFFormat in org.eclipse.rdf4j.rio.binary
Modifier and TypeMethodDescriptionBinaryRDFParser.getRDFFormat()
BinaryRDFParserFactory.getRDFFormat()
ReturnsBINARY
.BinaryRDFWriter.getRDFFormat()
BinaryRDFWriterFactory.getRDFFormat()
ReturnsBINARY
. -
Uses of RDFFormat in org.eclipse.rdf4j.rio.hdt
Modifier and TypeMethodDescriptionHDTParser.getRDFFormat()
HDTParserFactory.getRDFFormat()
ReturnsHDT
. -
Uses of RDFFormat in org.eclipse.rdf4j.rio.jsonld
Modifier and TypeMethodDescriptionJSONLDParser.getRDFFormat()
JSONLDParserFactory.getRDFFormat()
JSONLDWriter.getRDFFormat()
JSONLDWriterFactory.getRDFFormat()
-
Uses of RDFFormat in org.eclipse.rdf4j.rio.jsonld.legacy
Modifier and TypeMethodDescriptionJSONLDParser.getRDFFormat()
JSONLDParserFactory.getRDFFormat()
JSONLDWriter.getRDFFormat()
JSONLDWriterFactory.getRDFFormat()
-
Uses of RDFFormat in org.eclipse.rdf4j.rio.n3
Modifier and TypeMethodDescriptionN3ParserFactory.getRDFFormat()
ReturnsN3
.N3Writer.getRDFFormat()
N3WriterFactory.getRDFFormat()
ReturnsN3
. -
Uses of RDFFormat in org.eclipse.rdf4j.rio.ndjsonld
Modifier and TypeMethodDescriptionNDJSONLDParser.getRDFFormat()
NDJSONLDParserFactory.getRDFFormat()
NDJSONLDWriter.getRDFFormat()
NDJSONLDWriterFactory.getRDFFormat()
-
Uses of RDFFormat in org.eclipse.rdf4j.rio.ndjsonld.legacy
Modifier and TypeMethodDescriptionNDJSONLDParser.getRDFFormat()
NDJSONLDParserFactory.getRDFFormat()
NDJSONLDWriter.getRDFFormat()
NDJSONLDWriterFactory.getRDFFormat()
-
Uses of RDFFormat in org.eclipse.rdf4j.rio.nquads
Modifier and TypeMethodDescriptionNQuadsParser.getRDFFormat()
NQuadsParserFactory.getRDFFormat()
ReturnsNQUADS
.NQuadsWriter.getRDFFormat()
NQuadsWriterFactory.getRDFFormat()
ReturnsNQUADS
. -
Uses of RDFFormat in org.eclipse.rdf4j.rio.ntriples
Modifier and TypeMethodDescriptionNTriplesParser.getRDFFormat()
NTriplesParserFactory.getRDFFormat()
ReturnsNTRIPLES
.NTriplesWriter.getRDFFormat()
NTriplesWriterFactory.getRDFFormat()
ReturnsNTRIPLES
. -
Uses of RDFFormat in org.eclipse.rdf4j.rio.rdfjson
Modifier and TypeMethodDescriptionRDFJSONParser.getRDFFormat()
RDFJSONParserFactory.getRDFFormat()
RDFJSONWriter.getRDFFormat()
RDFJSONWriterFactory.getRDFFormat()
ModifierConstructorDescriptionRDFJSONParser
(RDFFormat actualFormat) Creates a parser using the given RDFFormat to self identify.RDFJSONWriter
(OutputStream out, RDFFormat actualFormat) RDFJSONWriter
(Writer writer, RDFFormat actualFormat) -
Uses of RDFFormat in org.eclipse.rdf4j.rio.rdfxml
Modifier and TypeMethodDescriptionfinal RDFFormat
RDFXMLParser.getRDFFormat()
RDFXMLParserFactory.getRDFFormat()
Returns the RDF format for this factory.RDFXMLWriter.getRDFFormat()
RDFXMLWriterFactory.getRDFFormat()
ReturnsRDFXML
. -
Uses of RDFFormat in org.eclipse.rdf4j.rio.rdfxml.util
-
Uses of RDFFormat in org.eclipse.rdf4j.rio.trig
Modifier and TypeMethodDescriptionTriGParser.getRDFFormat()
TriGParserFactory.getRDFFormat()
ReturnsTRIG
.TriGWriter.getRDFFormat()
TriGWriterFactory.getRDFFormat()
ReturnsTRIG
. -
Uses of RDFFormat in org.eclipse.rdf4j.rio.trigstar
Modifier and TypeMethodDescriptionTriGStarParser.getRDFFormat()
TriGStarParserFactory.getRDFFormat()
ReturnsTRIGSTAR
.TriGStarWriter.getRDFFormat()
TriGStarWriterFactory.getRDFFormat()
ReturnsTRIGSTAR
. -
Uses of RDFFormat in org.eclipse.rdf4j.rio.trix
Modifier and TypeMethodDescriptionfinal RDFFormat
TriXParser.getRDFFormat()
TriXParserFactory.getRDFFormat()
ReturnsTRIX
.TriXWriter.getRDFFormat()
TriXWriterFactory.getRDFFormat()
ReturnsTRIX
. -
Uses of RDFFormat in org.eclipse.rdf4j.rio.turtle
Modifier and TypeMethodDescriptionTurtleParser.getRDFFormat()
TurtleParserFactory.getRDFFormat()
ReturnsTURTLE
.TurtleWriter.getRDFFormat()
TurtleWriterFactory.getRDFFormat()
ReturnsTURTLE
. -
Uses of RDFFormat in org.eclipse.rdf4j.rio.turtlestar
Modifier and TypeMethodDescriptionTurtleStarParser.getRDFFormat()
TurtleStarParserFactory.getRDFFormat()
ReturnsTURTLESTAR
.TurtleStarWriter.getRDFFormat()
TurtleStarWriterFactory.getRDFFormat()
ReturnsTURTLESTAR
. -
Uses of RDFFormat in org.eclipse.rdf4j.spring.operationlog
Modifier and TypeMethodDescriptionvoid
LoggingRepositoryConnection.add
(File file, String baseURI, RDFFormat dataFormat, Resource... contexts) void
LoggingRepositoryConnection.add
(InputStream in, String baseURI, RDFFormat dataFormat, Resource... contexts) void
LoggingRepositoryConnection.add
(Reader reader, String baseURI, RDFFormat dataFormat, Resource... contexts) void
LoggingRepositoryConnection.add
(URL url, String baseURI, RDFFormat dataFormat, Resource... contexts) -
Uses of RDFFormat in org.eclipse.rdf4j.spring.resultcache
Modifier and TypeMethodDescriptionvoid
CachingRepositoryConnection.add
(File file, String baseURI, RDFFormat dataFormat, Resource... contexts) void
CachingRepositoryConnection.add
(InputStream in, String baseURI, RDFFormat dataFormat, Resource... contexts) void
CachingRepositoryConnection.add
(Reader reader, String baseURI, RDFFormat dataFormat, Resource... contexts) void
CachingRepositoryConnection.add
(URL url, String baseURI, RDFFormat dataFormat, Resource... contexts) -
Uses of RDFFormat in org.eclipse.rdf4j.spring.tx
Modifier and TypeMethodDescriptionvoid
TransactionalRepositoryConnection.add
(File file, String baseURI, RDFFormat dataFormat, Resource... contexts) void
void
TransactionalRepositoryConnection.add
(InputStream in, String baseURI, RDFFormat dataFormat, Resource... contexts) void
TransactionalRepositoryConnection.add
(InputStream in, RDFFormat dataFormat, Resource... contexts) void
TransactionalRepositoryConnection.add
(Reader reader, String baseURI, RDFFormat dataFormat, Resource... contexts) void
void
TransactionalRepositoryConnection.add
(URL url, String baseURI, RDFFormat dataFormat, Resource... contexts) void