3.1.4 PGX Interpreter

The PGX has the following interpreters:
  • pgql: The pgql interpreter is a ready-to-use interpreter used to connect the configured PGX server. This Interpreter is used to perform queries on the graph in Compliance Studio. PGQL is a graph query language built on top of SQL, bringing graph pattern matching capabilities to existing SQL users and new users interested in graph technology but who do not have an SQL background.
  • pgx-algorithm: The pgx-algorithm is a ready-to-use interpreter used to connect to the configured PGX server. This Interpreter is used to write an algorithm on the graph and is also used in the PGX interpreter.
  • pgx-java: The pgx-java interpreter is a ready-to-use interpreter used to connect to the configured PGX server. It is Java11 based interpreter with a PGX client embedded in it to query on graph present in the PGX server.
  • pgx-python: The pgx-python interpreter is a ready-to-use interpreter used to connect to the configured PGX server. It is a python based interpreter with a PGX python client embedded in it to query on graph present in the PGX server. By default, this Interpreter points to ml4aml Python Virtual environment.
To configure the pgql interpreter variant, follow these steps:
  1. On the Interpreter page LHS menu, select pgql. The pgql interpreter pane is displayed.
  2. On the Interpreter Settings page, expand Interpreter Client Configurations and click the Edit icon for <Class Name> (zeppelin). The Interpreter Client Configurations Window is displayed.
  3. Enter the following information in the pgql interpreter variant pane as tabulated in the following table.

    Table 3-4 PGX interpreter

    Field Description
    graphviz.formatter.class Enter the class which implements the formatting of the visualization output.

    For example,oracle.datastudio.graphviz.formatter.DataStudi oFormatter

    graphviz.driver.class Enter the class which implements the PGQL driver.

    For example:oracle.pgx.graphviz.driver.PgxDriver

    base_url Enter the base URL of the PGX.

    For example, http://<HOSTNAME>:7007

    zeppelin.interpreter.outpu t.limit Enter the output message limit. Any message that exceeds the limit is truncated.

    For example, 102 or 400.

    num_cached_resultsets Maximum number of results sets kept open on the PGX server per interpreter session. Only checked when the interpreter is used, and therefore it should only be used with expiring interpreter sessions.

    For example: 5

    resultset_expiration_time _secs Number of seconds after which unused results sets are closed on the PGX server. Only checked when interpreter session is used and should only be used with expiring interpreter sessions.

    For example: 3600

    zeppelin.python.useIPyth on Set to 'True' to use IPython, else set to 'False'.
    zeppelin.python Enter the Python installed path. The value points to the default Python version set for the Interpreter.

    Note:

    To use a different Python version, see Change Version in the Python Interpreter section.