Documentation ¶
Overview ¶
Code generated by github.com/srdtrk/go-codegen, DO NOT EDIT.
Code generated by github.com/srdtrk/go-codegen, DO NOT EDIT.
Index ¶
- type Binary
- type BlankNode
- type ConstructQuery
- type ConstructResponse
- type DataFormat
- type DescribeQuery
- type DescribeResponse
- type ExecuteMsg
- type ExecuteMsg_DeleteData
- type ExecuteMsg_InsertData
- type Expression
- type Expression_And
- type Expression_Equal
- type Expression_Greater
- type Expression_GreaterOrEqual
- type Expression_Less
- type Expression_LessOrEqual
- type Expression_Literal
- type Expression_NamedNode
- type Expression_Not
- type Expression_Or
- type Expression_Variable
- type Head
- type IRI
- type IRI_Full
- type IRI_Prefixed
- type InstantiateMsg
- type Literal
- type Literal_LanguageTaggedString
- type Literal_Simple
- type Literal_TypedValue
- type Node
- type Node_BlankNode
- type Node_NamedNode
- type Nullable_IRI
- type Prefix
- type QueryClient
- type QueryMsg
- type QueryMsg_Construct
- type QueryMsg_Describe
- type QueryMsg_Select
- type QueryMsg_Store
- type Results
- type SelectItem
- type SelectItem_Variable
- type SelectQuery
- type SelectResponse
- type StoreLimits
- type StoreLimitsInput
- type StoreResponse
- type StoreStat
- type TripleConstructTemplate
- type TripleDeleteTemplate
- type TriplePattern
- type Tuple_of_Expression_and_Expression
- type URI
- type Uint128
- type Value
- type ValueType
- type Value_Literal
- type Value_Value
- type Value_Xmllang
- type VarOrNamedNode
- type VarOrNamedNodeOrLiteral
- type VarOrNamedNodeOrLiteral_Literal
- type VarOrNamedNodeOrLiteral_NamedNode
- type VarOrNamedNodeOrLiteral_Variable
- type VarOrNamedNode_NamedNode
- type VarOrNamedNode_Variable
- type VarOrNode
- type VarOrNodeOrLiteral
- type VarOrNodeOrLiteral_Literal
- type VarOrNodeOrLiteral_Node
- type VarOrNodeOrLiteral_Variable
- type VarOrNode_Node
- type VarOrNode_Variable
- type WhereClause
- type WhereClause_Bgp
- type WhereClause_Filter
- type WhereClause_LateralJoin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binary ¶
type Binary string
Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.
This is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.
type ConstructQuery ¶
type ConstructQuery struct { // The triples to construct. If nothing is provided and the `where` clause is a single Bgp, the patterns are used for construction. Construct []TripleConstructTemplate `json:"construct"` // The prefixes used in the query. Prefixes []Prefix `json:"prefixes"` // The WHERE clause. This clause is used to specify the triples to construct using variable bindings. Where WhereClause `json:"where"` }
Represents a CONSTRUCT query over the triple store, allowing to retrieve a set of triples serialized in a specific format.
type ConstructResponse ¶
type ConstructResponse struct { // The data serialized in the specified format. Data Binary `json:"data"` // The format of the data. Format DataFormat `json:"format"` }
Represents the response of a [QueryMsg::Construct] query.
type DataFormat ¶
type DataFormat string
Represents the format in which the data are serialized, for example when returned by a query or when inserted in the store.
const ( // Output in [RDF/XML](https://www.w3.org/TR/rdf-syntax-grammar/) format. DataFormat_RdfXml DataFormat = "rdf_xml" // Output in [Turtle](https://www.w3.org/TR/turtle/) format. DataFormat_Turtle DataFormat = "turtle" // Output in [N-Triples](https://www.w3.org/TR/n-triples/) format. DataFormat_NTriples DataFormat = "n_triples" // Output in [N-Quads](https://www.w3.org/TR/n-quads/) format. DataFormat_NQuads DataFormat = "n_quads" )
type DescribeQuery ¶
type DescribeQuery struct { // The WHERE clause. This clause is used to specify the resource identifier to describe using variable bindings. Where *WhereClause `json:"where,omitempty"` // The prefixes used in the query. Prefixes []Prefix `json:"prefixes"` // The resource to describe given as a variable or a node. Resource VarOrNamedNode `json:"resource"` }
Represents a DESCRIBE query over the triple store, allowing to retrieve a description of a resource as a set of triples serialized in a specific format.
type DescribeResponse ¶
type DescribeResponse struct { // The data serialized in the specified format. Data Binary `json:"data"` // The format of the data. Format DataFormat `json:"format"` }
Represents the response of a [QueryMsg::Describe] query.
type ExecuteMsg ¶
type ExecuteMsg struct { /* Insert the data as RDF triples in the store. For already existing triples it acts as no-op. Only the smart contract owner (i.e. the address who instantiated it) is authorized to perform this action. */ InsertData *ExecuteMsg_InsertData `json:"insert_data,omitempty"` /* Delete the data (RDF triples) from the store matching the patterns defined by the provided query. For non-existing triples it acts as no-op. Example: “`json { "prefixes": [ { "prefix": "foaf", "namespace": "http://xmlns.com/foaf/0.1/" } ], "delete": [ { "subject": { "variable": "s" }, "predicate": { "variable": "p" }, "object": { "variable": "o" } } ], "where": [ { "simple": { "triplePattern": { "subject": { "variable": "s" }, "predicate": { "namedNode": {"prefixed": "foaf:givenName"} }, "object": { "literal": { "simple": "Myrddin" } } } } }, { "simple": { "triplePattern": { "subject": { "variable": "s" }, "predicate": { "variable": "p" }, "object": { "variable": "o" } } } } ] “` Only the smart contract owner (i.e. the address who instantiated it) is authorized to perform this action. */ DeleteData *ExecuteMsg_DeleteData `json:"delete_data,omitempty"` }
Execute messages
type ExecuteMsg_DeleteData ¶
type ExecuteMsg_DeleteData struct { // Specifies the specific triple templates to delete. If nothing is provided and the `where` clause is a single Bgp, the patterns are used for deletion. Delete []TripleDeleteTemplate `json:"delete"` // The prefixes used in the operation. Prefixes []Prefix `json:"prefixes"` // Defines the patterns that data (RDF triples) should match in order for it to be considered for deletion, if any. Where *WhereClause `json:"where,omitempty"` }
type ExecuteMsg_InsertData ¶
type ExecuteMsg_InsertData struct { // The data to insert. The data must be serialized in the format specified by the `format` field. And the data are subject to the limitations defined by the `limits` specified at contract instantiation. Data Binary `json:"data"` // The data format in which the triples are serialized. If not provided, the default format is [Turtle](https://www.w3.org/TR/turtle/) format. Format *DataFormat `json:"format,omitempty"` }
type Expression ¶
type Expression struct { // A named node constant. NamedNode *Expression_NamedNode `json:"named_node,omitempty"` // A literal constant. Literal *Expression_Literal `json:"literal,omitempty"` // A variable that must be bound for evaluation. Variable *Expression_Variable `json:"variable,omitempty"` // Logical conjunction of expressions. All expressions must evaluate to true for the conjunction to be true. If the conjunction is empty, it is considered true. And *Expression_And `json:"and,omitempty"` // Logical disjunction of expressions. At least one expression must evaluate to true for the disjunction to be true. If the disjunction is empty, it is considered false. Or *Expression_Or `json:"or,omitempty"` // Equality comparison. Equal *Expression_Equal `json:"equal,omitempty"` // Greater than comparison. Greater *Expression_Greater `json:"greater,omitempty"` // Greater or equal comparison. GreaterOrEqual *Expression_GreaterOrEqual `json:"greater_or_equal,omitempty"` // Less than comparison. Less *Expression_Less `json:"less,omitempty"` // Less or equal comparison. LessOrEqual *Expression_LessOrEqual `json:"less_or_equal,omitempty"` // Negation of an expression. Not *Expression_Not `json:"not,omitempty"` }
Represents a logical combination of operations whose evaluation results in a term.
type Expression_And ¶
type Expression_And []Expression
type Expression_Equal ¶
type Expression_Equal Tuple_of_Expression_and_Expression
type Expression_Greater ¶
type Expression_Greater Tuple_of_Expression_and_Expression
type Expression_GreaterOrEqual ¶
type Expression_GreaterOrEqual Tuple_of_Expression_and_Expression
type Expression_Less ¶
type Expression_Less Tuple_of_Expression_and_Expression
type Expression_LessOrEqual ¶
type Expression_LessOrEqual Tuple_of_Expression_and_Expression
type Expression_Literal ¶
type Expression_Literal Literal
type Expression_NamedNode ¶
type Expression_NamedNode IRI
type Expression_Not ¶
type Expression_Not Expression
type Expression_Or ¶
type Expression_Or []Expression
type Expression_Variable ¶
type Expression_Variable string
type Head ¶
type Head struct { // The variables selected in the query. Vars []string `json:"vars"` }
Represents the head of a SelectResponse.
type IRI ¶
type IRI struct { // An IRI prefixed with a prefix. The prefixed IRI is expanded to a full IRI using the prefix definition specified in the query. For example, the prefixed IRI `rdf:type` is expanded to `http://www.w3.org/1999/02/22-rdf-syntax-ns#type`. Prefixed *IRI_Prefixed `json:"prefixed,omitempty"` // A full IRI. Full *IRI_Full `json:"full,omitempty"` }
Represents an IRI.
type IRI_Prefixed ¶
type IRI_Prefixed string
type InstantiateMsg ¶
type InstantiateMsg struct { // Limitations regarding store usage. Limits StoreLimitsInput `json:"limits"` }
Instantiate message
type Literal ¶
type Literal struct { // A [simple literal](https://www.w3.org/TR/rdf11-concepts/#dfn-simple-literal) without datatype or language form. Simple *Literal_Simple `json:"simple,omitempty"` // A [language-tagged string](https://www.w3.org/TR/rdf11-concepts/#dfn-language-tagged-string) LanguageTaggedString *Literal_LanguageTaggedString `json:"language_tagged_string,omitempty"` // A value with a datatype. TypedValue *Literal_TypedValue `json:"typed_value,omitempty"` }
An RDF [literal](https://www.w3.org/TR/rdf11-concepts/#dfn-literal).
type Literal_LanguageTaggedString ¶
type Literal_LanguageTaggedString struct { // The [language tag](https://www.w3.org/TR/rdf11-concepts/#dfn-language-tag). Language string `json:"language"` // The [lexical form](https://www.w3.org/TR/rdf11-concepts/#dfn-lexical-form). Value string `json:"value"` }
type Literal_Simple ¶
type Literal_Simple string
type Literal_TypedValue ¶
type Literal_TypedValue struct { // The [datatype IRI](https://www.w3.org/TR/rdf11-concepts/#dfn-datatype-iri). Datatype IRI `json:"datatype"` // The [lexical form](https://www.w3.org/TR/rdf11-concepts/#dfn-lexical-form). Value string `json:"value"` }
type Node ¶
type Node struct { // An RDF [IRI](https://www.w3.org/TR/rdf11-concepts/#dfn-iri). NamedNode *Node_NamedNode `json:"named_node,omitempty"` // An RDF [blank node](https://www.w3.org/TR/rdf11-concepts/#dfn-blank-node). BlankNode *Node_BlankNode `json:"blank_node,omitempty"` }
Represents either an IRI (named node) or a blank node.
type Node_BlankNode ¶
type Node_BlankNode string
type Node_NamedNode ¶
type Node_NamedNode IRI
type Nullable_IRI ¶
type Nullable_IRI = *IRI
Nullable_IRI is a nullable type of IRI The datatype of the literal.
type Prefix ¶
type Prefix struct { // The namespace associated with the prefix. Namespace string `json:"namespace"` // The prefix. Prefix string `json:"prefix"` }
Represents a prefix, i.e. a shortcut for a namespace used in a query.
type QueryClient ¶
type QueryClient interface { // Construct is the client API for the QueryMsg_Construct query message Construct(ctx context.Context, req *QueryMsg_Construct, opts ...grpc.CallOption) (*ConstructResponse, error) // Describe is the client API for the QueryMsg_Describe query message Describe(ctx context.Context, req *QueryMsg_Describe, opts ...grpc.CallOption) (*DescribeResponse, error) // Select is the client API for the QueryMsg_Select query message Select(ctx context.Context, req *QueryMsg_Select, opts ...grpc.CallOption) (*SelectResponse, error) // Store is the client API for the QueryMsg_Store query message Store(ctx context.Context, req *QueryMsg_Store, opts ...grpc.CallOption) (*StoreResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(gRPCAddress, contractAddress string, opts ...grpc.DialOption) (QueryClient, error)
NewQueryClient creates a new QueryClient
type QueryMsg ¶
type QueryMsg struct { // Returns information about the triple store. Store *QueryMsg_Store `json:"store,omitempty"` // Returns the resources matching the criteria defined by the provided query. Select *QueryMsg_Select `json:"select,omitempty"` // Returns a description of the resource identified by the provided IRI as a set of RDF triples serialized in the provided format. Describe *QueryMsg_Describe `json:"describe,omitempty"` // Returns the resources matching the criteria defined by the provided query as a set of RDF triples serialized in the provided format. Construct *QueryMsg_Construct `json:"construct,omitempty"` }
Query messages
type QueryMsg_Construct ¶
type QueryMsg_Construct struct { // The format in which the triples are serialized. If not provided, the default format is [Turtle](https://www.w3.org/TR/turtle/) format. Format *DataFormat `json:"format,omitempty"` // The query to execute. Query ConstructQuery `json:"query"` }
type QueryMsg_Describe ¶
type QueryMsg_Describe struct { // The format in which the triples are serialized. If not provided, the default format is [Turtle](https://www.w3.org/TR/turtle/) format. Format *DataFormat `json:"format,omitempty"` // The query to execute. Query DescribeQuery `json:"query"` }
type QueryMsg_Select ¶
type QueryMsg_Select struct { // The query to execute. Query SelectQuery `json:"query"` }
type QueryMsg_Store ¶
type QueryMsg_Store struct{}
type Results ¶
type Results struct { // The bindings of the results. Bindings []map[string]Value `json:"bindings"` }
Represents the results of a SelectResponse.
type SelectItem ¶
type SelectItem struct { // Represents a variable. Variable *SelectItem_Variable `json:"variable,omitempty"` }
Represents an item to select in a SelectQuery.
type SelectItem_Variable ¶
type SelectItem_Variable string
type SelectQuery ¶
type SelectQuery struct { // The maximum number of results to return. If `None`, there is no limit. Note: the value of the limit cannot exceed the maximum query limit defined in the store limitations. Limit *int `json:"limit,omitempty"` // The prefixes used in the query. Prefixes []Prefix `json:"prefixes"` // The items to select. Note: the number of items to select cannot exceed the maximum query variable count defined in the store limitations. Select []SelectItem `json:"select"` // The WHERE clause. If `None`, there is no WHERE clause, i.e. all triples are returned without filtering. Where WhereClause `json:"where"` }
Represents a SELECT query over the triple store, allowing to select variables to return and to filter the results.
type SelectResponse ¶
type SelectResponse struct { // The head of the response, i.e. the set of variables mentioned in the results. Head Head `json:"head"` // The results of the select query. Results Results `json:"results"` }
Represents the response of a [QueryMsg::Select] query.
type StoreLimits ¶
type StoreLimits struct { // The maximum number of bytes the store can contain for a single triple. The size of a triple is counted as the sum of the size of its subject, predicate and object, including the size of data types and language tags if any. The limit is used to prevent storing very large triples, especially literals. MaxTripleByteSize Uint128 `json:"max_triple_byte_size"` // The maximum number of triples the store can contain. MaxTripleCount Uint128 `json:"max_triple_count"` // The maximum number of bytes the store can contain. The size of a triple is counted as the sum of the size of its subject, predicate and object, including the size of data types and language tags if any. MaxByteSize Uint128 `json:"max_byte_size"` // The maximum number of bytes an insert data query can contain. MaxInsertDataByteSize Uint128 `json:"max_insert_data_byte_size"` // The maximum number of triples an insert data query can contain (after parsing). MaxInsertDataTripleCount Uint128 `json:"max_insert_data_triple_count"` // The maximum limit of a query, i.e. the maximum number of triples returned by a select query. MaxQueryLimit int `json:"max_query_limit"` // The maximum number of variables a query can select. MaxQueryVariableCount int `json:"max_query_variable_count"` }
Contains limitations regarding store usages.
type StoreLimitsInput ¶
type StoreLimitsInput struct { // The maximum limit of a query, i.e. the maximum number of triples returned by a select query. Default to 30 if not set. MaxQueryLimit int `json:"max_query_limit"` // The maximum number of variables a query can select. Default to 30 if not set. MaxQueryVariableCount int `json:"max_query_variable_count"` // The maximum number of bytes the store can contain for a single triple. The size of a triple is counted as the sum of the size of its subject, predicate and object, including the size of data types and language tags if any. The limit is used to prevent storing very large triples, especially literals. Default to [Uint128::MAX] if not set, which can be considered as no limit. MaxTripleByteSize Uint128 `json:"max_triple_byte_size"` // The maximum number of triples the store can contain. Default to [Uint128::MAX] if not set, which can be considered as no limit. MaxTripleCount Uint128 `json:"max_triple_count"` // The maximum number of bytes the store can contain. The size of a triple is counted as the sum of the size of its subject, predicate and object, including the size of data types and language tags if any. Default to [Uint128::MAX] if not set, which can be considered as no limit. MaxByteSize Uint128 `json:"max_byte_size"` // The maximum number of bytes an insert data query can contain. Default to [Uint128::MAX] if not set, which can be considered as no limit. MaxInsertDataByteSize Uint128 `json:"max_insert_data_byte_size"` // The maximum number of triples an insert data query can contain (after parsing). Default to [Uint128::MAX] if not set, which can be considered as no limit. MaxInsertDataTripleCount Uint128 `json:"max_insert_data_triple_count"` }
Contains requested limitations regarding store usages.
type StoreResponse ¶
type StoreResponse struct { // The store limits. Limits StoreLimits `json:"limits"` // The store owner. Owner string `json:"owner"` // The store current usage. Stat StoreStat `json:"stat"` }
Contains information related to triple store.
type StoreStat ¶
type StoreStat struct { // The total triple size in the store, in bytes. ByteSize Uint128 `json:"byte_size"` // The total number of IRI namespace present in the store. NamespaceCount Uint128 `json:"namespace_count"` // The total number of triple present in the store. TripleCount Uint128 `json:"triple_count"` }
Contains usage information about the triple store.
type TripleConstructTemplate ¶
type TripleConstructTemplate struct { // The object of the triple pattern. Object VarOrNodeOrLiteral `json:"object"` // The predicate of the triple pattern. Predicate VarOrNamedNode `json:"predicate"` // The subject of the triple pattern. Subject VarOrNode `json:"subject"` }
Represents a triple template to be forged for a construct query.
type TripleDeleteTemplate ¶
type TripleDeleteTemplate struct { // The object of the triple pattern. Object VarOrNamedNodeOrLiteral `json:"object"` // The predicate of the triple pattern. Predicate VarOrNamedNode `json:"predicate"` // The subject of the triple pattern. Subject VarOrNamedNode `json:"subject"` }
Represents a triple template to be deleted.
type TriplePattern ¶
type TriplePattern struct { // The object of the triple pattern. Object VarOrNodeOrLiteral `json:"object"` // The predicate of the triple pattern. Predicate VarOrNamedNode `json:"predicate"` // The subject of the triple pattern. Subject VarOrNode `json:"subject"` }
Represents a triple pattern in a [SimpleWhereCondition].
type Tuple_of_Expression_and_Expression ¶
type Tuple_of_Expression_and_Expression struct { F0 Expression F1 Expression }
Tuple_of_Expression_and_Expression is a tuple with custom marshal and unmarshal methods
func (Tuple_of_Expression_and_Expression) MarshalJSON ¶
func (t Tuple_of_Expression_and_Expression) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for Tuple_of_Expression_and_Expression
func (*Tuple_of_Expression_and_Expression) UnmarshalJSON ¶
func (t *Tuple_of_Expression_and_Expression) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for Tuple_of_Expression_and_Expression
type Uint128 ¶
type Uint128 string
A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.
Examples ¶
Use `from` to create instances of this and `u128` to get the value out:
``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);
let b = Uint128::from(42u64); assert_eq!(b.u128(), 42);
let c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```
type Value ¶
type Value struct {
ValueType
}
Value is the interface for the enum.
func (Value) MarshalJSON ¶
MarshalJSON custom marshaler for the Value interface.
func (*Value) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaler for the Value interface.
type Value_Literal ¶
type Value_Literal struct { Type string `json:"type"` Value string `json:"value"` Lang *string `json:"xml:lang,omitempty"` Datatype *IRI `json:"datatype,omitempty"` }
Literal represents the Literal variant of the enum.
type VarOrNamedNode ¶
type VarOrNamedNode struct { // A variable. Variable *VarOrNamedNode_Variable `json:"variable,omitempty"` // An RDF [IRI](https://www.w3.org/TR/rdf11-concepts/#dfn-iri). NamedNode *VarOrNamedNode_NamedNode `json:"named_node,omitempty"` }
Represents either a variable or a named node (IRI).
type VarOrNamedNodeOrLiteral ¶
type VarOrNamedNodeOrLiteral struct { // A variable. Variable *VarOrNamedNodeOrLiteral_Variable `json:"variable,omitempty"` // An RDF [IRI](https://www.w3.org/TR/rdf11-concepts/#dfn-iri). NamedNode *VarOrNamedNodeOrLiteral_NamedNode `json:"named_node,omitempty"` // An RDF [literal](https://www.w3.org/TR/rdf11-concepts/#dfn-literal), i.e. a simple literal, a language-tagged string or a typed value. Literal *VarOrNamedNodeOrLiteral_Literal `json:"literal,omitempty"` }
Represents either a variable, a named node or a literal.
type VarOrNamedNodeOrLiteral_Literal ¶
type VarOrNamedNodeOrLiteral_Literal Literal
type VarOrNamedNodeOrLiteral_NamedNode ¶
type VarOrNamedNodeOrLiteral_NamedNode IRI
type VarOrNamedNodeOrLiteral_Variable ¶
type VarOrNamedNodeOrLiteral_Variable string
type VarOrNamedNode_NamedNode ¶
type VarOrNamedNode_NamedNode IRI
type VarOrNamedNode_Variable ¶
type VarOrNamedNode_Variable string
type VarOrNode ¶
type VarOrNode struct { // A variable. Variable *VarOrNode_Variable `json:"variable,omitempty"` // A node, i.e. an IRI or a blank node. Node *VarOrNode_Node `json:"node,omitempty"` }
Represents either a variable or a node.
type VarOrNodeOrLiteral ¶
type VarOrNodeOrLiteral struct { // A variable. Variable *VarOrNodeOrLiteral_Variable `json:"variable,omitempty"` // A node, i.e. an IRI or a blank node. Node *VarOrNodeOrLiteral_Node `json:"node,omitempty"` // An RDF [literal](https://www.w3.org/TR/rdf11-concepts/#dfn-literal), i.e. a simple literal, a language-tagged string or a typed value. Literal *VarOrNodeOrLiteral_Literal `json:"literal,omitempty"` }
Represents either a variable, a node or a literal.
type VarOrNodeOrLiteral_Literal ¶
type VarOrNodeOrLiteral_Literal Literal
type VarOrNodeOrLiteral_Node ¶
type VarOrNodeOrLiteral_Node Node
type VarOrNodeOrLiteral_Variable ¶
type VarOrNodeOrLiteral_Variable string
type VarOrNode_Node ¶
type VarOrNode_Node Node
type VarOrNode_Variable ¶
type VarOrNode_Variable string
type WhereClause ¶
type WhereClause struct { // Represents a basic graph pattern expressed as a set of triple patterns. Bgp *WhereClause_Bgp `json:"bgp,omitempty"` // Evaluates right for all result row of left LateralJoin *WhereClause_LateralJoin `json:"lateral_join,omitempty"` // Filters the inner clause matching the expression. The solutions coming from the inner clause that do not match the expression are discarded. The variables provided in the inner clause are available in the filter expression. Filter *WhereClause_Filter `json:"filter,omitempty"` }
Represents a WHERE clause, i.e. a set of conditions to filter the results.
type WhereClause_Bgp ¶
type WhereClause_Bgp struct {
Patterns []TriplePattern `json:"patterns"`
}
type WhereClause_Filter ¶
type WhereClause_Filter struct { Expr Expression `json:"expr"` Inner WhereClause `json:"inner"` }
type WhereClause_LateralJoin ¶
type WhereClause_LateralJoin struct { Left WhereClause `json:"left"` Right WhereClause `json:"right"` }