Documentation ¶
Overview ¶
Package quad is deprecated. Use github.com/cayleygraph/quad.
Index ¶
- Constants
- Variables
- func Copy(dst Writer, src Reader) (n int, err error)deprecated
- func CopyBatch(dst BatchWriter, src Reader, batchSize int) (int, error)deprecated
- func HashOf(v Value) []bytedeprecated
- func HashTo(v Value, p []byte)deprecated
- func IsValidValue(v Value) bool
- func NativeOf(v Value) interface{}deprecated
- func RegisterFormat(f Format)deprecated
- func RegisterStringConversion(dataType IRI, fnc StringConversion)deprecated
- func StringOf(v Value) stringdeprecated
- func ToString(v Value) stringdeprecated
- type BNodedeprecated
- func RandomBlankNode() BNodedeprecated
- type BatchReaderdeprecated
- type BatchWriterdeprecated
- type Booldeprecated
- type ByQuadString
- type ByValueString
- type Directiondeprecated
- type Equalerdeprecated
- type Floatdeprecated
- type Formatdeprecated
- func FormatByExt(name string) *Formatdeprecated
- func FormatByMime(name string) *Formatdeprecated
- func FormatByName(name string) *Formatdeprecated
- func Formats() []Formatdeprecated
- type IRIdeprecated
- type IRIFormatdeprecated
- type IRIOptionsdeprecated
- type Intdeprecated
- type LangStringdeprecated
- type Quaddeprecated
- type Quads
- func NewReader(quads []Quad) *Quadsdeprecated
- type ReadCloser
- type ReadSkipCloser
- type Readerdeprecated
- type Sequencedeprecated
- type Skipperdeprecated
- type Stringdeprecated
- type StringConversiondeprecated
- type Timedeprecated
- type TypedStringdeprecated
- type TypedStringer
- type Valuedeprecated
- func AsValue(v interface{}) (Value, bool)deprecated
- func Raw(s string) Valuedeprecated
- func StringToValue(v string) Valuedeprecated
- type WriteCloser
- type Writerdeprecated
Constants ¶
const ( Any = quad.Any Subject = quad.Subject Predicate = quad.Predicate Object = quad.Object Label = quad.Label )
List of the valid directions of a quad.
const ( // IRIDefault preserves current IRI formatting. IRIDefault = quad.IRIDefault // IRIShort changes IRI to use a short namespace prefix (ex: <rdf:type>). IRIShort = quad.IRIShort // IRIFull changes IRI to use full form (ex: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>). IRIFull = quad.IRIFull )
const HashSize = quad.HashSize
HashSize is a size of the slice, returned by HashOf.
Deprecated: use github.com/cayleygraph/quad package instead.
Variables ¶
var ( ErrInvalid = quad.ErrInvalid ErrIncomplete = quad.ErrIncomplete )
var DefaultBatch = quad.DefaultBatch
var Directions = quad.Directions
Functions ¶
func Copy
deprecated
added in
v0.6.1
Copy will copy all quads from src to dst. It returns copied quads count and an error, if it failed.
Copy will try to cast dst to BatchWriter and will switch to CopyBatch implementation in case of success.
Deprecated: use github.com/cayleygraph/quad package instead.
func CopyBatch
deprecated
added in
v0.6.1
func CopyBatch(dst BatchWriter, src Reader, batchSize int) (int, error)
CopyBatch will copy all quads from src to dst in a batches of batchSize. It returns copied quads count and an error, if it failed.
If batchSize <= 0 default batch size will be used.
Deprecated: use github.com/cayleygraph/quad package instead.
func IsValidValue ¶ added in v0.7.0
func RegisterFormat
deprecated
added in
v0.6.1
func RegisterFormat(f Format)
RegisterFormat registers a new quad-file format.
Deprecated: use github.com/cayleygraph/quad package instead.
func RegisterStringConversion
deprecated
added in
v0.6.0
func RegisterStringConversion(dataType IRI, fnc StringConversion)
RegisterStringConversion will register an automatic conversion of TypedString values with provided type to a native equivalent such as Int, Time, etc.
If fnc is nil, automatic conversion from selected type will be removed.
Deprecated: use github.com/cayleygraph/quad package instead.
Types ¶
type BNode
deprecated
added in
v0.6.0
BNode is an RDF Blank Node (ex: _:name).
Deprecated: use github.com/cayleygraph/quad package instead.
func RandomBlankNode
deprecated
added in
v0.6.1
func RandomBlankNode() BNode
RandomBlankNode returns a randomly generated Blank Node.
Deprecated: use github.com/cayleygraph/quad package instead.
type BatchReader
deprecated
added in
v0.6.1
type BatchReader = quad.BatchReader
BatchReader is an interface for reading quads in batches.
ReadQuads reads at most len(buf) quads into buf. It returns number of quads that were read and an error. It returns an io.EOF if there is no more quads to read.
Deprecated: use github.com/cayleygraph/quad package instead.
type BatchWriter
deprecated
added in
v0.6.1
type BatchWriter = quad.BatchWriter
BatchWriter is an interface for writing quads in batches.
Deprecated: use github.com/cayleygraph/quad package instead.
type ByQuadString ¶ added in v0.6.0
type ByQuadString = quad.ByQuadString
type ByValueString ¶ added in v0.6.0
type ByValueString = quad.ByValueString
type Format
deprecated
added in
v0.6.1
Format is a description for quad-file formats.
Deprecated: use github.com/cayleygraph/quad package instead.
func FormatByExt
deprecated
added in
v0.6.1
func FormatByMime
deprecated
added in
v0.6.1
func FormatByName
deprecated
added in
v0.6.1
type IRIOptions
deprecated
added in
v0.7.6
type IRIOptions = quad.IRIOptions
IRIOptions is a set of option
Deprecated: use github.com/cayleygraph/quad package instead.
type LangString
deprecated
added in
v0.6.0
type LangString = quad.LangString
LangString is an RDF string with language (ex: "name"@lang).
Deprecated: use github.com/cayleygraph/quad package instead.
type Quad
deprecated
Our quad struct, used throughout.
Deprecated: use github.com/cayleygraph/quad package instead.
type ReadCloser ¶ added in v0.6.1
type ReadCloser = quad.ReadCloser
type ReadSkipCloser ¶ added in v0.6.1
type ReadSkipCloser = quad.ReadSkipCloser
type StringConversion
deprecated
added in
v0.6.0
type StringConversion = quad.StringConversion
StringConversion is a function to convert string values with a specific IRI type to their native equivalents.
Deprecated: use github.com/cayleygraph/quad package instead.
type TypedString
deprecated
added in
v0.6.0
type TypedString = quad.TypedString
TypedString is an RDF value with type (ex: "name"^^<type>).
Deprecated: use github.com/cayleygraph/quad package instead.
type TypedStringer ¶ added in v0.6.1
type TypedStringer interface {
TypedString() TypedString
}
type Value
deprecated
added in
v0.6.0
Value is a type used by all quad directions.
Deprecated: use github.com/cayleygraph/quad package instead.
func StringToValue
deprecated
added in
v0.6.0
type WriteCloser ¶ added in v0.6.1
type WriteCloser = quad.WriteCloser
type Writer
deprecated
added in
v0.6.1
Writer is a minimal interface for quad writers. Used for quad serializers and quad stores.
Deprecated: use github.com/cayleygraph/quad package instead.
func IRIWriter
deprecated
added in
v0.7.6
func IRIWriter(w Writer, opt IRIOptions) Writer
IRIWriter is a writer implementation that converts all IRI values in quads according to the IRIOptions.
Deprecated: use github.com/cayleygraph/quad package instead.
Directories ¶
Path | Synopsis |
---|---|
Package dot is deprecated.
|
Package dot is deprecated. |
Package gml is deprecated.
|
Package gml is deprecated. |
Package graphml is deprecated.
|
Package graphml is deprecated. |
Package json is deprecated.
|
Package json is deprecated. |
Package jsonld is deprecated.
|
Package jsonld is deprecated. |
Package nquads is deprecated.
|
Package nquads is deprecated. |
Package pquads is deprecated.
|
Package pquads is deprecated. |