Operations
Graph analytics operations.
create_graph
¤
Replace relations of the given bundle
relations is a stringified JSON, instead of a dict, because complex Yjs types (arrays, maps) are not currently supported in the UI.
PARAMETER | DESCRIPTION |
---|---|
bundle
|
Bundle to modify
TYPE:
|
relations
|
Set of relations to set for the bundle. The parameter
should be a JSON object where the keys are relation names and the values are
a dictionary representation of a
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Bundle
|
The input bundle with the new relations set.
TYPE:
|
cypher
¤
Run a Cypher query on the graph in the bundle. Save the results as a new DataFrame.
import_csv
¤
Imports a CSV file.
import_file
¤
import_file(*, file_path: str, table_name: str, file_format: FileFormat, **kwargs) -> Bundle
Read the contents of the a file into a Bundle
.
PARAMETER | DESCRIPTION |
---|---|
file_path
|
Path to the file to import.
TYPE:
|
table_name
|
Name to use for identifying the table in the bundle.
TYPE:
|
file_format
|
Format of the file. Has to be one of the values in the
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Bundle
|
Bundle with a single table with the contents of the file.
TYPE:
|
organize
¤
Lets you rename/copy/delete DataFrames, and modify relations.
TODO: Merge this with "Create graph".
sample_graph
¤
Takes a (preferably connected) subgraph.
Operations for machine learning.
define_model
¤
define_model(bundle: Bundle, *, model_workspace: str, save_as: str = 'model')
Trains the selected model on the selected dataset. Most training parameters are set in the model definition.
model_inference
¤
model_inference(bundle: Bundle, *, model_name: str = 'model', input_mapping: ModelInferenceInputMapping, output_mapping: ModelOutputMapping)
Executes a trained model.