On this page:
graph-pattern
make-common-subject-pattern
result-cell?
result-row?
results?
graph-pattern-query

13.3 Graph Patterns & Query🔗ℹ

Query Module – Graph Patterns & Query

struct

(struct graph-pattern (patterns))

  patterns : (set/c statement-pattern?)
TBD

procedure

(make-common-subject-pattern patterns)  graph-pattern?

  patterns : (set/c (list/c component-pattern? component-pattern?))
TBD

predicate

(result-cell? val)  boolean?

  val : any/c
TBD

predicate

(result-row? val)  boolean?

  val : any/c
TBD

predicate

(results? val)  boolean?

  val : any/c
Returns #t if val is a stream of result-row? values.

procedure

(graph-pattern-query pattern graph)  results?

  pattern : graph-pattern?
  graph : graph?
Apply the graph pattern to the statements in the graph, returning a stream of result-row? values.