java.lang.Object
org.apache.jena.riot.RDFWriterRegistry
Writer registry. This is for writers presenting the functionality to write graphs and datasets, not streams.
See
StreamRDFWriter
for registration of streaming writers.
To register the language: see RDFLanguages
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Does the language have a registered output format?static boolean
Is the RDFFormat registered for use?static RDFFormat
defaultSerialization
(Lang lang) Return the format registered as the default for the languagestatic WriterDatasetRIOTFactory
getWriterDatasetFactory
(Lang lang) Get the dataset writer factory associated with the languagestatic WriterDatasetRIOTFactory
getWriterDatasetFactory
(RDFFormat serialization) Get the dataset writer factory associated with the output formatstatic WriterGraphRIOTFactory
getWriterGraphFactory
(Lang lang) Get the graph writer factory associated with the languagestatic WriterGraphRIOTFactory
getWriterGraphFactory
(RDFFormat serialization) Get the graph writer factory associated with the output formatstatic void
init()
static void
Register the default serialization for the language (replace any existing registration).static void
register
(RDFFormat serialization, WriterDatasetRIOTFactory datasetWriterFactory) Register the serialization for datasets and it's associated factorystatic void
register
(RDFFormat serialization, WriterGraphRIOTFactory graphWriterFactory) Register the serialization for graphs and it's associated factorystatic Collection<RDFFormat>
All registered dataset formatsstatic Collection<RDFFormat>
All registered formatsstatic Collection<RDFFormat>
All registered graph formatsstatic Collection<Lang>
All registered languages
-
Constructor Details
-
RDFWriterRegistry
public RDFWriterRegistry()
-
-
Method Details
-
init
public static void init() -
register
Register the serialization for graphs and it's associated factory- Parameters:
serialization
- RDFFormat for the output format.graphWriterFactory
- Source of writer engines
-
register
Register the serialization for datasets and it's associated factory- Parameters:
serialization
- RDFFormat for the output format.datasetWriterFactory
- Source of writer engines
-
register
Register the default serialization for the language (replace any existing registration).- Parameters:
lang
- Languagesformat
- The serialization format to use when the language is used for writing.
-
defaultSerialization
Return the format registered as the default for the language -
contains
Does the language have a registered output format? -
contains
Is the RDFFormat registered for use? -
registeredGraphFormats
All registered graph formats -
registeredDatasetFormats
All registered dataset formats -
registeredFormats
All registered formats -
registeredLangs
All registered languages -
getWriterGraphFactory
Get the graph writer factory associated with the language -
getWriterGraphFactory
Get the graph writer factory associated with the output format -
getWriterDatasetFactory
Get the dataset writer factory associated with the language -
getWriterDatasetFactory
Get the dataset writer factory associated with the output format
-