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.
- In Enterprise Designer, add the Import to Model stage to a workflow, and connect input and output ports to upstream and downstream stages.
- 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. - Run the job that contains the Import to Model stage.
-
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.
-
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 - 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
-
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 -
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.
-
For the port number, enter the
Bolt connector
address.The default port setting for the Bolt connector address is7700
. This is defined on the Neo4j server in the Neo4j configuration settings file (neo4j.conf). - When prompted, enter the path to the /bin folder for the Neo4j instance.
-
When prompted, enter the user name and password for Neo4j.