rdf

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0, NCSA Imports: 4 Imported by: 1

Documentation

Overview

Package rdf implements encoding of RDF triples, as described in http://www.w3.org/TR/2014/REC-n-triples-20140225/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Quote

func Quote(s string) string

Quote produces a quote-bounded string from s, following the TURTLE escaping rules http://www.w3.org/TR/2014/REC-turtle-20140225/#sec-escapes.

Types

type Triple

type Triple struct {
	Subject, Predicate, Object string
}

A Triple represents a single RDF triple.

func (*Triple) Encode

func (t *Triple) Encode(w io.Writer) error

Encode writes a string encoding of t as an RDF triple to w.

func (*Triple) String

func (t *Triple) String() string

String returns a string encoding of t as an RDF triple.

Jump to

Keyboard shortcuts

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