Neo4j: JDBC Connection Case Using LibreOffice
Click here to load reader
description
Transcript of Neo4j: JDBC Connection Case Using LibreOffice
![Page 1: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/1.jpg)
Neo4j: JDBC Connection Case Using LibreOffice
Eric LeeNational University of Singapore
2014.Apr
![Page 2: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/2.jpg)
WorkflowPreparation
Connection Setting
Query Execution
JRE installation check Get Neo4j server port Download JDBC driver
Add JDBC connector Create connection settingConnection test
Create workspaceEdit Cypher syntaxExecute syntaxCheck result
![Page 3: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/3.jpg)
Required Files and Parameters
• LibreOffice http://www.libreoffice.org
• Neo4j JDBC Connector http://dist.neo4j.org/neo4j-jdbc/neo4j-jdbc-2.0.1-SNAPSHOT-jar-with-dependencies.jar
• Neo4j Database Server Location and Port XXX.XXX.XXX.XXX:7474
![Page 4: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/4.jpg)
LibreOffice Main Window
1. Tools2. Options…
![Page 5: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/5.jpg)
LibreOffice Options Window1. Advanced2. Class Path…
![Page 6: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/6.jpg)
Add JDBC Connector1. Add Archive2. Select JDBC Connector 3. OK
![Page 7: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/7.jpg)
Database Wizard1. Execute LibreOffice Base 2. Database Wizard 3. Connect to an existing database:JDBC4. Next
![Page 8: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/8.jpg)
Database WizardTest JDBC Driver First!
1. JDBC driver class: org.neo4j.jdbc.Driver 2. Test class. 3. If load successful, next step.
![Page 9: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/9.jpg)
Database WizardFill Server Parameter
1. Datasource URL: neo4j://<IP or URL>:<port> 2. Next
![Page 10: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/10.jpg)
Database WizardUser name & Password
1. ID & Password 2. Test Connection 3. Next
![Page 11: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/11.jpg)
Database WizardSave database workspace
1. Choose the settings 2. Finish 3. Save workspace as..
![Page 12: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/12.jpg)
Database Operation
1. Insert menu 2. Query (SQL View)
![Page 13: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/13.jpg)
Database Operation
1. Edit Cypher scripts. 2. Click “Run SQL command directly” 3. Run Query (F5). 4. Check query result.
Run SQL command…Run Query
Query Result
Cypher Syntax Edit Area
![Page 14: Neo4j: JDBC Connection Case Using LibreOffice](https://reader037.fdocuments.net/reader037/viewer/2022100220/55658de5d8b42a2b6d8b4eb7/html5/thumbnails/14.jpg)
Trouble Shooting• LibreOffice Shows: “JRE is defective”
Solution: Install 32bit JRE
Select 32bit JRE in Advanced Option window
In x64 Windows, 32bit JRE in Program Files (x86)