github.com/cayleygraph/cayley@v0.7.7/quad/quad.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 quad is deprecated. Use github.com/cayleygraph/quad.
    16  package quad
    17  
    18  import (
    19  	"github.com/cayleygraph/quad"
    20  )
    21  
    22  var (
    23  	ErrInvalid    = quad.ErrInvalid
    24  	ErrIncomplete = quad.ErrIncomplete
    25  )
    26  
    27  // Make creates a quad with provided values.
    28  //
    29  // Deprecated: use github.com/cayleygraph/quad package instead.
    30  func Make(subject, predicate, object, label interface{}) Quad {
    31  	return quad.Make(subject, predicate, object, label)
    32  }
    33  
    34  // MakeRaw creates a quad with provided raw values (nquads-escaped).
    35  //
    36  // Deprecated: use Make pr MakeIRI instead.
    37  func MakeRaw(subject, predicate, object, label string) Quad {
    38  	return quad.MakeRaw(subject, predicate, object, label)
    39  }
    40  
    41  // MakeIRI creates a quad with provided IRI values.
    42  //
    43  // Deprecated: use github.com/cayleygraph/quad package instead.
    44  func MakeIRI(subject, predicate, object, label string) Quad {
    45  	return quad.MakeIRI(subject, predicate, object, label)
    46  }
    47  
    48  // Our quad struct, used throughout.
    49  //
    50  // Deprecated: use github.com/cayleygraph/quad package instead.
    51  type Quad = quad.Quad
    52  
    53  // Direction specifies an edge's type.
    54  //
    55  // Deprecated: use github.com/cayleygraph/quad package instead.
    56  type Direction = quad.Direction
    57  
    58  // List of the valid directions of a quad.
    59  const (
    60  	Any       = quad.Any
    61  	Subject   = quad.Subject
    62  	Predicate = quad.Predicate
    63  	Object    = quad.Object
    64  	Label     = quad.Label
    65  )
    66  
    67  var Directions = quad.Directions
    68  
    69  type ByQuadString = quad.ByQuadString