domainpb

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RecordType_name = map[int32]string{
		0: "NARTHEX",
		1: "SCHEMA",
		2: "VOCABULARY",
		3: "SOURCE",
		4: "CACHE",
	}
	RecordType_value = map[string]int32{
		"NARTHEX":    0,
		"SCHEMA":     1,
		"VOCABULARY": 2,
		"SOURCE":     3,
		"CACHE":      4,
	}
)

Enum value maps for RecordType.

View Source
var File_ikuzo_domain_domainpb_domain_proto protoreflect.FileDescriptor
View Source
var File_ikuzo_domain_domainpb_index_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Entry

type Entry struct {
	ID          string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Value       string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
	Language    string `protobuf:"bytes,3,opt,name=Language,proto3" json:"Language,omitempty"`
	Datatype    string `protobuf:"bytes,4,opt,name=Datatype,proto3" json:"Datatype,omitempty"`
	Entrytype   string `protobuf:"bytes,5,opt,name=Entrytype,proto3" json:"Entrytype,omitempty"`
	Predicate   string `protobuf:"bytes,6,opt,name=Predicate,proto3" json:"Predicate,omitempty"`
	SearchLabel string `protobuf:"bytes,7,opt,name=SearchLabel,proto3" json:"SearchLabel,omitempty"`
	// the rest are index specific fields that take the Value and add it to typed fields
	Level     int32       `protobuf:"varint,8,opt,name=level,proto3" json:"level,omitempty"`
	Tags      []string    `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"`
	Date      []string    `protobuf:"bytes,10,rep,name=date,proto3" json:"date,omitempty"`
	Integer   int32       `protobuf:"varint,11,opt,name=integer,proto3" json:"integer,omitempty"`
	Float     float32     `protobuf:"fixed32,12,opt,name=Float,proto3" json:"Float,omitempty"`
	IntRange  *IndexRange `protobuf:"bytes,13,opt,name=intRange,proto3" json:"intRange,omitempty"`
	DateRange *IndexRange `protobuf:"bytes,14,opt,name=dateRange,proto3" json:"dateRange,omitempty"`
	LatLong   string      `protobuf:"bytes,15,opt,name=latLong,proto3" json:"latLong,omitempty"`
	Order     int32       `protobuf:"varint,16,opt,name=order,proto3" json:"order,omitempty"`
	// Inline is only used for presentation after the graph is resolved
	Inline *Resource `protobuf:"bytes,17,opt,name=Inline,proto3" json:"Inline,omitempty"`
	// contains filtered or unexported fields
}

func (*Entry) Descriptor deprecated

func (*Entry) Descriptor() ([]byte, []int)

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetDatatype

func (x *Entry) GetDatatype() string

func (*Entry) GetDate

func (x *Entry) GetDate() []string

func (*Entry) GetDateRange

func (x *Entry) GetDateRange() *IndexRange

func (*Entry) GetEntrytype

func (x *Entry) GetEntrytype() string

func (*Entry) GetFloat

func (x *Entry) GetFloat() float32

func (*Entry) GetID

func (x *Entry) GetID() string

func (*Entry) GetInline

func (x *Entry) GetInline() *Resource

func (*Entry) GetIntRange

func (x *Entry) GetIntRange() *IndexRange

func (*Entry) GetInteger

func (x *Entry) GetInteger() int32

func (*Entry) GetLanguage

func (x *Entry) GetLanguage() string

func (*Entry) GetLatLong

func (x *Entry) GetLatLong() string

func (*Entry) GetLevel

func (x *Entry) GetLevel() int32

func (*Entry) GetOrder

func (x *Entry) GetOrder() int32

func (*Entry) GetPredicate

func (x *Entry) GetPredicate() string

func (*Entry) GetSearchLabel

func (x *Entry) GetSearchLabel() string

func (*Entry) GetTags

func (x *Entry) GetTags() []string

func (*Entry) GetValue

func (x *Entry) GetValue() string

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

func (x *Entry) ProtoReflect() protoreflect.Message

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string
type Header struct {

	// The tenant identifier for this RecordType.
	OrgID string `protobuf:"bytes,1,opt,name=orgID,proto3" json:"orgID,omitempty"`
	// The spec is the unique dataset string to identify which dataset  this
	// Fragment belongs to
	Spec string `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
	// The revision is used to determine which version is an orphan and should be removed
	Revision int32 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"`
	// The hubId is the unique identifier for any document record in hub3
	HubID string `protobuf:"bytes,4,opt,name=hubID,proto3" json:"hubID,omitempty"`
	// Each fragment can be tagged with additional metadata. This can be queried for.
	// Some examples are 'resource', 'literal', 'bnode', 'rdfType', etc.
	Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	// The document type for ElasticSearch. This is a constant value
	DocType string `protobuf:"bytes,6,opt,name=docType,proto3" json:"docType,omitempty"`
	// The subject of the graph stored
	EntryURI string `protobuf:"bytes,7,opt,name=entryURI,proto3" json:"entryURI,omitempty"`
	// the graph name of the graph stored
	NamedGraphURI string `protobuf:"bytes,8,opt,name=namedGraphURI,proto3" json:"namedGraphURI,omitempty"`
	// miliseconds since epoch
	Modified int64 `protobuf:"varint,9,opt,name=modified,proto3" json:"modified,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

func (*Header) Descriptor() ([]byte, []int)

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetDocType

func (x *Header) GetDocType() string

func (*Header) GetEntryURI

func (x *Header) GetEntryURI() string

func (*Header) GetHubID

func (x *Header) GetHubID() string

func (*Header) GetModified

func (x *Header) GetModified() int64

func (*Header) GetNamedGraphURI

func (x *Header) GetNamedGraphURI() string

func (*Header) GetOrgID

func (x *Header) GetOrgID() string

func (*Header) GetRevision

func (x *Header) GetRevision() int32

func (*Header) GetSpec

func (x *Header) GetSpec() string

func (*Header) GetTags

func (x *Header) GetTags() []string

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type IndexMessage

type IndexMessage struct {
	OrganisationID string    `protobuf:"bytes,1,opt,name=OrganisationID,proto3" json:"OrganisationID,omitempty"`
	DatasetID      string    `protobuf:"bytes,2,opt,name=DatasetID,proto3" json:"DatasetID,omitempty"`
	RecordID       string    `protobuf:"bytes,3,opt,name=RecordID,proto3" json:"RecordID,omitempty"`
	IndexName      string    `protobuf:"bytes,4,opt,name=IndexName,proto3" json:"IndexName,omitempty"`
	Deleted        bool      `protobuf:"varint,5,opt,name=Deleted,proto3" json:"Deleted,omitempty"`
	Revision       *Revision `protobuf:"bytes,6,opt,name=Revision,proto3" json:"Revision,omitempty"`
	Source         []byte    `protobuf:"bytes,7,opt,name=Source,proto3" json:"Source,omitempty"`
	// contains filtered or unexported fields
}

IndexMessage is used to queue messages for indexing by ElasticSearch.

func (*IndexMessage) Descriptor deprecated

func (*IndexMessage) Descriptor() ([]byte, []int)

Deprecated: Use IndexMessage.ProtoReflect.Descriptor instead.

func (*IndexMessage) GetDatasetID

func (x *IndexMessage) GetDatasetID() string

func (*IndexMessage) GetDeleted

func (x *IndexMessage) GetDeleted() bool

func (*IndexMessage) GetIndexName

func (x *IndexMessage) GetIndexName() string

func (*IndexMessage) GetOrganisationID

func (x *IndexMessage) GetOrganisationID() string

func (*IndexMessage) GetRecordID

func (x *IndexMessage) GetRecordID() string

func (*IndexMessage) GetRevision

func (x *IndexMessage) GetRevision() *Revision

func (*IndexMessage) GetSource

func (x *IndexMessage) GetSource() []byte

func (*IndexMessage) ProtoMessage

func (*IndexMessage) ProtoMessage()

func (*IndexMessage) ProtoReflect

func (x *IndexMessage) ProtoReflect() protoreflect.Message

func (*IndexMessage) Reset

func (x *IndexMessage) Reset()

func (*IndexMessage) String

func (x *IndexMessage) String() string

type IndexRange

type IndexRange struct {
	Gte string `protobuf:"bytes,1,opt,name=gte,proto3" json:"gte,omitempty"`
	Lte string `protobuf:"bytes,2,opt,name=lte,proto3" json:"lte,omitempty"`
	// contains filtered or unexported fields
}

func (*IndexRange) Descriptor deprecated

func (*IndexRange) Descriptor() ([]byte, []int)

Deprecated: Use IndexRange.ProtoReflect.Descriptor instead.

func (*IndexRange) GetGte

func (x *IndexRange) GetGte() string

func (*IndexRange) GetLte

func (x *IndexRange) GetLte() string

func (*IndexRange) ProtoMessage

func (*IndexRange) ProtoMessage()

func (*IndexRange) ProtoReflect

func (x *IndexRange) ProtoReflect() protoreflect.Message

func (*IndexRange) Reset

func (x *IndexRange) Reset()

func (*IndexRange) String

func (x *IndexRange) String() string

type RecordGraph

type RecordGraph struct {
	Meta          *Header     `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	EntryURI      string      `protobuf:"bytes,2,opt,name=entryURI,proto3" json:"entryURI,omitempty"`
	NamedGraphURI string      `protobuf:"bytes,3,opt,name=namedGraphURI,proto3" json:"namedGraphURI,omitempty"`
	RecordType    RecordType  `protobuf:"varint,4,opt,name=recordType,proto3,enum=domainpb.RecordType" json:"recordType,omitempty"`
	Resources     []*Resource `protobuf:"bytes,5,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordGraph) Descriptor deprecated

func (*RecordGraph) Descriptor() ([]byte, []int)

Deprecated: Use RecordGraph.ProtoReflect.Descriptor instead.

func (*RecordGraph) GetEntryURI

func (x *RecordGraph) GetEntryURI() string

func (*RecordGraph) GetMeta

func (x *RecordGraph) GetMeta() *Header

func (*RecordGraph) GetNamedGraphURI

func (x *RecordGraph) GetNamedGraphURI() string

func (*RecordGraph) GetRecordType

func (x *RecordGraph) GetRecordType() RecordType

func (*RecordGraph) GetResources

func (x *RecordGraph) GetResources() []*Resource

func (*RecordGraph) ProtoMessage

func (*RecordGraph) ProtoMessage()

func (*RecordGraph) ProtoReflect

func (x *RecordGraph) ProtoReflect() protoreflect.Message

func (*RecordGraph) Reset

func (x *RecordGraph) Reset()

func (*RecordGraph) String

func (x *RecordGraph) String() string

type RecordType

type RecordType int32
const (
	RecordType_NARTHEX    RecordType = 0
	RecordType_SCHEMA     RecordType = 1
	RecordType_VOCABULARY RecordType = 2
	RecordType_SOURCE     RecordType = 3
	RecordType_CACHE      RecordType = 4
)

func (RecordType) Descriptor

func (RecordType) Descriptor() protoreflect.EnumDescriptor

func (RecordType) Enum

func (x RecordType) Enum() *RecordType

func (RecordType) EnumDescriptor deprecated

func (RecordType) EnumDescriptor() ([]byte, []int)

Deprecated: Use RecordType.Descriptor instead.

func (RecordType) Number

func (x RecordType) Number() protoreflect.EnumNumber

func (RecordType) String

func (x RecordType) String() string

func (RecordType) Type

type ReferrerContext

type ReferrerContext struct {
	Subject      string   `protobuf:"bytes,1,opt,name=Subject,proto3" json:"Subject,omitempty"`
	SubjectClass []string `protobuf:"bytes,2,rep,name=SubjectClass,proto3" json:"SubjectClass,omitempty"`
	Predicate    string   `protobuf:"bytes,3,opt,name=Predicate,proto3" json:"Predicate,omitempty"`
	SearchLabel  string   `protobuf:"bytes,4,opt,name=SearchLabel,proto3" json:"SearchLabel,omitempty"`
	Level        int32    `protobuf:"varint,5,opt,name=Level,proto3" json:"Level,omitempty"`
	ObjectID     string   `protobuf:"bytes,6,opt,name=ObjectID,proto3" json:"ObjectID,omitempty"`
	SortKey      int32    `protobuf:"varint,7,opt,name=SortKey,proto3" json:"SortKey,omitempty"`
	Label        string   `protobuf:"bytes,8,opt,name=Label,proto3" json:"Label,omitempty"`
	// contains filtered or unexported fields
}

ReferrerContext holds the referrer in formation for creating new fragments

func (*ReferrerContext) Descriptor deprecated

func (*ReferrerContext) Descriptor() ([]byte, []int)

Deprecated: Use ReferrerContext.ProtoReflect.Descriptor instead.

func (*ReferrerContext) GetLabel

func (x *ReferrerContext) GetLabel() string

func (*ReferrerContext) GetLevel

func (x *ReferrerContext) GetLevel() int32

func (*ReferrerContext) GetObjectID

func (x *ReferrerContext) GetObjectID() string

func (*ReferrerContext) GetPredicate

func (x *ReferrerContext) GetPredicate() string

func (*ReferrerContext) GetSearchLabel

func (x *ReferrerContext) GetSearchLabel() string

func (*ReferrerContext) GetSortKey

func (x *ReferrerContext) GetSortKey() int32

func (*ReferrerContext) GetSubject

func (x *ReferrerContext) GetSubject() string

func (*ReferrerContext) GetSubjectClass

func (x *ReferrerContext) GetSubjectClass() []string

func (*ReferrerContext) ProtoMessage

func (*ReferrerContext) ProtoMessage()

func (*ReferrerContext) ProtoReflect

func (x *ReferrerContext) ProtoReflect() protoreflect.Message

func (*ReferrerContext) Reset

func (x *ReferrerContext) Reset()

func (*ReferrerContext) String

func (x *ReferrerContext) String() string

type Resource

type Resource struct {
	ID                   string             `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Types                []string           `protobuf:"bytes,2,rep,name=Types,proto3" json:"Types,omitempty"`
	GraphExternalContext []*ReferrerContext `protobuf:"bytes,3,rep,name=GraphExternalContext,proto3" json:"GraphExternalContext,omitempty"`
	Context              []*ReferrerContext `protobuf:"bytes,4,rep,name=Context,proto3" json:"Context,omitempty"`
	Predicates           map[string]*Entry  `` /* 161-byte string literal not displayed */
	ObjectIDs            []*ReferrerContext `protobuf:"bytes,7,rep,name=ObjectIDs,proto3" json:"ObjectIDs,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated

func (*Resource) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetContext

func (x *Resource) GetContext() []*ReferrerContext

func (*Resource) GetGraphExternalContext

func (x *Resource) GetGraphExternalContext() []*ReferrerContext

func (*Resource) GetID

func (x *Resource) GetID() string

func (*Resource) GetObjectIDs

func (x *Resource) GetObjectIDs() []*ReferrerContext

func (*Resource) GetPredicates

func (x *Resource) GetPredicates() map[string]*Entry

func (*Resource) GetTypes

func (x *Resource) GetTypes() []string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

func (x *Resource) ProtoReflect() protoreflect.Message

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

type Revision

type Revision struct {
	SHA  string `protobuf:"bytes,1,opt,name=SHA,proto3" json:"SHA,omitempty"`
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Version of the record in the time-revision-store.

func (*Revision) Descriptor deprecated

func (*Revision) Descriptor() ([]byte, []int)

Deprecated: Use Revision.ProtoReflect.Descriptor instead.

func (*Revision) GetPath

func (x *Revision) GetPath() string

func (*Revision) GetSHA

func (x *Revision) GetSHA() string

func (*Revision) ProtoMessage

func (*Revision) ProtoMessage()

func (*Revision) ProtoReflect

func (x *Revision) ProtoReflect() protoreflect.Message

func (*Revision) Reset

func (x *Revision) Reset()

func (*Revision) String

func (x *Revision) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL