decodeBinaryDataset method

RdfDataset decodeBinaryDataset(
  1. Uint8List content, {
  2. String? contentType,
  3. RdfBinaryDecoderOptions? options,
})

Decode binary RDF content to create a dataset.

Converts binary data containing serialized RDF into an in-memory RDF dataset. The format can be explicitly specified using the contentType parameter, or automatically detected from the content if not specified.

Throws CodecNotSupportedException if no binary codec matches.

Implementation

RdfDataset decodeBinaryDataset(
  Uint8List content, {
  String? contentType,
  RdfBinaryDecoderOptions? options,
}) =>
    binaryDatasetCodec(contentType: contentType, decoderOptions: options)
        .decode(content);