-
-
-
Creates a new parametric query using given pattern with at least 1 query variable. Query vars are strings with ?
prefix. The rest of the string is considered the variable name.
g.addParamQuery(["?a", "friend", "?b"]);
Internally, the query pattern is translated into a basic param query with an additional result transformation to resolve the stated query variable solutions. Returns a rstream subscription emitting arrays of solution objects like:
[{a: "asterix", b: "obelix"}, {a: "romeo", b: "julia"}]
-
Converts the given path pattern into a number of sub-queries and return a rstream subscription of re-joined result solutions. If maxLen
is given and greater than the number of actual path predicates, the predicates are repeated.
-
-
Creates a new query subscription from given SPO pattern. Any null
values in the pattern act as wildcard selectors and any other value as filter for the given triple component. E.g. the pattern [null, "type", "person"]
matches all triples which have "type"
as predicate and "person"
as object. Likewise the pattern [null, null, null]
matches ALL triples in the graph.
By default, the returned rstream subscription emits sets of matched triples. If only the raw triple IDs are wanted, set emitTriples
arg to false
.
-
Compiles given query spec into a number of sub-queries and result transformations. Returns rstream subscription of final result sets. See QuerySpec docs for further details.
-
Generated using TypeDoc
Like TripleStore.addMultiJoin, but optimized for only two input queries. Returns a rstream subscription computing the natural join of the given input query results.