encodeBinaryDataset method

Uint8List encodeBinaryDataset(
  1. RdfDataset dataset, {
  2. String? contentType,
  3. RdfBinaryEncoderOptions? options,
})

Encode an RDF dataset to binary.

Converts an in-memory RDF dataset into a binary representation in the specified format. If no format is specified, the default binary dataset codec is used.

Throws CodecNotSupportedException if no binary codec matches.

Implementation

Uint8List encodeBinaryDataset(
  RdfDataset dataset, {
  String? contentType,
  RdfBinaryEncoderOptions? options,
}) =>
    binaryDatasetCodec(contentType: contentType, encoderOptions: options)
        .encode(dataset);