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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDoes the language have a registered output format?static booleanIs the RDFFormat registered for use?static RDFFormatdefaultSerialization(Lang lang) Return the format registered as the default for the languagestatic WriterDatasetRIOTFactorygetWriterDatasetFactory(Lang lang) Get the dataset writer factory associated with the languagestatic WriterDatasetRIOTFactorygetWriterDatasetFactory(RDFFormat serialization) Get the dataset writer factory associated with the output formatstatic WriterGraphRIOTFactorygetWriterGraphFactory(Lang lang) Get the graph writer factory associated with the languagestatic WriterGraphRIOTFactorygetWriterGraphFactory(RDFFormat serialization) Get the graph writer factory associated with the output formatstatic voidinit()static voidRegister the default serialization for the language (replace any existing registration).static voidregister(RDFFormat serialization, WriterDatasetRIOTFactory datasetWriterFactory) Register the serialization for datasets and it's associated factorystatic voidregister(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
-