| Package | Description |
|---|---|
| org.openrdf.rio |
General classes and interfaces for RDF parsers and RDF writers.
|
| Modifier and Type | Field and Description |
|---|---|
static RDFFormat |
RDFFormat.BINARY
A binary RDF format.
|
static RDFFormat |
RDFFormat.JSONLD
The JSON-LD
file format, an RDF serialization format that supports recording of named
graphs.
|
static RDFFormat |
RDFFormat.N3
The N3/Notation3 file
format.
|
static RDFFormat |
RDFFormat.NQUADS
The N-Quads file format,
an RDF serialization format that supports recording of named graphs.
|
static RDFFormat |
RDFFormat.NTRIPLES
The N-Triples
file format.
|
static RDFFormat |
RDFFormat.RDFA
The RDFa file format, an
RDF serialization format.
|
static RDFFormat |
RDFFormat.RDFJSON
The Talis RDF/JSON file format, an RDF serialization format that supports
recording of named graphs.
|
static RDFFormat |
RDFFormat.RDFXML
The RDF/XML file
format.
|
static RDFFormat |
RDFFormat.TRIG
The TriG file
format, a Turtle-based RDF serialization format that supports recording of
named graphs.
|
static RDFFormat |
RDFFormat.TRIX
The TriX file format, an
XML-based RDF serialization format that supports recording of named
graphs.
|
static RDFFormat |
RDFFormat.TURTLE
The Turtle file
format.
|
| Modifier and Type | Method and Description |
|---|---|
static RDFFormat |
RDFFormat.forFileName(java.lang.String fileName)
Tries to determine the appropriate RDF file format based on the extension
of a file name.
|
static RDFFormat |
RDFFormat.forFileName(java.lang.String fileName,
RDFFormat fallback)
Tries to determine the appropriate RDF file format based on the extension
of a file name.
|
static RDFFormat |
RDFFormat.forMIMEType(java.lang.String mimeType)
Tries to determine the appropriate RDF file format based on the a MIME
type that describes the content type.
|
static RDFFormat |
RDFFormat.forMIMEType(java.lang.String mimeType,
RDFFormat fallback)
Tries to determine the appropriate RDF file format based on the a MIME
type that describes the content type.
|
protected RDFFormat |
RDFParserRegistry.getKey(RDFParserFactory factory) |
protected RDFFormat |
RDFWriterRegistry.getKey(RDFWriterFactory factory) |
static RDFFormat |
Rio.getParserFormatForFileName(java.lang.String fileName)
Tries to match the extension of a file name against the list of RDF
formats that can be parsed.
|
static RDFFormat |
Rio.getParserFormatForFileName(java.lang.String fileName,
RDFFormat fallback)
Tries to match the extension of a file name against the list of RDF
formats that can be parsed.
|
static RDFFormat |
Rio.getParserFormatForMIMEType(java.lang.String mimeType)
Tries to match a MIME type against the list of RDF formats that can be
parsed.
|
static RDFFormat |
Rio.getParserFormatForMIMEType(java.lang.String mimeType,
RDFFormat fallback)
Tries to match a MIME type against the list of RDF formats that can be
parsed.
|
RDFFormat |
RDFWriterFactory.getRDFFormat()
Returns the RDF format for this factory.
|
RDFFormat |
RDFWriter.getRDFFormat()
Gets the RDF format that this RDFWriter uses.
|
RDFFormat |
RDFParserFactory.getRDFFormat()
Returns the RDF format for this factory.
|
RDFFormat |
RDFParser.getRDFFormat()
Gets the RDF format that this parser can parse.
|
static RDFFormat |
Rio.getWriterFormatForFileName(java.lang.String fileName)
Tries to match the extension of a file name against the list of RDF
formats that can be written.
|
static RDFFormat |
Rio.getWriterFormatForFileName(java.lang.String fileName,
RDFFormat fallback)
Tries to match the extension of a file name against the list of RDF
formats that can be written.
|
static RDFFormat |
Rio.getWriterFormatForMIMEType(java.lang.String mimeType)
Tries to match a MIME type against the list of RDF formats that can be
written.
|
static RDFFormat |
Rio.getWriterFormatForMIMEType(java.lang.String mimeType,
RDFFormat fallback)
Tries to match a MIME type against the list of RDF formats that can be
written.
|
static RDFFormat |
RDFFormat.register(java.lang.String name,
java.lang.String mimeType,
java.lang.String fileExt,
java.nio.charset.Charset charset)
Registers the specified RDF file format.
|
static RDFFormat |
RDFFormat.valueOf(java.lang.String formatName)
Returns the RDF format whose name matches the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection<RDFFormat> |
RDFFormat.values()
Returns all known/registered RDF formats.
|
| Modifier and Type | Method and Description |
|---|---|
static RDFParser |
Rio.createParser(RDFFormat format)
Convenience methods for creating RDFParser objects.
|
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,
java.io.OutputStream out)
Convenience methods for creating RDFWriter objects.
|
static RDFWriter |
Rio.createWriter(RDFFormat format,
java.io.Writer writer)
Convenience methods for creating RDFWriter objects.
|
static RDFFormat |
RDFFormat.forFileName(java.lang.String fileName,
RDFFormat fallback)
Tries to determine the appropriate RDF file format based on the extension
of a file name.
|
static RDFFormat |
RDFFormat.forMIMEType(java.lang.String mimeType,
RDFFormat fallback)
Tries to determine the appropriate RDF file format based on the a MIME
type that describes the content type.
|
static java.util.List<java.lang.String> |
RDFFormat.getAcceptParams(java.lang.Iterable<RDFFormat> rdfFormats,
boolean requireContext,
RDFFormat preferredFormat) |
static RDFFormat |
Rio.getParserFormatForFileName(java.lang.String fileName,
RDFFormat fallback)
Tries to match the extension of a file name against the list of RDF
formats that can be parsed.
|
static RDFFormat |
Rio.getParserFormatForMIMEType(java.lang.String mimeType,
RDFFormat fallback)
Tries to match a MIME type against the list of RDF formats that can be
parsed.
|
static RDFFormat |
Rio.getWriterFormatForFileName(java.lang.String fileName,
RDFFormat fallback)
Tries to match the extension of a file name against the list of RDF
formats that can be written.
|
static RDFFormat |
Rio.getWriterFormatForMIMEType(java.lang.String mimeType,
RDFFormat fallback)
Tries to match a MIME type against the list of RDF formats that can be
written.
|
static Model |
Rio.parse(java.io.InputStream in,
java.lang.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(java.io.InputStream in,
java.lang.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(java.io.Reader reader,
java.lang.String baseURI,
RDFFormat dataFormat,
ParserConfig settings,
ValueFactory valueFactory,
ParseErrorListener errors,
Resource... contexts)
Adds RDF data from a
Reader to a Model, optionally to one
or more named contexts. |
static Model |
Rio.parse(java.io.Reader reader,
java.lang.String baseURI,
RDFFormat dataFormat,
Resource... contexts)
Adds RDF data from a
Reader to a Model, optionally to one
or more named contexts. |
static void |
RDFFormat.register(RDFFormat rdfFormat)
Registers the specified RDF file format.
|
static void |
Rio.write(java.lang.Iterable<Statement> model,
java.io.OutputStream output,
RDFFormat dataFormat)
Writes the given statements to the given
OutputStream in the given
format. |
static void |
Rio.write(java.lang.Iterable<Statement> model,
java.io.OutputStream output,
RDFFormat dataFormat,
WriterConfig settings)
Writes the given statements to the given
OutputStream in the given
format. |
static void |
Rio.write(java.lang.Iterable<Statement> model,
java.io.Writer output,
RDFFormat dataFormat)
Writes the given statements to the given
Writer in the given
format. |
static void |
Rio.write(java.lang.Iterable<Statement> model,
java.io.Writer output,
RDFFormat dataFormat,
WriterConfig settings)
Writes the given statements to the given
Writer in the given
format. |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
RDFFormat.getAcceptParams(java.lang.Iterable<RDFFormat> rdfFormats,
boolean requireContext,
RDFFormat preferredFormat) |
Copyright © 2001-2014 Aduna. All Rights Reserved.