Documentation ¶
Overview ¶
Package pquads implements Cayley-specific protobuf-based quads format.
Index ¶
- Constants
- Variables
- func Marshal(source quad.Value) (data []byte, err error)
- func MarshalValue(v quad.Value) ([]byte, error)
- func Register(v interface{})
- func Unmarshal(data []byte, dest *quad.Value) (err error)
- func UnmarshalValue(data []byte) (quad.Value, error)
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetFull() bool
- func (m *Header) GetNotStrict() bool
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) ProtoSize() (n int)
- func (m *Header) Reset()
- func (m *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) error
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type Options
- type Quad
- func (*Quad) Descriptor() ([]byte, []int)
- func (m *Quad) GetLabel() string
- func (m *Quad) GetLabelValue() *Value
- func (m *Quad) GetObject() string
- func (m *Quad) GetObjectValue() *Value
- func (m *Quad) GetPredicate() string
- func (m *Quad) GetPredicateValue() *Value
- func (m *Quad) GetSubject() string
- func (m *Quad) GetSubjectValue() *Value
- func (m *Quad) Marshal() (dAtA []byte, err error)
- func (m *Quad) MarshalTo(dAtA []byte) (int, error)
- func (m *Quad) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Quad) ProtoMessage()
- func (m *Quad) ProtoSize() (n int)
- func (m *Quad) Reset()
- func (m *Quad) String() string
- func (m *Quad) ToNative() (q quad.Quad)
- func (m *Quad) Unmarshal(dAtA []byte) error
- func (m *Quad) Upgrade()
- func (m *Quad) XXX_DiscardUnknown()
- func (m *Quad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Quad) XXX_Merge(src proto.Message)
- func (m *Quad) XXX_Size() int
- func (m *Quad) XXX_Unmarshal(b []byte) error
- type Reader
- type StrictQuad
- func (*StrictQuad) Descriptor() ([]byte, []int)
- func (m *StrictQuad) GetLabel() *StrictQuad_Ref
- func (m *StrictQuad) GetObject() *Value
- func (m *StrictQuad) GetPredicate() *StrictQuad_Ref
- func (m *StrictQuad) GetSubject() *StrictQuad_Ref
- func (m *StrictQuad) Marshal() (dAtA []byte, err error)
- func (m *StrictQuad) MarshalTo(dAtA []byte) (int, error)
- func (m *StrictQuad) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StrictQuad) ProtoMessage()
- func (m *StrictQuad) ProtoSize() (n int)
- func (m *StrictQuad) Reset()
- func (m *StrictQuad) String() string
- func (m *StrictQuad) ToNative() (q quad.Quad)
- func (m *StrictQuad) Unmarshal(dAtA []byte) error
- func (m *StrictQuad) XXX_DiscardUnknown()
- func (m *StrictQuad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StrictQuad) XXX_Merge(src proto.Message)
- func (m *StrictQuad) XXX_Size() int
- func (m *StrictQuad) XXX_Unmarshal(b []byte) error
- type StrictQuadRaw
- func (*StrictQuadRaw) Descriptor() ([]byte, []int)
- func (m *StrictQuadRaw) GetLabel() []byte
- func (m *StrictQuadRaw) GetObject() []byte
- func (m *StrictQuadRaw) GetPredicate() []byte
- func (m *StrictQuadRaw) GetSubject() []byte
- func (m *StrictQuadRaw) Marshal() (dAtA []byte, err error)
- func (m *StrictQuadRaw) MarshalTo(dAtA []byte) (int, error)
- func (m *StrictQuadRaw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StrictQuadRaw) ProtoMessage()
- func (m *StrictQuadRaw) ProtoSize() (n int)
- func (m *StrictQuadRaw) Reset()
- func (m *StrictQuadRaw) String() string
- func (m *StrictQuadRaw) Unmarshal(dAtA []byte) error
- func (m *StrictQuadRaw) XXX_DiscardUnknown()
- func (m *StrictQuadRaw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StrictQuadRaw) XXX_Merge(src proto.Message)
- func (m *StrictQuadRaw) XXX_Size() int
- func (m *StrictQuadRaw) XXX_Unmarshal(b []byte) error
- type StrictQuad_Ref
- func (*StrictQuad_Ref) Descriptor() ([]byte, []int)
- func (m *StrictQuad_Ref) GetBnodeLabel() string
- func (m *StrictQuad_Ref) GetIri() string
- func (m *StrictQuad_Ref) GetValue() isStrictQuad_Ref_Value
- func (m *StrictQuad_Ref) Marshal() (dAtA []byte, err error)
- func (m *StrictQuad_Ref) MarshalTo(dAtA []byte) (int, error)
- func (m *StrictQuad_Ref) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StrictQuad_Ref) ProtoMessage()
- func (m *StrictQuad_Ref) ProtoSize() (n int)
- func (m *StrictQuad_Ref) Reset()
- func (m *StrictQuad_Ref) String() string
- func (m *StrictQuad_Ref) ToNative() (qv quad.Value)
- func (m *StrictQuad_Ref) Unmarshal(dAtA []byte) error
- func (m *StrictQuad_Ref) XXX_DiscardUnknown()
- func (m *StrictQuad_Ref) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StrictQuad_Ref) XXX_Merge(src proto.Message)
- func (*StrictQuad_Ref) XXX_OneofWrappers() []interface{}
- func (m *StrictQuad_Ref) XXX_Size() int
- func (m *StrictQuad_Ref) XXX_Unmarshal(b []byte) error
- type StrictQuad_Ref_BnodeLabel
- type StrictQuad_Ref_Iri
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (m *Value) GetBnode() string
- func (m *Value) GetBoolean() bool
- func (m *Value) GetFloat() float64
- func (m *Value) GetInt() int64
- func (m *Value) GetIri() string
- func (m *Value) GetLangStr() *Value_LangString
- func (m *Value) GetRaw() []byte
- func (m *Value) GetStr() string
- func (m *Value) GetStruct() []byte
- func (m *Value) GetTime() *Value_Timestamp
- func (m *Value) GetTypedStr() *Value_TypedString
- func (m *Value) GetValue() isValue_Value
- func (m *Value) Marshal() (dAtA []byte, err error)
- func (m *Value) MarshalTo(dAtA []byte) (int, error)
- func (m *Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Value) ProtoMessage()
- func (m *Value) ProtoSize() (n int)
- func (m *Value) Reset()
- func (m *Value) String() string
- func (m *Value) ToNative() (qv quad.Value)
- func (m *Value) Unmarshal(dAtA []byte) error
- func (m *Value) XXX_DiscardUnknown()
- func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Value) XXX_Merge(src proto.Message)
- func (*Value) XXX_OneofWrappers() []interface{}
- func (m *Value) XXX_Size() int
- func (m *Value) XXX_Unmarshal(b []byte) error
- type Value_Bnode
- type Value_Boolean
- type Value_Float
- type Value_Int
- type Value_Iri
- type Value_LangStr
- type Value_LangString
- func (*Value_LangString) Descriptor() ([]byte, []int)
- func (m *Value_LangString) GetLang() string
- func (m *Value_LangString) GetValue() string
- func (m *Value_LangString) Marshal() (dAtA []byte, err error)
- func (m *Value_LangString) MarshalTo(dAtA []byte) (int, error)
- func (m *Value_LangString) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Value_LangString) ProtoMessage()
- func (m *Value_LangString) ProtoSize() (n int)
- func (m *Value_LangString) Reset()
- func (m *Value_LangString) String() string
- func (m *Value_LangString) Unmarshal(dAtA []byte) error
- func (m *Value_LangString) XXX_DiscardUnknown()
- func (m *Value_LangString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Value_LangString) XXX_Merge(src proto.Message)
- func (m *Value_LangString) XXX_Size() int
- func (m *Value_LangString) XXX_Unmarshal(b []byte) error
- type Value_Raw
- type Value_Str
- type Value_Struct
- type Value_Time
- type Value_Timestamp
- func (*Value_Timestamp) Descriptor() ([]byte, []int)
- func (m *Value_Timestamp) GetNanos() int32
- func (m *Value_Timestamp) GetSeconds() int64
- func (m *Value_Timestamp) Marshal() (dAtA []byte, err error)
- func (m *Value_Timestamp) MarshalTo(dAtA []byte) (int, error)
- func (m *Value_Timestamp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Value_Timestamp) ProtoMessage()
- func (m *Value_Timestamp) ProtoSize() (n int)
- func (m *Value_Timestamp) Reset()
- func (m *Value_Timestamp) String() string
- func (m *Value_Timestamp) Unmarshal(dAtA []byte) error
- func (m *Value_Timestamp) XXX_DiscardUnknown()
- func (m *Value_Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Value_Timestamp) XXX_Merge(src proto.Message)
- func (m *Value_Timestamp) XXX_Size() int
- func (m *Value_Timestamp) XXX_Unmarshal(b []byte) error
- type Value_TypedStr
- type Value_TypedString
- func (*Value_TypedString) Descriptor() ([]byte, []int)
- func (m *Value_TypedString) GetType() string
- func (m *Value_TypedString) GetValue() string
- func (m *Value_TypedString) Marshal() (dAtA []byte, err error)
- func (m *Value_TypedString) MarshalTo(dAtA []byte) (int, error)
- func (m *Value_TypedString) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Value_TypedString) ProtoMessage()
- func (m *Value_TypedString) ProtoSize() (n int)
- func (m *Value_TypedString) Reset()
- func (m *Value_TypedString) String() string
- func (m *Value_TypedString) Unmarshal(dAtA []byte) error
- func (m *Value_TypedString) XXX_DiscardUnknown()
- func (m *Value_TypedString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Value_TypedString) XXX_Merge(src proto.Message)
- func (m *Value_TypedString) XXX_Size() int
- func (m *Value_TypedString) XXX_Unmarshal(b []byte) error
- type WireQuad
- func (*WireQuad) Descriptor() ([]byte, []int)
- func (m *WireQuad) GetLabel() *Value
- func (m *WireQuad) GetObject() *Value
- func (m *WireQuad) GetPredicate() *Value
- func (m *WireQuad) GetSubject() *Value
- func (m *WireQuad) Marshal() (dAtA []byte, err error)
- func (m *WireQuad) MarshalTo(dAtA []byte) (int, error)
- func (m *WireQuad) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WireQuad) ProtoMessage()
- func (m *WireQuad) ProtoSize() (n int)
- func (m *WireQuad) Reset()
- func (m *WireQuad) String() string
- func (m *WireQuad) ToNative() (q quad.Quad)
- func (m *WireQuad) Unmarshal(dAtA []byte) error
- func (m *WireQuad) XXX_DiscardUnknown()
- func (m *WireQuad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WireQuad) XXX_Merge(src proto.Message)
- func (m *WireQuad) XXX_Size() int
- func (m *WireQuad) XXX_Unmarshal(b []byte) error
- type WireQuadRaw
- func (*WireQuadRaw) Descriptor() ([]byte, []int)
- func (m *WireQuadRaw) GetLabel() []byte
- func (m *WireQuadRaw) GetObject() []byte
- func (m *WireQuadRaw) GetPredicate() []byte
- func (m *WireQuadRaw) GetSubject() []byte
- func (m *WireQuadRaw) Marshal() (dAtA []byte, err error)
- func (m *WireQuadRaw) MarshalTo(dAtA []byte) (int, error)
- func (m *WireQuadRaw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WireQuadRaw) ProtoMessage()
- func (m *WireQuadRaw) ProtoSize() (n int)
- func (m *WireQuadRaw) Reset()
- func (m *WireQuadRaw) String() string
- func (m *WireQuadRaw) Unmarshal(dAtA []byte) error
- func (m *WireQuadRaw) XXX_DiscardUnknown()
- func (m *WireQuadRaw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WireQuadRaw) XXX_Merge(src proto.Message)
- func (m *WireQuadRaw) XXX_Size() int
- func (m *WireQuadRaw) XXX_Unmarshal(b []byte) error
- type Writer
Constants ¶
const ContentType = "application/x-protobuf"
Variables ¶
var ( ErrInvalidLengthQuads = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuads = fmt.Errorf("proto: integer overflow") )
var DefaultMaxSize = 1024 * 1024
Functions ¶
func MarshalValue ¶
MarshalValue is a helper for serialization of quad.Value.
Types ¶
type Header ¶
type Header struct { // Full is set if encoder always writes every quad directions instead of // skipping duplicated values on each direction (except label) for subsequent quads. Full bool `protobuf:"varint,1,opt,name=full,proto3" json:"full,omitempty"` // NotStrict is set if encoder emits WireQuad instead of StrictQuad messages. NotStrict bool `protobuf:"varint,2,opt,name=not_strict,json=notStrict,proto3" json:"not_strict,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Header) Descriptor ¶
func (*Header) GetNotStrict ¶
func (*Header) MarshalToSizedBuffer ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type Quad ¶
type Quad struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` Object string `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"` Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` SubjectValue *Value `protobuf:"bytes,5,opt,name=subject_value,json=subjectValue,proto3" json:"subject_value,omitempty"` PredicateValue *Value `protobuf:"bytes,6,opt,name=predicate_value,json=predicateValue,proto3" json:"predicate_value,omitempty"` ObjectValue *Value `protobuf:"bytes,7,opt,name=object_value,json=objectValue,proto3" json:"object_value,omitempty"` LabelValue *Value `protobuf:"bytes,8,opt,name=label_value,json=labelValue,proto3" json:"label_value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Quad is in internal representation of quad used by Cayley.
func (*Quad) Descriptor ¶
func (*Quad) GetLabelValue ¶
func (*Quad) GetObjectValue ¶
func (*Quad) GetPredicate ¶
func (*Quad) GetPredicateValue ¶
func (*Quad) GetSubject ¶
func (*Quad) GetSubjectValue ¶
func (*Quad) ProtoMessage ¶
func (*Quad) ProtoMessage()
func (*Quad) XXX_DiscardUnknown ¶
func (m *Quad) XXX_DiscardUnknown()
func (*Quad) XXX_Unmarshal ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
type StrictQuad ¶
type StrictQuad struct { Subject *StrictQuad_Ref `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Predicate *StrictQuad_Ref `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` Object *Value `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"` Label *StrictQuad_Ref `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
StrictQuad is a quad as described by RDF spec.
func (*StrictQuad) Descriptor ¶
func (*StrictQuad) Descriptor() ([]byte, []int)
func (*StrictQuad) GetLabel ¶
func (m *StrictQuad) GetLabel() *StrictQuad_Ref
func (*StrictQuad) GetObject ¶
func (m *StrictQuad) GetObject() *Value
func (*StrictQuad) GetPredicate ¶
func (m *StrictQuad) GetPredicate() *StrictQuad_Ref
func (*StrictQuad) GetSubject ¶
func (m *StrictQuad) GetSubject() *StrictQuad_Ref
func (*StrictQuad) Marshal ¶
func (m *StrictQuad) Marshal() (dAtA []byte, err error)
func (*StrictQuad) MarshalToSizedBuffer ¶
func (m *StrictQuad) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StrictQuad) ProtoMessage ¶
func (*StrictQuad) ProtoMessage()
func (*StrictQuad) ProtoSize ¶
func (m *StrictQuad) ProtoSize() (n int)
func (*StrictQuad) Reset ¶
func (m *StrictQuad) Reset()
func (*StrictQuad) String ¶
func (m *StrictQuad) String() string
func (*StrictQuad) ToNative ¶
func (m *StrictQuad) ToNative() (q quad.Quad)
ToNative converts protobuf StrictQuad to quad.Quad.
func (*StrictQuad) Unmarshal ¶
func (m *StrictQuad) Unmarshal(dAtA []byte) error
func (*StrictQuad) XXX_DiscardUnknown ¶
func (m *StrictQuad) XXX_DiscardUnknown()
func (*StrictQuad) XXX_Marshal ¶
func (m *StrictQuad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StrictQuad) XXX_Merge ¶
func (m *StrictQuad) XXX_Merge(src proto.Message)
func (*StrictQuad) XXX_Size ¶
func (m *StrictQuad) XXX_Size() int
func (*StrictQuad) XXX_Unmarshal ¶
func (m *StrictQuad) XXX_Unmarshal(b []byte) error
type StrictQuadRaw ¶
type StrictQuadRaw struct { Subject []byte `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Predicate []byte `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` Object []byte `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"` Label []byte `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
StrictQuadRaw is the same as StrictQuad, but doesn't decode underlying values.
func (*StrictQuadRaw) Descriptor ¶
func (*StrictQuadRaw) Descriptor() ([]byte, []int)
func (*StrictQuadRaw) GetLabel ¶
func (m *StrictQuadRaw) GetLabel() []byte
func (*StrictQuadRaw) GetObject ¶
func (m *StrictQuadRaw) GetObject() []byte
func (*StrictQuadRaw) GetPredicate ¶
func (m *StrictQuadRaw) GetPredicate() []byte
func (*StrictQuadRaw) GetSubject ¶
func (m *StrictQuadRaw) GetSubject() []byte
func (*StrictQuadRaw) Marshal ¶
func (m *StrictQuadRaw) Marshal() (dAtA []byte, err error)
func (*StrictQuadRaw) MarshalToSizedBuffer ¶
func (m *StrictQuadRaw) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StrictQuadRaw) ProtoMessage ¶
func (*StrictQuadRaw) ProtoMessage()
func (*StrictQuadRaw) ProtoSize ¶
func (m *StrictQuadRaw) ProtoSize() (n int)
func (*StrictQuadRaw) Reset ¶
func (m *StrictQuadRaw) Reset()
func (*StrictQuadRaw) String ¶
func (m *StrictQuadRaw) String() string
func (*StrictQuadRaw) Unmarshal ¶
func (m *StrictQuadRaw) Unmarshal(dAtA []byte) error
func (*StrictQuadRaw) XXX_DiscardUnknown ¶
func (m *StrictQuadRaw) XXX_DiscardUnknown()
func (*StrictQuadRaw) XXX_Marshal ¶
func (m *StrictQuadRaw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StrictQuadRaw) XXX_Merge ¶
func (m *StrictQuadRaw) XXX_Merge(src proto.Message)
func (*StrictQuadRaw) XXX_Size ¶
func (m *StrictQuadRaw) XXX_Size() int
func (*StrictQuadRaw) XXX_Unmarshal ¶
func (m *StrictQuadRaw) XXX_Unmarshal(b []byte) error
type StrictQuad_Ref ¶
type StrictQuad_Ref struct { // Types that are valid to be assigned to Value: // *StrictQuad_Ref_BnodeLabel // *StrictQuad_Ref_Iri Value isStrictQuad_Ref_Value `protobuf_oneof:"value"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StrictQuad_Ref) Descriptor ¶
func (*StrictQuad_Ref) Descriptor() ([]byte, []int)
func (*StrictQuad_Ref) GetBnodeLabel ¶
func (m *StrictQuad_Ref) GetBnodeLabel() string
func (*StrictQuad_Ref) GetIri ¶
func (m *StrictQuad_Ref) GetIri() string
func (*StrictQuad_Ref) GetValue ¶
func (m *StrictQuad_Ref) GetValue() isStrictQuad_Ref_Value
func (*StrictQuad_Ref) Marshal ¶
func (m *StrictQuad_Ref) Marshal() (dAtA []byte, err error)
func (*StrictQuad_Ref) MarshalToSizedBuffer ¶
func (m *StrictQuad_Ref) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StrictQuad_Ref) ProtoMessage ¶
func (*StrictQuad_Ref) ProtoMessage()
func (*StrictQuad_Ref) ProtoSize ¶
func (m *StrictQuad_Ref) ProtoSize() (n int)
func (*StrictQuad_Ref) Reset ¶
func (m *StrictQuad_Ref) Reset()
func (*StrictQuad_Ref) String ¶
func (m *StrictQuad_Ref) String() string
func (*StrictQuad_Ref) ToNative ¶
func (m *StrictQuad_Ref) ToNative() (qv quad.Value)
ToNative converts protobuf Value to quad.Value.
func (*StrictQuad_Ref) Unmarshal ¶
func (m *StrictQuad_Ref) Unmarshal(dAtA []byte) error
func (*StrictQuad_Ref) XXX_DiscardUnknown ¶
func (m *StrictQuad_Ref) XXX_DiscardUnknown()
func (*StrictQuad_Ref) XXX_Marshal ¶
func (m *StrictQuad_Ref) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StrictQuad_Ref) XXX_Merge ¶
func (m *StrictQuad_Ref) XXX_Merge(src proto.Message)
func (*StrictQuad_Ref) XXX_OneofWrappers ¶
func (*StrictQuad_Ref) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*StrictQuad_Ref) XXX_Size ¶
func (m *StrictQuad_Ref) XXX_Size() int
func (*StrictQuad_Ref) XXX_Unmarshal ¶
func (m *StrictQuad_Ref) XXX_Unmarshal(b []byte) error
type StrictQuad_Ref_BnodeLabel ¶
type StrictQuad_Ref_BnodeLabel struct {
BnodeLabel string `protobuf:"bytes,2,opt,name=bnode_label,json=bnodeLabel,proto3,oneof" json:"bnode_label,omitempty"`
}
func (*StrictQuad_Ref_BnodeLabel) MarshalTo ¶
func (m *StrictQuad_Ref_BnodeLabel) MarshalTo(dAtA []byte) (int, error)
func (*StrictQuad_Ref_BnodeLabel) MarshalToSizedBuffer ¶
func (m *StrictQuad_Ref_BnodeLabel) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StrictQuad_Ref_BnodeLabel) ProtoSize ¶
func (m *StrictQuad_Ref_BnodeLabel) ProtoSize() (n int)
type StrictQuad_Ref_Iri ¶
type StrictQuad_Ref_Iri struct {
Iri string `protobuf:"bytes,3,opt,name=iri,proto3,oneof" json:"iri,omitempty"`
}
func (*StrictQuad_Ref_Iri) MarshalTo ¶
func (m *StrictQuad_Ref_Iri) MarshalTo(dAtA []byte) (int, error)
func (*StrictQuad_Ref_Iri) MarshalToSizedBuffer ¶
func (m *StrictQuad_Ref_Iri) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StrictQuad_Ref_Iri) ProtoSize ¶
func (m *StrictQuad_Ref_Iri) ProtoSize() (n int)
type Value ¶
type Value struct { // Types that are valid to be assigned to Value: // *Value_Raw // *Value_Str // *Value_Iri // *Value_Bnode // *Value_TypedStr // *Value_LangStr // *Value_Int // *Value_Float // *Value_Boolean // *Value_Time // *Value_Struct Value isValue_Value `protobuf_oneof:"value"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Value) Descriptor ¶
func (*Value) GetBoolean ¶
func (*Value) GetLangStr ¶
func (m *Value) GetLangStr() *Value_LangString
func (*Value) GetTime ¶
func (m *Value) GetTime() *Value_Timestamp
func (*Value) GetTypedStr ¶
func (m *Value) GetTypedStr() *Value_TypedString
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) XXX_DiscardUnknown ¶
func (m *Value) XXX_DiscardUnknown()
func (*Value) XXX_Marshal ¶
func (*Value) XXX_OneofWrappers ¶
func (*Value) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Value) XXX_Unmarshal ¶
type Value_Bnode ¶
type Value_Bnode struct {
Bnode string `protobuf:"bytes,4,opt,name=bnode,proto3,oneof" json:"bnode,omitempty"`
}
func (*Value_Bnode) MarshalToSizedBuffer ¶
func (m *Value_Bnode) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Bnode) ProtoSize ¶
func (m *Value_Bnode) ProtoSize() (n int)
type Value_Boolean ¶
type Value_Boolean struct {
Boolean bool `protobuf:"varint,9,opt,name=boolean,proto3,oneof" json:"boolean,omitempty"`
}
func (*Value_Boolean) MarshalToSizedBuffer ¶
func (m *Value_Boolean) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Boolean) ProtoSize ¶
func (m *Value_Boolean) ProtoSize() (n int)
type Value_Float ¶
type Value_Float struct {
Float float64 `protobuf:"fixed64,8,opt,name=float,proto3,oneof" json:"float,omitempty"`
}
func (*Value_Float) MarshalToSizedBuffer ¶
func (m *Value_Float) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Float) ProtoSize ¶
func (m *Value_Float) ProtoSize() (n int)
type Value_Int ¶
type Value_Int struct {
Int int64 `protobuf:"varint,7,opt,name=int,proto3,oneof" json:"int,omitempty"`
}
func (*Value_Int) MarshalToSizedBuffer ¶
type Value_Iri ¶
type Value_Iri struct {
Iri string `protobuf:"bytes,3,opt,name=iri,proto3,oneof" json:"iri,omitempty"`
}
func (*Value_Iri) MarshalToSizedBuffer ¶
type Value_LangStr ¶
type Value_LangStr struct {
LangStr *Value_LangString `protobuf:"bytes,6,opt,name=lang_str,json=langStr,proto3,oneof" json:"lang_str,omitempty"`
}
func (*Value_LangStr) MarshalToSizedBuffer ¶
func (m *Value_LangStr) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_LangStr) ProtoSize ¶
func (m *Value_LangStr) ProtoSize() (n int)
type Value_LangString ¶
type Value_LangString struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Lang string `protobuf:"bytes,2,opt,name=lang,proto3" json:"lang,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Value_LangString) Descriptor ¶
func (*Value_LangString) Descriptor() ([]byte, []int)
func (*Value_LangString) GetLang ¶
func (m *Value_LangString) GetLang() string
func (*Value_LangString) GetValue ¶
func (m *Value_LangString) GetValue() string
func (*Value_LangString) Marshal ¶
func (m *Value_LangString) Marshal() (dAtA []byte, err error)
func (*Value_LangString) MarshalToSizedBuffer ¶
func (m *Value_LangString) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_LangString) ProtoMessage ¶
func (*Value_LangString) ProtoMessage()
func (*Value_LangString) ProtoSize ¶
func (m *Value_LangString) ProtoSize() (n int)
func (*Value_LangString) Reset ¶
func (m *Value_LangString) Reset()
func (*Value_LangString) String ¶
func (m *Value_LangString) String() string
func (*Value_LangString) Unmarshal ¶
func (m *Value_LangString) Unmarshal(dAtA []byte) error
func (*Value_LangString) XXX_DiscardUnknown ¶
func (m *Value_LangString) XXX_DiscardUnknown()
func (*Value_LangString) XXX_Marshal ¶
func (m *Value_LangString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Value_LangString) XXX_Merge ¶
func (m *Value_LangString) XXX_Merge(src proto.Message)
func (*Value_LangString) XXX_Size ¶
func (m *Value_LangString) XXX_Size() int
func (*Value_LangString) XXX_Unmarshal ¶
func (m *Value_LangString) XXX_Unmarshal(b []byte) error
type Value_Raw ¶
type Value_Raw struct {
Raw []byte `protobuf:"bytes,1,opt,name=raw,proto3,oneof" json:"raw,omitempty"`
}
func (*Value_Raw) MarshalToSizedBuffer ¶
type Value_Str ¶
type Value_Str struct {
Str string `protobuf:"bytes,2,opt,name=str,proto3,oneof" json:"str,omitempty"`
}
func (*Value_Str) MarshalToSizedBuffer ¶
type Value_Struct ¶
type Value_Struct struct {
Struct []byte `protobuf:"bytes,11,opt,name=struct,proto3,oneof" json:"struct,omitempty"`
}
func (*Value_Struct) MarshalToSizedBuffer ¶
func (m *Value_Struct) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Struct) ProtoSize ¶
func (m *Value_Struct) ProtoSize() (n int)
type Value_Time ¶
type Value_Time struct {
Time *Value_Timestamp `protobuf:"bytes,10,opt,name=time,proto3,oneof" json:"time,omitempty"`
}
func (*Value_Time) MarshalToSizedBuffer ¶
func (m *Value_Time) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Time) ProtoSize ¶
func (m *Value_Time) ProtoSize() (n int)
type Value_Timestamp ¶
type Value_Timestamp struct { Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
From https://github.com/golang/protobuf/blob/master/ptypes/timestamp/timestamp.proto
func (*Value_Timestamp) Descriptor ¶
func (*Value_Timestamp) Descriptor() ([]byte, []int)
func (*Value_Timestamp) GetNanos ¶
func (m *Value_Timestamp) GetNanos() int32
func (*Value_Timestamp) GetSeconds ¶
func (m *Value_Timestamp) GetSeconds() int64
func (*Value_Timestamp) Marshal ¶
func (m *Value_Timestamp) Marshal() (dAtA []byte, err error)
func (*Value_Timestamp) MarshalToSizedBuffer ¶
func (m *Value_Timestamp) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Timestamp) ProtoMessage ¶
func (*Value_Timestamp) ProtoMessage()
func (*Value_Timestamp) ProtoSize ¶
func (m *Value_Timestamp) ProtoSize() (n int)
func (*Value_Timestamp) Reset ¶
func (m *Value_Timestamp) Reset()
func (*Value_Timestamp) String ¶
func (m *Value_Timestamp) String() string
func (*Value_Timestamp) Unmarshal ¶
func (m *Value_Timestamp) Unmarshal(dAtA []byte) error
func (*Value_Timestamp) XXX_DiscardUnknown ¶
func (m *Value_Timestamp) XXX_DiscardUnknown()
func (*Value_Timestamp) XXX_Marshal ¶
func (m *Value_Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Value_Timestamp) XXX_Merge ¶
func (m *Value_Timestamp) XXX_Merge(src proto.Message)
func (*Value_Timestamp) XXX_Size ¶
func (m *Value_Timestamp) XXX_Size() int
func (*Value_Timestamp) XXX_Unmarshal ¶
func (m *Value_Timestamp) XXX_Unmarshal(b []byte) error
type Value_TypedStr ¶
type Value_TypedStr struct {
TypedStr *Value_TypedString `protobuf:"bytes,5,opt,name=typed_str,json=typedStr,proto3,oneof" json:"typed_str,omitempty"`
}
func (*Value_TypedStr) MarshalToSizedBuffer ¶
func (m *Value_TypedStr) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_TypedStr) ProtoSize ¶
func (m *Value_TypedStr) ProtoSize() (n int)
type Value_TypedString ¶
type Value_TypedString struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Value_TypedString) Descriptor ¶
func (*Value_TypedString) Descriptor() ([]byte, []int)
func (*Value_TypedString) GetType ¶
func (m *Value_TypedString) GetType() string
func (*Value_TypedString) GetValue ¶
func (m *Value_TypedString) GetValue() string
func (*Value_TypedString) Marshal ¶
func (m *Value_TypedString) Marshal() (dAtA []byte, err error)
func (*Value_TypedString) MarshalTo ¶
func (m *Value_TypedString) MarshalTo(dAtA []byte) (int, error)
func (*Value_TypedString) MarshalToSizedBuffer ¶
func (m *Value_TypedString) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_TypedString) ProtoMessage ¶
func (*Value_TypedString) ProtoMessage()
func (*Value_TypedString) ProtoSize ¶
func (m *Value_TypedString) ProtoSize() (n int)
func (*Value_TypedString) Reset ¶
func (m *Value_TypedString) Reset()
func (*Value_TypedString) String ¶
func (m *Value_TypedString) String() string
func (*Value_TypedString) Unmarshal ¶
func (m *Value_TypedString) Unmarshal(dAtA []byte) error
func (*Value_TypedString) XXX_DiscardUnknown ¶
func (m *Value_TypedString) XXX_DiscardUnknown()
func (*Value_TypedString) XXX_Marshal ¶
func (m *Value_TypedString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Value_TypedString) XXX_Merge ¶
func (m *Value_TypedString) XXX_Merge(src proto.Message)
func (*Value_TypedString) XXX_Size ¶
func (m *Value_TypedString) XXX_Size() int
func (*Value_TypedString) XXX_Unmarshal ¶
func (m *Value_TypedString) XXX_Unmarshal(b []byte) error
type WireQuad ¶
type WireQuad struct { Subject *Value `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Predicate *Value `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` Object *Value `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"` Label *Value `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
WireQuad is a quad that allows any value for it's directions.
func (*WireQuad) Descriptor ¶
func (*WireQuad) GetPredicate ¶
func (*WireQuad) GetSubject ¶
func (*WireQuad) MarshalToSizedBuffer ¶
func (*WireQuad) ProtoMessage ¶
func (*WireQuad) ProtoMessage()
func (*WireQuad) XXX_DiscardUnknown ¶
func (m *WireQuad) XXX_DiscardUnknown()
func (*WireQuad) XXX_Marshal ¶
func (*WireQuad) XXX_Unmarshal ¶
type WireQuadRaw ¶
type WireQuadRaw struct { Subject []byte `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Predicate []byte `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` Object []byte `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"` Label []byte `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
WireQuadRaw is the same as WireQuad, but doesn't decode underlying values.
func (*WireQuadRaw) Descriptor ¶
func (*WireQuadRaw) Descriptor() ([]byte, []int)
func (*WireQuadRaw) GetLabel ¶
func (m *WireQuadRaw) GetLabel() []byte
func (*WireQuadRaw) GetObject ¶
func (m *WireQuadRaw) GetObject() []byte
func (*WireQuadRaw) GetPredicate ¶
func (m *WireQuadRaw) GetPredicate() []byte
func (*WireQuadRaw) GetSubject ¶
func (m *WireQuadRaw) GetSubject() []byte
func (*WireQuadRaw) Marshal ¶
func (m *WireQuadRaw) Marshal() (dAtA []byte, err error)
func (*WireQuadRaw) MarshalToSizedBuffer ¶
func (m *WireQuadRaw) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WireQuadRaw) ProtoMessage ¶
func (*WireQuadRaw) ProtoMessage()
func (*WireQuadRaw) ProtoSize ¶
func (m *WireQuadRaw) ProtoSize() (n int)
func (*WireQuadRaw) Reset ¶
func (m *WireQuadRaw) Reset()
func (*WireQuadRaw) String ¶
func (m *WireQuadRaw) String() string
func (*WireQuadRaw) Unmarshal ¶
func (m *WireQuadRaw) Unmarshal(dAtA []byte) error
func (*WireQuadRaw) XXX_DiscardUnknown ¶
func (m *WireQuadRaw) XXX_DiscardUnknown()
func (*WireQuadRaw) XXX_Marshal ¶
func (m *WireQuadRaw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WireQuadRaw) XXX_Merge ¶
func (m *WireQuadRaw) XXX_Merge(src proto.Message)
func (*WireQuadRaw) XXX_Size ¶
func (m *WireQuadRaw) XXX_Size() int
func (*WireQuadRaw) XXX_Unmarshal ¶
func (m *WireQuadRaw) XXX_Unmarshal(b []byte) error