public class RDFWriterRegistry extends Object
Constructor and Description |
---|
RDFWriterRegistry() |
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(Lang lang)
Does the language have a registerdd output format?
|
static boolean |
contains(RDFFormat format)
Is the RDFFormat registered for use?
|
static RDFFormat |
defaultSerialization(Lang lang)
Return the format registered as the default for the language
|
static WriterDatasetRIOTFactory |
getWriterDatasetFactory(Lang lang)
Get the dataset writer factory asscoiated with the language
|
static WriterDatasetRIOTFactory |
getWriterDatasetFactory(RDFFormat serialization)
Get the dataset writer factory asscoiated with the output format
|
static WriterGraphRIOTFactory |
getWriterGraphFactory(Lang lang)
Get the graph writer factory asscoiated with the language
|
static WriterGraphRIOTFactory |
getWriterGraphFactory(RDFFormat serialization)
Get the graph writer factory asscoiated with the output format
|
static void |
init() |
static void |
register(Lang lang,
RDFFormat format)
Register the default serialization for the language
|
static void |
register(RDFFormat serialization,
WriterDatasetRIOTFactory datasetWriterFactory)
Register the serialization for datasets and it's associated factory
|
static void |
register(RDFFormat serialization,
WriterGraphRIOTFactory graphWriterFactory)
Register the serialization for graphs and it's associated factory
|
static Collection<RDFFormat> |
registeredDatasetFormats()
All registered dataset formats
|
static Collection<RDFFormat> |
registeredGraphFormats()
All registered graph formats
|
public static void init()
public static void register(RDFFormat serialization, WriterGraphRIOTFactory graphWriterFactory)
serialization
- RDFFormat for the output format.graphWriterFactory
- Source of writer enginespublic static void register(RDFFormat serialization, WriterDatasetRIOTFactory datasetWriterFactory)
serialization
- RDFFormat for the output format.datasetWriterFactory
- Source of writer enginespublic static void register(Lang lang, RDFFormat format)
lang
- Languagesformat
- The serialization forma to use when the language is used for writing.public static RDFFormat defaultSerialization(Lang lang)
public static boolean contains(Lang lang)
public static boolean contains(RDFFormat format)
public static Collection<RDFFormat> registeredGraphFormats()
public static Collection<RDFFormat> registeredDatasetFormats()
public static WriterGraphRIOTFactory getWriterGraphFactory(Lang lang)
public static WriterGraphRIOTFactory getWriterGraphFactory(RDFFormat serialization)
public static WriterDatasetRIOTFactory getWriterDatasetFactory(Lang lang)
public static WriterDatasetRIOTFactory getWriterDatasetFactory(RDFFormat serialization)
Licenced under the Apache License, Version 2.0