Import a Context Graph model into a standa-alone Neo4j instance - 23.1

Spectrum Dataflow Designer Guide

Version
23.1
Language
English
Product name
Spectrum Technology Platform
Title
Spectrum Dataflow Designer Guide
Copyright
2024
First publish date
2007
Last updated
2024-10-11
Published on
2024-10-11T22:55:47.128293

This procedure describes how to use the Import to Model stage in a workflow to create a batch file that uploads the model to a stand-alone instance of the Neo4j Graph Database Server.

  1. In Enterprise Designer, add the Import to Model stage to a workflow, and connect input and output ports to upstream and downstream stages.
    For more information see Input and Output.
  2. Configure stage options.
    Option Description
    Entities tab Settings on this tab configure the entities that will be included in the imported model. For more information, see Entities tab.
    Relationships tab Settings on this tab configure relationships between source and target entities in the imported model. For more information, see Relationships tab.
    Options tab Specify an output directory on a local or shared drive. The Import to Model stage writes batch files into this directory that you run to import the model and data to the Neo4j database. For more information, see Options tab.
  3. Run the job that contains the Import to Model stage.
  4. After you run the job, navigate to the location specified by Output path on the Options tab.
    If the Neo4j instance used by Context Graph is on a different server, copy the folder with the model name to that machine and navigate to the copied folder.
  5. On the server that runs the Neo4j stand-alone instance, open the model folder and run the appropriate script file.
    Platform Run
    Windows modelname-timestamp_import.bat
    Linux modelname-timestamp_import.sh
    1. When prompted, enter the path to the Neo4j instance /bin folder.
    Note:

    If your data contains multiple line input fields, add the option --multiline-fields=true to the neo4j-admin import command in the modelname-timestamp_import.bat or or modelname-timestamp_import.sh file.

    Example: call %neopath%/neo4j-admin import --database Artists --multiline-fields=true --verbose

  6. On the server that runs the Neo4j stand-alone instance, open the model folder and run the appropriate dbinit script file.

    Windows

    SSL Certificate Run
    No None modelname-timestamp_dbinit.bat
    Yes Self-signed modelname-timestamp_dbinit_ssc.bat
    Yes Certificate authority modelname-timestamp_dbinit_s.bat

    Linux

    SSL Certificate  
    No None modelname-timestamp_dbinit.sh
    Yes Self-signed modelname-timestamp_dbinit_ssc.sh
    Yes Certificate authority modelname-timestamp_dbinit_s.sh
    1. When prompted, enter the user name and password for Neo4j.
      Press Enter in each case if authentication is not set up for the Neo4j instance.
    2. For the port number, enter the Bolt connector address.
      The default port setting for the Bolt connector address is 7700. This is defined on the Neo4j server in the Neo4j configuration settings file (neo4j.conf).
    3. When prompted, enter the path to the /bin folder for the Neo4j instance.