JenaConverterFactory

eu.ostrzyciel.jelly.convert.jena.JenaConverterFactory
object JenaConverterFactory extends ConverterFactory[JenaEncoderConverter, JenaDecoderConverter, Node, RDFDatatype, Triple, Quad]

Attributes

Graph
Supertypes
trait ConverterFactory[JenaEncoderConverter, JenaDecoderConverter, Node, RDFDatatype, Triple, Quad]
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited types

final type NsHandler = () => Node

Attributes

Inherited from:
ConverterFactory
final type TEncoder = ProtoEncoder[Node, Triple, Quad, _]

Attributes

Inherited from:
ConverterFactory

Value members

Inherited methods

final def anyStatementDecoder(supportedOptions: Option[RdfStreamOptions], namespaceHandler: NsHandler): AnyStatementDecoder[Node, RDFDatatype, Triple, Quad]

Create a new AnyStatementDecoder.

Create a new AnyStatementDecoder.

Value parameters

namespaceHandler

function to handle namespace declarations in the stream. The first argument is the namespace prefix (without a colon), the second is the IRI node.

supportedOptions

maximum supported options for the decoder. If not provided, this.defaultSupportedOptions will be used. If you want to modify this (e.g., to specify an expected logical stream type), you should always use this.defaultSupportedOptions.withXxx.

Attributes

Returns

decoder

Inherited from:
ConverterFactory
final def encoder(params: Params): TEncoder

Create a new ProtoEncoder.

Create a new ProtoEncoder.

Value parameters

params

Parameters for the encoder.

Attributes

Returns

encoder

Since

2.6.0

Inherited from:
ConverterFactory
final def graphsAsQuadsDecoder(supportedOptions: Option[RdfStreamOptions], namespaceHandler: NsHandler): GraphsAsQuadsDecoder[Node, RDFDatatype, Triple, Quad]

Create a new GraphsAsQuadsDecoder.

Create a new GraphsAsQuadsDecoder.

Value parameters

namespaceHandler

function to handle namespace declarations in the stream. The first argument is the namespace prefix (without a colon), the second is the IRI node.

supportedOptions

maximum supported options for the decoder. If not provided, this.defaultSupportedOptions will be used. If you want to modify this (e.g., to specify an expected logical stream type), you should always use this.defaultSupportedOptions.withXxx.

Attributes

Returns

decoder

Inherited from:
ConverterFactory
final def graphsDecoder(supportedOptions: Option[RdfStreamOptions], namespaceHandler: NsHandler): GraphsDecoder[Node, RDFDatatype, Triple, Quad]

Create a new GraphsDecoder.

Create a new GraphsDecoder.

Value parameters

namespaceHandler

function to handle namespace declarations in the stream. The first argument is the namespace prefix (without a colon), the second is the IRI node.

supportedOptions

maximum supported options for the decoder. If not provided, this.defaultSupportedOptions will be used. If you want to modify this (e.g., to specify an expected logical stream type), you should always use this.defaultSupportedOptions.withXxx.

Attributes

Returns

decoder

Inherited from:
ConverterFactory
final def quadsDecoder(supportedOptions: Option[RdfStreamOptions], namespaceHandler: NsHandler): QuadsDecoder[Node, RDFDatatype, Triple, Quad]

Create a new QuadsDecoder.

Create a new QuadsDecoder.

Value parameters

namespaceHandler

function to handle namespace declarations in the stream. The first argument is the namespace prefix (without a colon), the second is the IRI node.

supportedOptions

maximum supported options for the decoder. If not provided, this.defaultSupportedOptions will be used. If you want to modify this (e.g., to specify an expected logical stream type), you should always use this.defaultSupportedOptions.withXxx.

Attributes

Returns

decoder

Inherited from:
ConverterFactory
final def triplesDecoder(supportedOptions: Option[RdfStreamOptions], namespaceHandler: NsHandler): TriplesDecoder[Node, RDFDatatype, Triple, Quad]

Create a new TriplesDecoder.

Create a new TriplesDecoder.

Value parameters

namespaceHandler

function to handle namespace declarations in the stream. The first argument is the namespace prefix (without a colon), the second is the IRI node.

supportedOptions

maximum supported options for the decoder. If not provided, this.defaultSupportedOptions will be used. If you want to modify this (e.g., to specify an expected logical stream type), you should always use this.defaultSupportedOptions.withXxx.

Attributes

Returns

decoder

Inherited from:
ConverterFactory

Deprecated and Inherited methods

final def encoder(options: RdfStreamOptions, enableNamespaceDeclarations: Boolean, maybeRowBuffer: Option[Buffer[RdfStreamRow]]): TEncoder

Create a new ProtoEncoder.

Create a new ProtoEncoder.

Value parameters

enableNamespaceDeclarations

whether to enable namespace declarations in the stream. If true, this will raise the stream version to 2 (Jelly 1.1.0). Otherwise, the stream version will be 1 (Jelly 1.0.0).

maybeRowBuffer

optional buffer for storing stream rows that should go into a stream frame. If provided, the encoder will append the rows to this buffer instead of returning them, so methods like addTripleStatement will return Seq().

options

Jelly serialization options.

Attributes

Returns

encoder

Deprecated
true
Inherited from:
ConverterFactory
final def encoder(options: RdfStreamOptions, enableNamespaceDeclarations: Boolean): TEncoder

Create a new ProtoEncoder which manages a row buffer on its own.

Create a new ProtoEncoder which manages a row buffer on its own.

Value parameters

enableNamespaceDeclarations

whether to enable namespace declarations in the stream. If true, this will raise the stream version to 2 (Jelly 1.1.0). Otherwise, the stream version will be 1 (Jelly 1.0.0).

options

Jelly serialization options.

Attributes

Returns

encoder

Deprecated
true
Inherited from:
ConverterFactory
final def encoder(options: RdfStreamOptions): TEncoder

Create a new ProtoEncoder which manages a row buffer on its own. Namespace declarations are disabled.

Create a new ProtoEncoder which manages a row buffer on its own. Namespace declarations are disabled.

Value parameters

options

Jelly serialization options.

Attributes

Returns

encoder

Deprecated
true
Inherited from:
ConverterFactory

Concrete fields

To be implemented by subclasses. Returns an instance of ProtoDecoderConverter for the RDF library.

To be implemented by subclasses. Returns an instance of ProtoDecoderConverter for the RDF library.

Attributes

To be implemented by subclasses. Returns an instance of ProtoEncoderConverter for the RDF library.

To be implemented by subclasses. Returns an instance of ProtoEncoderConverter for the RDF library.

Attributes

Inherited fields

final val defaultNsHandler: NsHandler

Attributes

Inherited from:
ConverterFactory