Graph Reference

Purpose

Each GRAPH_TABLE starts with a graph reference that references the graph to perform the pattern matching on.

Syntax

Semantics

A graph name may be qualified with a schema name to allow for querying graphs created by other users.

Example 1

The following query counts the number of persons in the students_graph owned by user scott:

SELECT COUNT(*)
FROM GRAPH_TABLE ( scott.students_graph
  MATCH (a IS person)
  COLUMNS (a.name)
);

The output is:

  COUNT(*)
----------
      4