On this page:
graph-name?
graph
unnamed-graph
named-graph
graph-name-or-blank

8.1 Graph Type🔗ℹ

predicate

(graph-name? val)  boolean?

  val : any/c
A graph name is either a subject? (which expands to resource? or blank-node) or #f for the default graph.

struct

(struct graph (name [statements #:mutable]))

  name : graph-name?
  statements : statement-list?
TBD

constructor

(unnamed-graph statements)  graph?

  statements : statement-list?
Returns a new graph? that has no name. In this case the value of graph-name is #f.

constructor

(named-graph name statements)  graph?

  name : graph-name?
  statements : statement-list?
Returns a new graph? that has an explicit name.

procedure

(graph-name-or-blank graph)  subject?

  graph : graph?
Return the name of the graph, if it was created as a default graph return a newly created blank node instead.