Package com.stardog.stark.io
Core APIs for reading and writing RDF data
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Interface Summary Interface Description DatatypeHandler An interface defining methods related to verification and normalization of typed literals and datatype IRIs.FileFormat Represents the format of a file or stream, such as XML or JSON.LanguageHandler An interface defining methods related to verification and normalization of language tags.LineSupplier.InputStreamSupplier RDFFormat Represents the serialization used for RDF.RDFFormat.BinaryRDFFormat Marker interface for anRDFFormatwhose serialization is binary rather than textual.RDFHandler Interface for consuming RDFRDFParser An RDF Parser.RDFWriter A writer to serializeRDF statementsin a particular RDF format.RDFWriterFactory Factory interface for creating instances of theRDFWriter -
Class Summary Class Description AbstractRDFHandler Base implementation of anRDFHandlerwhich provides no-op implementations for all of the methods except handling ofstatementsCollectingRDFHandler<T> SimpleRDFHandlerthat will collect thestatementsand return a result.CompressedRDFFormat Class to represent the format of serialized RDF that is also compressedDelegatingRDFHandler FileFormatImpl Default implementation ofFileFormatForwardingRDFHandler RDFHandlerbase implementation that will decorate a base handlerForwardingRDFWriter RDFWriterbase for decorating another writerIOParserContext Extended parser state that wraps the stream to be parsed to provide common IO operations for most of the basic text RDF formats.LineBatch Batch of consecutive lines read from a stream.LineSupplier A utility class that reads lines from a stream in one thread and supplies the output asbatchesfor multiple threads to consume.LineSupplierParserContext ExtendsIOParserContextto read the input from aLineSupplierinstead of an input stream.ParserContext Object to hold the current state of the parsing operation, parsing configuration, andValuecreation.ParserOptions Options forRDF parsing.RDFFormats Utilities forRDFFormatRDFHandlers Utility methods for working withRDFHandlerRDFHandlers.DefaultRDFHandler RDFHandlers.GraphBuilder RDFParsers Utilities for working withRDFParserRDFWriters Utility methods for working withRDFWriterRDFWriters.RDFWriterConfig Write builder forRDFWriterSupportedFileFormats<T extends FileFormat> Utility class to keep a list offormatsthat are supported by an application.TransformingRDFHandler RDFHandlerthat will transform staements before passing them to a delegateTrigParserWithRules ExtendedTrigParserwhich includes support for embedded rules.WriterOptions Options to control theRDF writing process -
Enum Summary Enum Description FileFormat.Compression ParserContext.ParseError -
Exception Summary Exception Description InvalidLiteral Exception thrown when aLiteralencountered during parsing is syntactically correct, but otherwise invalid.InvalidRDF Exception thrown whenparsingan RDF file and the contents are not syntactically valid RDF.RDFHandlerException Exception denoting something unexpected happened in anRDFHandlerWritingFailed Indicates that there was an unexpected failure whilewriting