decodeBinary method

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

Decode binary RDF content to create a graph.

Converts binary data containing serialized RDF into an in-memory RDF graph. 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

RdfGraph decodeBinary(
  Uint8List content, {
  String? contentType,
  RdfBinaryDecoderOptions? options,
}) =>
    binaryGraphCodec(contentType: contentType, decoderOptions: options)
        .decode(content);