rdfjson

package
v0.0.0-...-09cccfd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

see https://www.w3.org/TR/2013/NOTE-rdf-json-20131107/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(r io.Reader, opts ...DecoderOption) (*Decoder, error)

func (*Decoder) Close

func (d *Decoder) Close() error

func (*Decoder) Err

func (d *Decoder) Err() error

func (*Decoder) GetGraphName

func (d *Decoder) GetGraphName() rdf.GraphNameValue

func (*Decoder) GetStatement

func (d *Decoder) GetStatement() rdfio.Statement

func (*Decoder) GetTriple

func (d *Decoder) GetTriple() rdf.Triple

func (*Decoder) Next

func (d *Decoder) Next() bool

type DecoderConfig

type DecoderConfig struct {
	// contains filtered or unexported fields
}

func (DecoderConfig) SetCaptureTextOffsets

func (b DecoderConfig) SetCaptureTextOffsets(v bool) DecoderConfig

func (DecoderConfig) SetInitialTextOffset

func (b DecoderConfig) SetInitialTextOffset(v cursorio.TextOffset) DecoderConfig

func (DecoderConfig) SetTokenizerOptions

type DecoderOption

type DecoderOption interface {
	// contains filtered or unexported methods
}

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(w io.Writer, opts ...EncoderOption) (*Encoder, error)

func (*Encoder) Close

func (w *Encoder) Close() error

func (*Encoder) GetContentMetadata

func (w *Encoder) GetContentMetadata() encoding.ContentMetadata

func (*Encoder) PutTriple

func (w *Encoder) PutTriple(ctx context.Context, t rdf.Triple) error

type EncoderConfig

type EncoderConfig struct {
	// contains filtered or unexported fields
}

func (EncoderConfig) SetBlankNodeStringer

func (s EncoderConfig) SetBlankNodeStringer(v blanknodeutil.Stringer) EncoderConfig

func (EncoderConfig) SetIndent

func (s EncoderConfig) SetIndent(v string) EncoderConfig

func (EncoderConfig) SetPrefix

func (s EncoderConfig) SetPrefix(v string) EncoderConfig

type EncoderOption

type EncoderOption interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL