github.com/cayleygraph/cayley@v0.7.7/quad/nquads/nquads.go (about) 1 // Copyright 2014 The Cayley Authors. All rights reserved. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Package nquads is deprecated. Use github.com/cayleygraph/quad/nquads. 16 package nquads 17 18 import ( 19 "io" 20 21 "github.com/cayleygraph/quad/nquads" 22 ) 23 24 // AutoConvertTypedString allows to convert TypedString values to native 25 // equivalents directly while parsing. It will call ToNative on all TypedString values. 26 // 27 // If conversion error occurs, it will preserve original TypedString value. 28 // 29 // Deprecated: use github.com/cayleygraph/quad/nquads package instead. 30 var AutoConvertTypedString = nquads.AutoConvertTypedString 31 32 var DecodeRaw = nquads.DecodeRaw 33 34 // Reader implements N-Quad document parsing according to the RDF 35 // 1.1 N-Quads specification. 36 // 37 // Deprecated: use github.com/cayleygraph/quad/nquads package instead. 38 type Reader = nquads.Reader 39 40 // NewReader returns an N-Quad decoder that takes its input from the 41 // provided io.Reader. 42 // 43 // Deprecated: use github.com/cayleygraph/quad/nquads package instead. 44 func NewReader(r io.Reader, raw bool) *Reader { 45 return nquads.NewReader(r, raw) 46 } 47 48 // NewWriter returns an N-Quad encoder that writes its output to the 49 // provided io.Writer. 50 // 51 // Deprecated: use github.com/cayleygraph/quad/nquads package instead. 52 func NewWriter(w io.Writer) *Writer { return nquads.NewWriter(w) } 53 54 // Writer implements N-Quad document generator according to the RDF 55 // 1.1 N-Quads specification. 56 // 57 // Deprecated: use github.com/cayleygraph/quad/nquads package instead. 58 type Writer = nquads.Writer