github.com/cayleygraph/cayley@v0.7.7/quad/jsonld/jsonld.go (about) 1 // Package jsonld is deprecated. Use github.com/cayleygraph/quad/jsonld. 2 package jsonld 3 4 import ( 5 "io" 6 7 "github.com/cayleygraph/quad/jsonld" 8 ) 9 10 // AutoConvertTypedString allows to convert TypedString values to native 11 // equivalents directly while parsing. It will call ToNative on all TypedString values. 12 // 13 // If conversion error occurs, it will preserve original TypedString value. 14 // 15 // Deprecated: use github.com/cayleygraph/quad/jsonld package instead. 16 var AutoConvertTypedString = jsonld.AutoConvertTypedString 17 18 // NewReader returns quad reader for JSON-LD stream. 19 // 20 // Deprecated: use github.com/cayleygraph/quad package instead. 21 func NewReader(r io.Reader) *Reader { 22 return jsonld.NewReader(r) 23 } 24 25 // NewReaderFromMap returns quad reader for JSON-LD map object. 26 // 27 // Deprecated: use github.com/cayleygraph/quad package instead. 28 func NewReaderFromMap(o interface{}) *Reader { 29 return jsonld.NewReaderFromMap(o) 30 } 31 32 type Reader = jsonld.Reader 33 34 func NewWriter(w io.Writer) *Writer { 35 return jsonld.NewWriter(w) 36 } 37 38 type Writer = jsonld.Writer