steps

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type As

type As struct {
	From linkedql.PathStep `json:"from"`
	Name string            `json:"name"`
}

As corresponds to .tag().

func (*As) BuildPath

func (s *As) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*As) Description

func (s *As) Description() string

Description implements Step.

type Back

type Back struct {
	From linkedql.PathStep `json:"from"`
	Name string            `json:"name"`
}

Back corresponds to .back().

func (*Back) BuildPath

func (s *Back) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Back) Description

func (s *Back) Description() string

Description implements Step.

type Both

type Both struct {
	From       linkedql.PathStep      `json:"from"`
	Properties *linkedql.PropertyPath `json:"properties"`
}

Both corresponds to .both().

func (*Both) BuildPath

func (s *Both) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Both) Description

func (s *Both) Description() string

Description implements Step.

type Collect

type Collect struct {
	From linkedql.PathStep `json:"from"`
	Name quad.IRI          `json:"name"`
}

Collect corresponds to .view().

func (*Collect) BuildPath

func (s *Collect) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Collect) Description

func (s *Collect) Description() string

Description implements Step.

type Count

type Count struct {
	From linkedql.PathStep `json:"from"`
}

Count corresponds to .count().

func (*Count) BuildPath

func (s *Count) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Count) Description

func (s *Count) Description() string

Description implements Step.

type Difference

type Difference struct {
	From  linkedql.PathStep   `json:"from"`
	Steps []linkedql.PathStep `json:"steps"`
}

Difference corresponds to .difference().

func (*Difference) BuildPath

func (s *Difference) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Difference) Description

func (s *Difference) Description() string

Description implements Step.

type Documents

type Documents struct {
	From linkedql.PathStep `json:"from"`
}

Documents corresponds to .documents().

func (*Documents) BuildIterator

func (s *Documents) BuildIterator(qs graph.QuadStore, ns *voc.Namespaces) (query.Iterator, error)

BuildIterator implements IteratorStep

func (*Documents) Description

func (s *Documents) Description() string

Description implements Step.

type GreaterThan

type GreaterThan struct {
	From  linkedql.PathStep `json:"from"`
	Value quad.Value        `json:"value"`
}

GreaterThan corresponds to gt().

func (*GreaterThan) BuildPath

func (s *GreaterThan) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*GreaterThan) Description

func (s *GreaterThan) Description() string

Description implements Step.

type GreaterThanEquals

type GreaterThanEquals struct {
	From  linkedql.PathStep `json:"from"`
	Value quad.Value        `json:"value"`
}

GreaterThanEquals corresponds to gte().

func (*GreaterThanEquals) BuildPath

func (s *GreaterThanEquals) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*GreaterThanEquals) Description

func (s *GreaterThanEquals) Description() string

Description implements Step.

type Has

type Has struct {
	From     linkedql.PathStep      `json:"from"`
	Property *linkedql.PropertyPath `json:"property"`
	Values   []quad.Value           `json:"values"`
}

Has corresponds to .has().

func (*Has) BuildPath

func (s *Has) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Has) Description

func (s *Has) Description() string

Description implements Step.

type HasReverse

type HasReverse struct {
	From     linkedql.PathStep      `json:"from"`
	Property *linkedql.PropertyPath `json:"property"`
	Values   []quad.Value           `json:"values"`
}

HasReverse corresponds to .hasR().

func (*HasReverse) BuildPath

func (s *HasReverse) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*HasReverse) Description

func (s *HasReverse) Description() string

Description implements Step.

type In

type In struct {
	VisitReverse
}

In is an alias for ViewReverse.

func (*In) Description

func (s *In) Description() string

Description implements Step.

type Intersect

type Intersect struct {
	From  linkedql.PathStep   `json:"from"`
	Steps []linkedql.PathStep `json:"steps"`
}

Intersect represents .intersect() and .and().

func (*Intersect) BuildPath

func (s *Intersect) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Intersect) Description

func (s *Intersect) Description() string

Description implements Step.

type Labels

type Labels struct {
	From linkedql.PathStep `json:"from"`
}

Labels corresponds to .labels().

func (*Labels) BuildPath

func (s *Labels) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Labels) Description

func (s *Labels) Description() string

Description implements Step.

type LessThan

type LessThan struct {
	From  linkedql.PathStep `json:"from"`
	Value quad.Value        `json:"value"`
}

LessThan corresponds to lt().

func (*LessThan) BuildPath

func (s *LessThan) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*LessThan) Description

func (s *LessThan) Description() string

Description implements Step.

type LessThanEquals

type LessThanEquals struct {
	From  linkedql.PathStep `json:"from"`
	Value quad.Value        `json:"value"`
}

LessThanEquals corresponds to lte().

func (*LessThanEquals) BuildPath

func (s *LessThanEquals) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*LessThanEquals) Description

func (s *LessThanEquals) Description() string

Description implements Step.

type Like

type Like struct {
	From    linkedql.PathStep `json:"from"`
	Pattern string            `json:"likePattern"`
}

Like corresponds to like().

func (*Like) BuildPath

func (s *Like) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements PathStep.

func (*Like) Description

func (s *Like) Description() string

Description implements Operator.

type Limit

type Limit struct {
	From  linkedql.PathStep `json:"from"`
	Limit int64             `json:"limit"`
}

Limit corresponds to .limit().

func (*Limit) BuildPath

func (s *Limit) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Limit) Description

func (s *Limit) Description() string

Description implements Step.

type Match

type Match struct {
	From    linkedql.PathStep     `json:"from" minCardinality:"0"`
	Pattern linkedql.GraphPattern `json:"pattern"`
}

Match corresponds to .has().

func (*Match) BuildPath

func (s *Match) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Match) Description

func (s *Match) Description() string

Description implements Step.

type Optional

type Optional struct {
	From linkedql.PathStep `json:"from"`
	Step linkedql.PathStep `json:"step"`
}

Optional corresponds to .optional().

func (*Optional) BuildPath

func (s *Optional) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Optional) Description

func (s *Optional) Description() string

Description implements Step.

type Order

type Order struct {
	From linkedql.PathStep `json:"from"`
}

Order corresponds to .order().

func (*Order) BuildPath

func (s *Order) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Order) Description

func (s *Order) Description() string

Description implements Step.

type Out

type Out struct {
	Visit
}

Out is an alias for View.

func (*Out) Description

func (s *Out) Description() string

Description implements Step.

type Placeholder

type Placeholder struct{}

Placeholder corresponds to .Placeholder().

func (*Placeholder) BuildPath

func (s *Placeholder) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Placeholder) Description

func (s *Placeholder) Description() string

Description implements Step.

type Properties

type Properties struct {
	From  linkedql.PathStep      `json:"from"`
	Names *linkedql.PropertyPath `json:"names"`
}

Properties corresponds to .properties().

func (*Properties) BuildPath

func (s *Properties) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Properties) Description

func (s *Properties) Description() string

Description implements Step.

type PropertyNames

type PropertyNames struct {
	From linkedql.PathStep `json:"from"`
}

PropertyNames corresponds to .propertyNames().

func (*PropertyNames) BuildPath

func (s *PropertyNames) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*PropertyNames) Description

func (s *PropertyNames) Description() string

Description implements Step.

type PropertyNamesAs

type PropertyNamesAs struct {
	From linkedql.PathStep `json:"from"`
	Tag  string            `json:"tag"`
}

PropertyNamesAs corresponds to .propertyNamesAs().

func (*PropertyNamesAs) BuildPath

func (s *PropertyNamesAs) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*PropertyNamesAs) Description

func (s *PropertyNamesAs) Description() string

Description implements Step.

type RegExp

type RegExp struct {
	From        linkedql.PathStep `json:"from"`
	Expression  string            `json:"expression"`
	IncludeIRIs bool              `json:"includeIRIs,omitempty"`
}

RegExp corresponds to regex().

func (*RegExp) BuildPath

func (s *RegExp) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements PathStep.

func (*RegExp) Description

func (s *RegExp) Description() string

Description implements Step.

type ReverseProperties

type ReverseProperties struct {
	From  linkedql.PathStep      `json:"from"`
	Names *linkedql.PropertyPath `json:"names"`
}

ReverseProperties corresponds to .reverseProperties().

func (*ReverseProperties) BuildPath

func (s *ReverseProperties) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*ReverseProperties) Description

func (s *ReverseProperties) Description() string

Description implements Step.

type ReversePropertyNames

type ReversePropertyNames struct {
	From linkedql.PathStep `json:"from"`
}

ReversePropertyNames corresponds to .reversePropertyNames().

func (*ReversePropertyNames) BuildPath

func (s *ReversePropertyNames) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*ReversePropertyNames) Description

func (s *ReversePropertyNames) Description() string

Description implements Step.

type ReversePropertyNamesAs

type ReversePropertyNamesAs struct {
	From linkedql.PathStep `json:"from"`
	Tag  string            `json:"tag"`
}

ReversePropertyNamesAs corresponds to .reversePropertyNamesAs().

func (*ReversePropertyNamesAs) BuildPath

func (s *ReversePropertyNamesAs) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*ReversePropertyNamesAs) Description

func (s *ReversePropertyNamesAs) Description() string

Description implements Step.

type Select

type Select struct {
	Properties []string          `json:"properties"`
	From       linkedql.PathStep `json:"from"`
	ExcludeID  bool              `json:"excludeID"`
}

Select corresponds to .select().

func (*Select) BuildIterator

func (s *Select) BuildIterator(qs graph.QuadStore, ns *voc.Namespaces) (query.Iterator, error)

BuildIterator implements IteratorStep

func (*Select) Description

func (s *Select) Description() string

Description implements Step.

type Skip

type Skip struct {
	From   linkedql.PathStep `json:"from"`
	Offset int64             `json:"offset"`
}

Skip corresponds to .skip().

func (*Skip) BuildPath

func (s *Skip) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Skip) Description

func (s *Skip) Description() string

Description implements Step.

type Union

type Union struct {
	From  linkedql.PathStep   `json:"from"`
	Steps []linkedql.PathStep `json:"steps"`
}

Union corresponds to .union() and .or().

func (*Union) BuildPath

func (s *Union) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Union) Description

func (s *Union) Description() string

Description implements Step.

type Unique

type Unique struct {
	From linkedql.PathStep `json:"from"`
}

Unique corresponds to .unique().

func (*Unique) BuildPath

func (s *Unique) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Unique) Description

func (s *Unique) Description() string

Description implements Step.

type Vertex

type Vertex struct {
	Values []quad.Value `json:"values"`
}

Vertex corresponds to g.Vertex() and g.V().

func (*Vertex) BuildPath

func (s *Vertex) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Vertex) Description

func (s *Vertex) Description() string

Description implements Step.

type Visit

type Visit struct {
	From       linkedql.PathStep      `json:"from"`
	Properties *linkedql.PropertyPath `json:"properties"`
}

Visit corresponds to .view().

func (*Visit) BuildPath

func (s *Visit) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Visit) Description

func (s *Visit) Description() string

Description implements Step.

type VisitReverse

type VisitReverse struct {
	From       linkedql.PathStep      `json:"from"`
	Properties *linkedql.PropertyPath `json:"properties"`
}

VisitReverse corresponds to .viewReverse().

func (*VisitReverse) BuildPath

func (s *VisitReverse) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*VisitReverse) Description

func (s *VisitReverse) Description() string

Description implements Step.

type Where

type Where struct {
	From      linkedql.PathStep `json:"from"`
	Condition linkedql.PathStep `json:"condition"`
}

Where corresponds to .where().

func (*Where) BuildPath

func (s *Where) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error)

BuildPath implements linkedql.PathStep.

func (*Where) Description

func (s *Where) Description() string

Description implements Step.

Jump to

Keyboard shortcuts

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