models

package
v0.0.0-...-8832f83 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ActionsGetResponseAO1ResultStatusSUCCESS captures enum value "SUCCESS"
	ActionsGetResponseAO1ResultStatusSUCCESS string = "SUCCESS"

	// ActionsGetResponseAO1ResultStatusPENDING captures enum value "PENDING"
	ActionsGetResponseAO1ResultStatusPENDING string = "PENDING"

	// ActionsGetResponseAO1ResultStatusFAILED captures enum value "FAILED"
	ActionsGetResponseAO1ResultStatusFAILED string = "FAILED"
)
View Source
const (

	// PatchDocumentOpAdd captures enum value "add"
	PatchDocumentOpAdd string = "add"

	// PatchDocumentOpRemove captures enum value "remove"
	PatchDocumentOpRemove string = "remove"

	// PatchDocumentOpReplace captures enum value "replace"
	PatchDocumentOpReplace string = "replace"

	// PatchDocumentOpMove captures enum value "move"
	PatchDocumentOpMove string = "move"

	// PatchDocumentOpCopy captures enum value "copy"
	PatchDocumentOpCopy string = "copy"

	// PatchDocumentOpTest captures enum value "test"
	PatchDocumentOpTest string = "test"
)
View Source
const (

	// SemanticSchemaTypeThing captures enum value "thing"
	SemanticSchemaTypeThing string = "thing"

	// SemanticSchemaTypeAction captures enum value "action"
	SemanticSchemaTypeAction string = "action"
)
View Source
const (

	// SemanticSchemaClassPropertyCardinalityAtMostOne captures enum value "atMostOne"
	SemanticSchemaClassPropertyCardinalityAtMostOne string = "atMostOne"

	// SemanticSchemaClassPropertyCardinalityMany captures enum value "many"
	SemanticSchemaClassPropertyCardinalityMany string = "many"
)
View Source
const (

	// ThingsGetResponseAO1ResultStatusSUCCESS captures enum value "SUCCESS"
	ThingsGetResponseAO1ResultStatusSUCCESS string = "SUCCESS"

	// ThingsGetResponseAO1ResultStatusPENDING captures enum value "PENDING"
	ThingsGetResponseAO1ResultStatusPENDING string = "PENDING"

	// ThingsGetResponseAO1ResultStatusFAILED captures enum value "FAILED"
	ThingsGetResponseAO1ResultStatusFAILED string = "FAILED"
)
View Source
const (

	// ToolsMapRequestTypeZeroPointPosition captures enum value "zeroPointPosition"
	ToolsMapRequestTypeZeroPointPosition string = "zeroPointPosition"

	// ToolsMapRequestTypeCenterOfSelf captures enum value "centerOfSelf"
	ToolsMapRequestTypeCenterOfSelf string = "centerOfSelf"

	// ToolsMapRequestTypeCenterOfNetwork captures enum value "centerOfNetwork"
	ToolsMapRequestTypeCenterOfNetwork string = "centerOfNetwork"

	// ToolsMapRequestTypeCenterOfConcept captures enum value "centerOfConcept"
	ToolsMapRequestTypeCenterOfConcept string = "centerOfConcept"
)
View Source
const (

	// ToolsMapRequestResponseTypeZeroPointPosition captures enum value "zeroPointPosition"
	ToolsMapRequestResponseTypeZeroPointPosition string = "zeroPointPosition"

	// ToolsMapRequestResponseTypeCenterOfSelf captures enum value "centerOfSelf"
	ToolsMapRequestResponseTypeCenterOfSelf string = "centerOfSelf"

	// ToolsMapRequestResponseTypeCenterOfNetwork captures enum value "centerOfNetwork"
	ToolsMapRequestResponseTypeCenterOfNetwork string = "centerOfNetwork"

	// ToolsMapRequestResponseTypeCenterOfConcept captures enum value "centerOfConcept"
	ToolsMapRequestResponseTypeCenterOfConcept string = "centerOfConcept"
)
View Source
const (

	// ToolsMapRequestResponseResultsItems0TypeThing captures enum value "thing"
	ToolsMapRequestResponseResultsItems0TypeThing string = "thing"

	// ToolsMapRequestResponseResultsItems0TypeAction captures enum value "action"
	ToolsMapRequestResponseResultsItems0TypeAction string = "action"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	ActionCreate

	// Timestamp of creation of this Action in milliseconds since epoch UTC.
	CreationTimeUnix int64 `json:"creationTimeUnix,omitempty"`

	// Timestamp of the last update made to the Action since epoch UTC.
	LastUpdateTimeUnix int64 `json:"lastUpdateTimeUnix,omitempty"`
}

Action action swagger:model Action

func (*Action) MarshalBinary

func (m *Action) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (Action) MarshalJSON

func (m Action) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*Action) UnmarshalBinary

func (m *Action) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Action) UnmarshalJSON

func (m *Action) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*Action) Validate

func (m *Action) Validate(formats strfmt.Registry) error

Validate validates this action

type ActionCreate

type ActionCreate struct {

	// Type of the Action, defined in the schema.
	AtClass string `json:"@class,omitempty"`

	// Available context schema.
	AtContext string `json:"@context,omitempty"`

	// schema
	Schema Schema `json:"schema,omitempty"`
}

ActionCreate action create swagger:model ActionCreate

func (*ActionCreate) MarshalBinary

func (m *ActionCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActionCreate) UnmarshalBinary

func (m *ActionCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionCreate) Validate

func (m *ActionCreate) Validate(formats strfmt.Registry) error

Validate validates this action create

type ActionGetHistoryResponse

type ActionGetHistoryResponse struct {
	ActionHistory

	// action Id
	// Format: uuid
	ActionID strfmt.UUID `json:"actionId,omitempty"`
}

ActionGetHistoryResponse action get history response swagger:model ActionGetHistoryResponse

func (*ActionGetHistoryResponse) MarshalBinary

func (m *ActionGetHistoryResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ActionGetHistoryResponse) MarshalJSON

func (m ActionGetHistoryResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ActionGetHistoryResponse) UnmarshalBinary

func (m *ActionGetHistoryResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionGetHistoryResponse) UnmarshalJSON

func (m *ActionGetHistoryResponse) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ActionGetHistoryResponse) Validate

func (m *ActionGetHistoryResponse) Validate(formats strfmt.Registry) error

Validate validates this action get history response

type ActionGetResponse

type ActionGetResponse struct {
	Action

	// ID of the Action.
	// Format: uuid
	ActionID strfmt.UUID `json:"actionId,omitempty"`
}

ActionGetResponse action get response swagger:model ActionGetResponse

func (*ActionGetResponse) MarshalBinary

func (m *ActionGetResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ActionGetResponse) MarshalJSON

func (m ActionGetResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ActionGetResponse) UnmarshalBinary

func (m *ActionGetResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionGetResponse) UnmarshalJSON

func (m *ActionGetResponse) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ActionGetResponse) Validate

func (m *ActionGetResponse) Validate(formats strfmt.Registry) error

Validate validates this action get response

type ActionHistory

type ActionHistory struct {

	// Indication of whether the Action is deleted.
	Deleted bool `json:"deleted,omitempty"`

	// An array with the history of the Action.
	PropertyHistory []*ActionHistoryObject `json:"propertyHistory"`
}

ActionHistory action history swagger:model ActionHistory

func (*ActionHistory) MarshalBinary

func (m *ActionHistory) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActionHistory) UnmarshalBinary

func (m *ActionHistory) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionHistory) Validate

func (m *ActionHistory) Validate(formats strfmt.Registry) error

Validate validates this action history

type ActionHistoryObject

type ActionHistoryObject struct {
	ActionCreate

	// Timestamp of creation of this Action history in milliseconds since epoch UTC.
	CreationTimeUnix int64 `json:"creationTimeUnix,omitempty"`
}

ActionHistoryObject action history object swagger:model ActionHistoryObject

func (*ActionHistoryObject) MarshalBinary

func (m *ActionHistoryObject) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ActionHistoryObject) MarshalJSON

func (m ActionHistoryObject) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ActionHistoryObject) UnmarshalBinary

func (m *ActionHistoryObject) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionHistoryObject) UnmarshalJSON

func (m *ActionHistoryObject) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ActionHistoryObject) Validate

func (m *ActionHistoryObject) Validate(formats strfmt.Registry) error

Validate validates this action history object

type ActionUpdate

type ActionUpdate struct {
	Action

	ActionUpdateAllOf1
}

ActionUpdate action update swagger:model ActionUpdate

func (*ActionUpdate) MarshalBinary

func (m *ActionUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ActionUpdate) MarshalJSON

func (m ActionUpdate) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ActionUpdate) UnmarshalBinary

func (m *ActionUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionUpdate) UnmarshalJSON

func (m *ActionUpdate) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ActionUpdate) Validate

func (m *ActionUpdate) Validate(formats strfmt.Registry) error

Validate validates this action update

type ActionUpdateAllOf1

type ActionUpdateAllOf1 interface{}

ActionUpdateAllOf1 action update all of1 swagger:model ActionUpdateAllOf1

type ActionValidate

type ActionValidate struct {
	ActionCreate
}

ActionValidate action validate swagger:model ActionValidate

func (*ActionValidate) MarshalBinary

func (m *ActionValidate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ActionValidate) MarshalJSON

func (m ActionValidate) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ActionValidate) UnmarshalBinary

func (m *ActionValidate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionValidate) UnmarshalJSON

func (m *ActionValidate) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ActionValidate) Validate

func (m *ActionValidate) Validate(formats strfmt.Registry) error

Validate validates this action validate

type ActionsGetResponse

type ActionsGetResponse struct {
	Action

	// ID of the Action.
	// Format: uuid
	ActionID strfmt.UUID `json:"actionId,omitempty"`

	// result
	Result *ActionsGetResponseAO1Result `json:"result,omitempty"`
}

ActionsGetResponse actions get response swagger:model ActionsGetResponse

func (*ActionsGetResponse) MarshalBinary

func (m *ActionsGetResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ActionsGetResponse) MarshalJSON

func (m ActionsGetResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ActionsGetResponse) UnmarshalBinary

func (m *ActionsGetResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionsGetResponse) UnmarshalJSON

func (m *ActionsGetResponse) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ActionsGetResponse) Validate

func (m *ActionsGetResponse) Validate(formats strfmt.Registry) error

Validate validates this actions get response

type ActionsGetResponseAO1Result

type ActionsGetResponseAO1Result struct {

	// errors
	Errors *ErrorResponse `json:"errors,omitempty"`

	// status
	// Enum: [SUCCESS PENDING FAILED]
	Status *string `json:"status,omitempty"`
}

ActionsGetResponseAO1Result Results for this specific Action. swagger:model ActionsGetResponseAO1Result

func (*ActionsGetResponseAO1Result) MarshalBinary

func (m *ActionsGetResponseAO1Result) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActionsGetResponseAO1Result) UnmarshalBinary

func (m *ActionsGetResponseAO1Result) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionsGetResponseAO1Result) Validate

func (m *ActionsGetResponseAO1Result) Validate(formats strfmt.Registry) error

Validate validates this actions get response a o1 result

type ActionsListResponse

type ActionsListResponse struct {

	// The actual list of Actions.
	Actions []*ActionGetResponse `json:"actions"`

	// The total number of Actions for the query. The number of items in a response may be smaller due to paging.
	TotalResults int64 `json:"totalResults,omitempty"`
}

ActionsListResponse List of Actions. swagger:model ActionsListResponse

func (*ActionsListResponse) MarshalBinary

func (m *ActionsListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActionsListResponse) UnmarshalBinary

func (m *ActionsListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionsListResponse) Validate

func (m *ActionsListResponse) Validate(formats strfmt.Registry) error

Validate validates this actions list response

type ErrorResponse

type ErrorResponse struct {

	// error
	Error []*ErrorResponseErrorItems0 `json:"error"`
}

ErrorResponse An error response given by Weaviate end-points. swagger:model ErrorResponse

func (*ErrorResponse) MarshalBinary

func (m *ErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary

func (m *ErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

type ErrorResponseErrorItems0

type ErrorResponseErrorItems0 struct {

	// message
	Message string `json:"message,omitempty"`
}

ErrorResponseErrorItems0 error response error items0 swagger:model ErrorResponseErrorItems0

func (*ErrorResponseErrorItems0) MarshalBinary

func (m *ErrorResponseErrorItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponseErrorItems0) UnmarshalBinary

func (m *ErrorResponseErrorItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponseErrorItems0) Validate

func (m *ErrorResponseErrorItems0) Validate(formats strfmt.Registry) error

Validate validates this error response error items0

type GeoCoordinates

type GeoCoordinates struct {

	// The latitude of the point on earth in decimal form
	Latitude float32 `json:"latitude,omitempty"`

	// The longitude of the point on earth in decimal form
	Longitude float32 `json:"longitude,omitempty"`
}

GeoCoordinates geo coordinates swagger:model GeoCoordinates

func (*GeoCoordinates) MarshalBinary

func (m *GeoCoordinates) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GeoCoordinates) UnmarshalBinary

func (m *GeoCoordinates) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GeoCoordinates) Validate

func (m *GeoCoordinates) Validate(formats strfmt.Registry) error

Validate validates this geo coordinates

type GraphQLError

type GraphQLError struct {

	// locations
	Locations []*GraphQLErrorLocationsItems0 `json:"locations"`

	// message
	Message string `json:"message,omitempty"`

	// path
	Path []string `json:"path"`
}

GraphQLError An error response caused by a GraphQL query. swagger:model GraphQLError

func (*GraphQLError) MarshalBinary

func (m *GraphQLError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GraphQLError) UnmarshalBinary

func (m *GraphQLError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GraphQLError) Validate

func (m *GraphQLError) Validate(formats strfmt.Registry) error

Validate validates this graph q l error

type GraphQLErrorLocationsItems0

type GraphQLErrorLocationsItems0 struct {

	// column
	Column int64 `json:"column,omitempty"`

	// line
	Line int64 `json:"line,omitempty"`
}

GraphQLErrorLocationsItems0 graph q l error locations items0 swagger:model GraphQLErrorLocationsItems0

func (*GraphQLErrorLocationsItems0) MarshalBinary

func (m *GraphQLErrorLocationsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GraphQLErrorLocationsItems0) UnmarshalBinary

func (m *GraphQLErrorLocationsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GraphQLErrorLocationsItems0) Validate

func (m *GraphQLErrorLocationsItems0) Validate(formats strfmt.Registry) error

Validate validates this graph q l error locations items0

type GraphQLQueries

type GraphQLQueries []*GraphQLQuery

GraphQLQueries A list of GraphQL queries. swagger:model GraphQLQueries

func (GraphQLQueries) Validate

func (m GraphQLQueries) Validate(formats strfmt.Registry) error

Validate validates this graph q l queries

type GraphQLQuery

type GraphQLQuery struct {

	// The name of the operation if multiple exist in the query.
	OperationName string `json:"operationName,omitempty"`

	// Query based on GraphQL syntax.
	Query string `json:"query,omitempty"`

	// Additional variables for the query.
	Variables interface{} `json:"variables,omitempty"`
}

GraphQLQuery GraphQL query based on: http://facebook.github.io/graphql/. swagger:model GraphQLQuery

func (*GraphQLQuery) MarshalBinary

func (m *GraphQLQuery) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GraphQLQuery) UnmarshalBinary

func (m *GraphQLQuery) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GraphQLQuery) Validate

func (m *GraphQLQuery) Validate(formats strfmt.Registry) error

Validate validates this graph q l query

type GraphQLResponse

type GraphQLResponse struct {

	// GraphQL data object.
	Data map[string]JSONObject `json:"data,omitempty"`

	// Array with errors.
	Errors []*GraphQLError `json:"errors"`
}

GraphQLResponse GraphQL based response: http://facebook.github.io/graphql/. swagger:model GraphQLResponse

func (*GraphQLResponse) MarshalBinary

func (m *GraphQLResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GraphQLResponse) UnmarshalBinary

func (m *GraphQLResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GraphQLResponse) Validate

func (m *GraphQLResponse) Validate(formats strfmt.Registry) error

Validate validates this graph q l response

type GraphQLResponses

type GraphQLResponses []*GraphQLResponse

GraphQLResponses A list of GraphQL responses. swagger:model GraphQLResponses

func (GraphQLResponses) Validate

func (m GraphQLResponses) Validate(formats strfmt.Registry) error

Validate validates this graph q l responses

type JSONObject

type JSONObject interface{}

JSONObject JSON object value. swagger:model JsonObject

type Meta

type Meta struct {

	// actions schema
	ActionsSchema *SemanticSchema `json:"actionsSchema,omitempty"`

	// The url of the host.
	Hostname string `json:"hostname,omitempty"`

	// things schema
	ThingsSchema *SemanticSchema `json:"thingsSchema,omitempty"`
}

Meta Contains meta information of the current Weaviate instance. swagger:model Meta

func (*Meta) MarshalBinary

func (m *Meta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Meta) UnmarshalBinary

func (m *Meta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Meta) Validate

func (m *Meta) Validate(formats strfmt.Registry) error

Validate validates this meta

type MultipleRef

type MultipleRef []*SingleRef

MultipleRef Multiple instances of references to other objects. swagger:model MultipleRef

func (MultipleRef) Validate

func (m MultipleRef) Validate(formats strfmt.Registry) error

Validate validates this multiple ref

type PatchDocument

type PatchDocument struct {

	// A string containing a JSON Pointer value.
	From string `json:"from,omitempty"`

	// The operation to be performed.
	// Required: true
	// Enum: [add remove replace move copy test]
	Op *string `json:"op"`

	// A JSON-Pointer.
	// Required: true
	Path *string `json:"path"`

	// The value to be used within the operations.
	Value interface{} `json:"value,omitempty"`
}

PatchDocument A JSONPatch document as defined by RFC 6902. swagger:model PatchDocument

func (*PatchDocument) MarshalBinary

func (m *PatchDocument) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchDocument) UnmarshalBinary

func (m *PatchDocument) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchDocument) Validate

func (m *PatchDocument) Validate(formats strfmt.Registry) error

Validate validates this patch document

type PeerUpdate

type PeerUpdate struct {

	// The session ID of the peer.
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// Human readable name.
	Name string `json:"name,omitempty"`

	// The latest known hash of the peer's schema.
	SchemaHash string `json:"schemaHash,omitempty"`

	// The location where the peer is exposed to the internet.
	// Format: uri
	URI strfmt.URI `json:"uri,omitempty"`
}

PeerUpdate A single peer in the network. swagger:model PeerUpdate

func (*PeerUpdate) MarshalBinary

func (m *PeerUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PeerUpdate) UnmarshalBinary

func (m *PeerUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PeerUpdate) Validate

func (m *PeerUpdate) Validate(formats strfmt.Registry) error

Validate validates this peer update

type PeerUpdateList

type PeerUpdateList []*PeerUpdate

PeerUpdateList List of known peers. swagger:model PeerUpdateList

func (PeerUpdateList) Validate

func (m PeerUpdateList) Validate(formats strfmt.Registry) error

Validate validates this peer update list

type Schema

type Schema interface{}

Schema This is an open object, with OpenAPI Specification 3.0 this will be more detailed. See Weaviate docs for more info. In the future this will become a key/value OR a SingleRef definition. swagger:model Schema

type SchemaHistory

type SchemaHistory interface{}

SchemaHistory This is an open object, with OpenAPI Specification 3.0 this will be more detailed. See Weaviate docs for more info. In the future this will become a key/value OR a SingleRef definition. swagger:model SchemaHistory

type SemanticSchema

type SemanticSchema struct {

	// URL of the context.
	// Format: uri
	AtContext strfmt.URI `json:"@context,omitempty"`

	// Semantic classes that are available.
	Classes []*SemanticSchemaClass `json:"classes"`

	// Email of the maintainer.
	// Format: email
	Maintainer strfmt.Email `json:"maintainer,omitempty"`

	// Name of the schema.
	Name string `json:"name,omitempty"`

	// Type of schema, should be "thing" or "action".
	// Enum: [thing action]
	Type string `json:"type,omitempty"`
}

SemanticSchema Definitions of semantic schemas (also see: https://github.com/creativesoftwarefdn/weaviate-semantic-schemas). swagger:model SemanticSchema

func (*SemanticSchema) MarshalBinary

func (m *SemanticSchema) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SemanticSchema) UnmarshalBinary

func (m *SemanticSchema) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SemanticSchema) Validate

func (m *SemanticSchema) Validate(formats strfmt.Registry) error

Validate validates this semantic schema

type SemanticSchemaClass

type SemanticSchemaClass struct {

	// Name of the class as URI relative to the schema URL.
	Class string `json:"class,omitempty"`

	// Description of the class.
	Description string `json:"description,omitempty"`

	// keywords
	Keywords SemanticSchemaKeywords `json:"keywords,omitempty"`

	// The properties of the class.
	Properties []*SemanticSchemaClassProperty `json:"properties"`
}

SemanticSchemaClass semantic schema class swagger:model SemanticSchemaClass

func (*SemanticSchemaClass) MarshalBinary

func (m *SemanticSchemaClass) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SemanticSchemaClass) UnmarshalBinary

func (m *SemanticSchemaClass) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SemanticSchemaClass) Validate

func (m *SemanticSchemaClass) Validate(formats strfmt.Registry) error

Validate validates this semantic schema class

type SemanticSchemaClassProperty

type SemanticSchemaClassProperty struct {

	// Can be a reference ($cref) to another type when it starts with a capital (for example Person), otherwise "string" or "int".
	AtDataType []string `json:"@dataType"`

	// The cardinality of this property. If you want to store more than one value in a property, set this to 'many'. Defaults to 'atMostOne'. Note that by default properties can be empty in Weaviate.
	// Enum: [atMostOne many]
	Cardinality *string `json:"cardinality,omitempty"`

	// Description of the property.
	Description string `json:"description,omitempty"`

	// keywords
	Keywords SemanticSchemaKeywords `json:"keywords,omitempty"`

	// Name of the property as URI relative to the schema URL.
	Name string `json:"name,omitempty"`
}

SemanticSchemaClassProperty semantic schema class property swagger:model SemanticSchemaClassProperty

func (*SemanticSchemaClassProperty) MarshalBinary

func (m *SemanticSchemaClassProperty) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SemanticSchemaClassProperty) UnmarshalBinary

func (m *SemanticSchemaClassProperty) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SemanticSchemaClassProperty) Validate

func (m *SemanticSchemaClassProperty) Validate(formats strfmt.Registry) error

Validate validates this semantic schema class property

type SemanticSchemaKeywords

type SemanticSchemaKeywords []*SemanticSchemaKeywordsItems0

SemanticSchemaKeywords Describes a class or property using multiple weighted words. swagger:model SemanticSchemaKeywords

func (SemanticSchemaKeywords) Validate

func (m SemanticSchemaKeywords) Validate(formats strfmt.Registry) error

Validate validates this semantic schema keywords

type SemanticSchemaKeywordsItems0

type SemanticSchemaKeywordsItems0 struct {

	// keyword
	Keyword string `json:"keyword,omitempty"`

	// weight
	Weight float32 `json:"weight,omitempty"`
}

SemanticSchemaKeywordsItems0 semantic schema keywords items0 swagger:model SemanticSchemaKeywordsItems0

func (*SemanticSchemaKeywordsItems0) MarshalBinary

func (m *SemanticSchemaKeywordsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SemanticSchemaKeywordsItems0) UnmarshalBinary

func (m *SemanticSchemaKeywordsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SemanticSchemaKeywordsItems0) Validate

func (m *SemanticSchemaKeywordsItems0) Validate(formats strfmt.Registry) error

Validate validates this semantic schema keywords items0

type SingleRef

type SingleRef struct {

	// URI to point to the cross-ref. Should be in the form of weaviate://localhost/things/<uuid> for the example of a local cross-ref to a thing
	// Format: uri
	NrDollarCref strfmt.URI `json:"$cref,omitempty"`
}

SingleRef single ref swagger:model SingleRef

func (*SingleRef) MarshalBinary

func (m *SingleRef) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SingleRef) UnmarshalBinary

func (m *SingleRef) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SingleRef) Validate

func (m *SingleRef) Validate(formats strfmt.Registry) error

Validate validates this single ref

type Thing

type Thing struct {
	ThingCreate

	// Timestamp of creation of this Thing in milliseconds since epoch UTC.
	CreationTimeUnix int64 `json:"creationTimeUnix,omitempty"`

	// key
	Key *SingleRef `json:"key,omitempty"`

	// Timestamp of the last Thing update in milliseconds since epoch UTC.
	LastUpdateTimeUnix int64 `json:"lastUpdateTimeUnix,omitempty"`
}

Thing thing swagger:model Thing

func (*Thing) MarshalBinary

func (m *Thing) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (Thing) MarshalJSON

func (m Thing) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*Thing) UnmarshalBinary

func (m *Thing) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Thing) UnmarshalJSON

func (m *Thing) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*Thing) Validate

func (m *Thing) Validate(formats strfmt.Registry) error

Validate validates this thing

type ThingCreate

type ThingCreate struct {

	// Class of the Thing, defined in the schema.
	AtClass string `json:"@class,omitempty"`

	// Available context schema.
	AtContext string `json:"@context,omitempty"`

	// schema
	Schema Schema `json:"schema,omitempty"`
}

ThingCreate thing create swagger:model ThingCreate

func (*ThingCreate) MarshalBinary

func (m *ThingCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ThingCreate) UnmarshalBinary

func (m *ThingCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ThingCreate) Validate

func (m *ThingCreate) Validate(formats strfmt.Registry) error

Validate validates this thing create

type ThingGetHistoryResponse

type ThingGetHistoryResponse struct {
	ThingHistory

	// thing Id
	// Format: uuid
	ThingID strfmt.UUID `json:"thingId,omitempty"`
}

ThingGetHistoryResponse thing get history response swagger:model ThingGetHistoryResponse

func (*ThingGetHistoryResponse) MarshalBinary

func (m *ThingGetHistoryResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ThingGetHistoryResponse) MarshalJSON

func (m ThingGetHistoryResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ThingGetHistoryResponse) UnmarshalBinary

func (m *ThingGetHistoryResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ThingGetHistoryResponse) UnmarshalJSON

func (m *ThingGetHistoryResponse) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ThingGetHistoryResponse) Validate

func (m *ThingGetHistoryResponse) Validate(formats strfmt.Registry) error

Validate validates this thing get history response

type ThingGetResponse

type ThingGetResponse struct {
	Thing

	// thing Id
	// Format: uuid
	ThingID strfmt.UUID `json:"thingId,omitempty"`
}

ThingGetResponse thing get response swagger:model ThingGetResponse

func (*ThingGetResponse) MarshalBinary

func (m *ThingGetResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ThingGetResponse) MarshalJSON

func (m ThingGetResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ThingGetResponse) UnmarshalBinary

func (m *ThingGetResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ThingGetResponse) UnmarshalJSON

func (m *ThingGetResponse) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ThingGetResponse) Validate

func (m *ThingGetResponse) Validate(formats strfmt.Registry) error

Validate validates this thing get response

type ThingHistory

type ThingHistory struct {

	// Indication whether the Action is deleted.
	Deleted bool `json:"deleted,omitempty"`

	// key
	Key *SingleRef `json:"key,omitempty"`

	// An array with the history of the Things.
	PropertyHistory []*ThingHistoryObject `json:"propertyHistory"`
}

ThingHistory thing history swagger:model ThingHistory

func (*ThingHistory) MarshalBinary

func (m *ThingHistory) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ThingHistory) UnmarshalBinary

func (m *ThingHistory) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ThingHistory) Validate

func (m *ThingHistory) Validate(formats strfmt.Registry) error

Validate validates this thing history

type ThingHistoryObject

type ThingHistoryObject struct {
	ThingCreate

	// Timestamp of creation of this Thing history in milliseconds since epoch UTC.
	CreationTimeUnix int64 `json:"creationTimeUnix,omitempty"`
}

ThingHistoryObject thing history object swagger:model ThingHistoryObject

func (*ThingHistoryObject) MarshalBinary

func (m *ThingHistoryObject) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ThingHistoryObject) MarshalJSON

func (m ThingHistoryObject) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ThingHistoryObject) UnmarshalBinary

func (m *ThingHistoryObject) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ThingHistoryObject) UnmarshalJSON

func (m *ThingHistoryObject) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ThingHistoryObject) Validate

func (m *ThingHistoryObject) Validate(formats strfmt.Registry) error

Validate validates this thing history object

type ThingUpdate

type ThingUpdate struct {
	Thing

	ThingUpdateAllOf1
}

ThingUpdate thing update swagger:model ThingUpdate

func (*ThingUpdate) MarshalBinary

func (m *ThingUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ThingUpdate) MarshalJSON

func (m ThingUpdate) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ThingUpdate) UnmarshalBinary

func (m *ThingUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ThingUpdate) UnmarshalJSON

func (m *ThingUpdate) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ThingUpdate) Validate

func (m *ThingUpdate) Validate(formats strfmt.Registry) error

Validate validates this thing update

type ThingUpdateAllOf1

type ThingUpdateAllOf1 interface{}

ThingUpdateAllOf1 thing update all of1 swagger:model ThingUpdateAllOf1

type ThingsGetResponse

type ThingsGetResponse struct {
	Thing

	// result
	Result *ThingsGetResponseAO1Result `json:"result,omitempty"`

	// ID of the Thing.
	// Format: uuid
	ThingID strfmt.UUID `json:"thingId,omitempty"`
}

ThingsGetResponse things get response swagger:model ThingsGetResponse

func (*ThingsGetResponse) MarshalBinary

func (m *ThingsGetResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ThingsGetResponse) MarshalJSON

func (m ThingsGetResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ThingsGetResponse) UnmarshalBinary

func (m *ThingsGetResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ThingsGetResponse) UnmarshalJSON

func (m *ThingsGetResponse) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ThingsGetResponse) Validate

func (m *ThingsGetResponse) Validate(formats strfmt.Registry) error

Validate validates this things get response

type ThingsGetResponseAO1Result

type ThingsGetResponseAO1Result struct {

	// errors
	Errors *ErrorResponse `json:"errors,omitempty"`

	// status
	// Enum: [SUCCESS PENDING FAILED]
	Status *string `json:"status,omitempty"`
}

ThingsGetResponseAO1Result Results for this specific Thing. swagger:model ThingsGetResponseAO1Result

func (*ThingsGetResponseAO1Result) MarshalBinary

func (m *ThingsGetResponseAO1Result) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ThingsGetResponseAO1Result) UnmarshalBinary

func (m *ThingsGetResponseAO1Result) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ThingsGetResponseAO1Result) Validate

func (m *ThingsGetResponseAO1Result) Validate(formats strfmt.Registry) error

Validate validates this things get response a o1 result

type ThingsListResponse

type ThingsListResponse struct {

	// The actual list of Things.
	Things []*ThingGetResponse `json:"things"`

	// The total number of Things for the query. The number of items in a response may be smaller due to paging.
	TotalResults int64 `json:"totalResults,omitempty"`
}

ThingsListResponse List of Things. swagger:model ThingsListResponse

func (*ThingsListResponse) MarshalBinary

func (m *ThingsListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ThingsListResponse) UnmarshalBinary

func (m *ThingsListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ThingsListResponse) Validate

func (m *ThingsListResponse) Validate(formats strfmt.Registry) error

Validate validates this things list response

type ToolsMapRequest

type ToolsMapRequest struct {

	// Concept that should function as center. Should be one concept (e.g., car) or CamelCased (e.g, MovedTo)
	ConceptCenter string `json:"conceptCenter,omitempty"`

	// Only needs to be set when type is centerOfNetwork and should contain the name of the Weaviate that is taken as center.
	NetworkCenter string `json:"networkCenter,omitempty"`

	// What type of map should be generated?
	// Enum: [zeroPointPosition centerOfSelf centerOfNetwork centerOfConcept]
	Type string `json:"type,omitempty"`
}

ToolsMapRequest tools map request swagger:model ToolsMapRequest

func (*ToolsMapRequest) MarshalBinary

func (m *ToolsMapRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ToolsMapRequest) UnmarshalBinary

func (m *ToolsMapRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ToolsMapRequest) Validate

func (m *ToolsMapRequest) Validate(formats strfmt.Registry) error

Validate validates this tools map request

type ToolsMapRequestResponse

type ToolsMapRequestResponse struct {

	// Results of the map request
	Results []*ToolsMapRequestResponseResultsItems0 `json:"results"`

	// Startpoint in the Contextionary expressed as 300-dimensional space
	StartVector []float32 `json:"startVector"`

	// What type of map should be generated?
	// Enum: [zeroPointPosition centerOfSelf centerOfNetwork centerOfConcept]
	Type string `json:"type,omitempty"`
}

ToolsMapRequestResponse Map of concepts. swagger:model ToolsMapRequestResponse

func (*ToolsMapRequestResponse) MarshalBinary

func (m *ToolsMapRequestResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ToolsMapRequestResponse) UnmarshalBinary

func (m *ToolsMapRequestResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ToolsMapRequestResponse) Validate

func (m *ToolsMapRequestResponse) Validate(formats strfmt.Registry) error

Validate validates this tools map request response

type ToolsMapRequestResponseResultsItems0

type ToolsMapRequestResponseResultsItems0 struct {

	// concept
	Concept *SemanticSchemaClass `json:"concept,omitempty"`

	// Distance to original vector concept
	Distance float32 `json:"distance,omitempty"`

	// On which Weaviate is this concept located?
	Location string `json:"location,omitempty"`

	// Thing or Action
	// Enum: [thing action]
	Type string `json:"type,omitempty"`
}

ToolsMapRequestResponseResultsItems0 tools map request response results items0 swagger:model ToolsMapRequestResponseResultsItems0

func (*ToolsMapRequestResponseResultsItems0) MarshalBinary

func (m *ToolsMapRequestResponseResultsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ToolsMapRequestResponseResultsItems0) UnmarshalBinary

func (m *ToolsMapRequestResponseResultsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ToolsMapRequestResponseResultsItems0) Validate

Validate validates this tools map request response results items0

type VectorBasedQuestion

type VectorBasedQuestion []*VectorBasedQuestionItems0

VectorBasedQuestion Receive question based on array of classes, properties and values. swagger:model VectorBasedQuestion

func (VectorBasedQuestion) Validate

func (m VectorBasedQuestion) Validate(formats strfmt.Registry) error

Validate validates this vector based question

type VectorBasedQuestionItems0

type VectorBasedQuestionItems0 struct {

	// Vectorized properties.
	// Max Items: 300
	// Min Items: 300
	ClassProps []*VectorBasedQuestionItems0ClassPropsItems0 `json:"classProps"`

	// Vectorized classname.
	// Max Items: 300
	// Min Items: 300
	ClassVectors []float32 `json:"classVectors"`
}

VectorBasedQuestionItems0 vector based question items0 swagger:model VectorBasedQuestionItems0

func (*VectorBasedQuestionItems0) MarshalBinary

func (m *VectorBasedQuestionItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VectorBasedQuestionItems0) UnmarshalBinary

func (m *VectorBasedQuestionItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VectorBasedQuestionItems0) Validate

func (m *VectorBasedQuestionItems0) Validate(formats strfmt.Registry) error

Validate validates this vector based question items0

type VectorBasedQuestionItems0ClassPropsItems0

type VectorBasedQuestionItems0ClassPropsItems0 struct {

	// props vectors
	PropsVectors []float32 `json:"propsVectors"`

	// String with valuename.
	Value string `json:"value,omitempty"`
}

VectorBasedQuestionItems0ClassPropsItems0 vector based question items0 class props items0 swagger:model VectorBasedQuestionItems0ClassPropsItems0

func (*VectorBasedQuestionItems0ClassPropsItems0) MarshalBinary

func (m *VectorBasedQuestionItems0ClassPropsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VectorBasedQuestionItems0ClassPropsItems0) UnmarshalBinary

func (m *VectorBasedQuestionItems0ClassPropsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VectorBasedQuestionItems0ClassPropsItems0) Validate

Validate validates this vector based question items0 class props items0

Jump to

Keyboard shortcuts

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