Package org.apache.jena.riot
Class RDFWriterRegistry
- java.lang.Object
-
- org.apache.jena.riot.RDFWriterRegistry
-
public class RDFWriterRegistry extends java.lang.ObjectWriter registry. This is for writers presenting the functionality to write graphs and datasets, not streams. SeeStreamRDFWriterfor registration of streaming writers. To register the language: seeRDFLanguages.- See Also:
for streaming writers.
-
-
Constructor Summary
Constructors Constructor Description RDFWriterRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontains(Lang lang)Does the language have a registered output format?static booleancontains(RDFFormat format)Is 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(Lang lang, RDFFormat format)Register 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 java.util.Collection<RDFFormat>registered()All registered formatsstatic java.util.Collection<RDFFormat>registeredDatasetFormats()All registered dataset formatsstatic java.util.Collection<RDFFormat>registeredGraphFormats()All registered graph formats
-
-
-
Method Detail
-
init
public static void init()
-
register
public static void register(RDFFormat serialization, WriterGraphRIOTFactory graphWriterFactory)
Register the serialization for graphs and it's associated factory- Parameters:
serialization- RDFFormat for the output format.graphWriterFactory- Source of writer engines
-
register
public static void register(RDFFormat serialization, WriterDatasetRIOTFactory datasetWriterFactory)
Register the serialization for datasets and it's associated factory- Parameters:
serialization- RDFFormat for the output format.datasetWriterFactory- Source of writer engines
-
register
public static void register(Lang lang, RDFFormat format)
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
public static RDFFormat defaultSerialization(Lang lang)
Return the format registered as the default for the language
-
contains
public static boolean contains(Lang lang)
Does the language have a registered output format?
-
contains
public static boolean contains(RDFFormat format)
Is the RDFFormat registered for use?
-
registeredGraphFormats
public static java.util.Collection<RDFFormat> registeredGraphFormats()
All registered graph formats
-
registeredDatasetFormats
public static java.util.Collection<RDFFormat> registeredDatasetFormats()
All registered dataset formats
-
registered
public static java.util.Collection<RDFFormat> registered()
All registered formats
-
getWriterGraphFactory
public static WriterGraphRIOTFactory getWriterGraphFactory(Lang lang)
Get the graph writer factory associated with the language
-
getWriterGraphFactory
public static WriterGraphRIOTFactory getWriterGraphFactory(RDFFormat serialization)
Get the graph writer factory associated with the output format
-
getWriterDatasetFactory
public static WriterDatasetRIOTFactory getWriterDatasetFactory(Lang lang)
Get the dataset writer factory associated with the language
-
getWriterDatasetFactory
public static WriterDatasetRIOTFactory getWriterDatasetFactory(RDFFormat serialization)
Get the dataset writer factory associated with the output format
-
-