Skip to content

graph-model

Manage graph models (knowledge graph)

Authentication scope: fabric

List graph models in a workspace

Terminal window
fabio graph-model list --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID

Read-only · Returns list

Show details of a graph model

Terminal window
fabio graph-model show --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Graph model ID

Read-only · Returns object

Create a new graph model

Terminal window
fabio graph-model create --workspace <value> --name <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--name string Yes Display name
--description string No Optional description
--ontology string No Ontology ID to link the graph model to
--sensitivity-label string No Sensitivity label ID to apply on creation

Examples

Terminal window
fabio graph-model create --workspace $WS --name "FactoryGraph" --ontology $ONT

Mutates state · Returns object

Update graph model properties (name and/or description)

Terminal window
fabio graph-model update --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Graph model ID
--name string No New display name
--description string No New description

Mutates state · Returns object

Delete a graph model

Terminal window
fabio graph-model delete --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Graph model ID
--hard-delete bool No Permanently delete (cannot be recovered)

Mutates state · Destructive · Returns void

Get the definition of a graph model

Terminal window
fabio graph-model get-definition --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Graph model ID
--decode bool No Decode base64 payloads inline (adds decodedPayload field)

Read-only · Long-running operation · Returns object

Update the definition of a graph model

Terminal window
fabio graph-model update-definition --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Graph model ID
--file string No Path to definition file
--content string No Inline definition content

Mutates state · Long-running operation · Returns void

Trigger a graph refresh job

Terminal window
fabio graph-model refresh-graph --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Graph model ID
--wait bool No Wait for the refresh to complete
--timeout string No Timeout in seconds when using –wait (default: 600)

Mutates state · Long-running operation · Returns object

Execute a GQL query against the graph

Terminal window
fabio graph-model execute-query --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Graph model ID
--gql string No GQL query text (ISO/IEC 39075). Use @file.gql to read from a file, or omit to pipe via stdin. Named --gql to avoid clashing with the global --query JMESPath projection flag

Examples

Terminal window
fabio graph-model execute-query --workspace $WS --id $GM --gql "MATCH (e:Equipment) WHERE e.status = 'Offline' RETURN e LIMIT 100"

Read-only · Returns object

Get the queryable graph type

Terminal window
fabio graph-model get-queryable-graph-type --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Graph model ID

Read-only · Returns object

Initialize a graph model for querying (portal-only operation)

Terminal window
fabio graph-model initialize --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Graph model ID

Mutates state · Returns object