jsonld

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package jsonld provides an encoder/decoder for JSON-LD quad format

Index

Constants

This section is empty.

Variables

View Source
var AutoConvertTypedString = true

AutoConvertTypedString allows to convert TypedString values to native equivalents directly while parsing. It will call ToNative on all TypedString values.

If conversion error occurs, it will preserve original TypedString value.

Functions

This section is empty.

Types

type Reader

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

func NewReader

func NewReader(r io.Reader) *Reader

NewReader returns quad reader for JSON-LD stream.

func NewReaderFromMap

func NewReaderFromMap(o interface{}) *Reader

NewReaderFromMap returns quad reader for JSON-LD map object.

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) ReadQuad

func (r *Reader) ReadQuad() (quad.Quad, error)

type Writer

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

func NewWriter

func NewWriter(w io.Writer) *Writer

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) SetLdContext

func (w *Writer) SetLdContext(ctx interface{})

func (*Writer) WriteQuad

func (w *Writer) WriteQuad(q quad.Quad) error

Jump to

Keyboard shortcuts

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