glass

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package glass provides Glass

Index

Constants

View Source
const GlassVersion = 1

Variables

This section is empty.

Functions

func Export

func Export(path string, drincw Glass, output io.Writer) (err error)

Export writes a glass to the given path

Types

type Glass

type Glass struct {
	Pathbuilder pathbuilder.Pathbuilder

	Flags viewer.RenderFlags

	Cache *sparkl.Cache
}

Glass represents a stand-alone representation of a WissKI

func Create

func Create(pathbuilderPath string, nquadsPath string, cacheDir string, flags viewer.RenderFlags, output io.Writer) (drincw Glass, err error)

Create creates a new glass from the given pathbbuilder and nquads. output is written to output.

func Import

func Import(path string, output io.Writer) (drincw Glass, err error)

Import loads a glass from disk

func (*Glass) DecodeFrom

func (glass *Glass) DecodeFrom(decoder *gob.Decoder) (err error)

DecodeFrom decodes a glass from the given decoder

func (*Glass) EncodeTo

func (glass *Glass) EncodeTo(encoder *gob.Encoder) error

EncodeTo encodes a glass to a given encoder

Jump to

Keyboard shortcuts

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