+ All Categories
Home > Software > Neo4j: JDBC Connection Case Using LibreOffice

Neo4j: JDBC Connection Case Using LibreOffice

Date post: 27-May-2015
Category:
Upload: eric-lee
View: 541 times
Download: 4 times
Share this document with a friend
Description:
Show how to connect Neo4j dataase using JDBC driver, software client is LibreOffice Base. The slide including setting, query execution and trouble shooting.
Popular Tags:
14

Click here to load reader

Transcript
Page 1: Neo4j: JDBC Connection Case Using LibreOffice

Neo4j: JDBC Connection Case Using LibreOffice

Eric LeeNational University of Singapore

2014.Apr

Page 2: Neo4j: JDBC Connection Case Using LibreOffice

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

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

LibreOffice Main Window

1. Tools2. Options…

Page 5: Neo4j: JDBC Connection Case Using LibreOffice

LibreOffice Options Window1. Advanced2. Class Path…

Page 6: Neo4j: JDBC Connection Case Using LibreOffice

Add JDBC Connector1. Add Archive2. Select JDBC Connector 3. OK

Page 7: Neo4j: JDBC Connection Case Using LibreOffice

Database Wizard1. Execute LibreOffice Base 2. Database Wizard 3. Connect to an existing database:JDBC4. Next

Page 8: Neo4j: JDBC Connection Case Using LibreOffice

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

Database WizardFill Server Parameter

1. Datasource URL: neo4j://<IP or URL>:<port> 2. Next

Page 10: Neo4j: JDBC Connection Case Using LibreOffice

Database WizardUser name & Password

1. ID & Password 2. Test Connection 3. Next

Page 11: Neo4j: JDBC Connection Case Using LibreOffice

Database WizardSave database workspace

1. Choose the settings 2. Finish 3. Save workspace as..

Page 12: Neo4j: JDBC Connection Case Using LibreOffice

Database Operation

1. Insert menu 2. Query (SQL View)

Page 13: Neo4j: JDBC Connection Case Using LibreOffice

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

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)


Recommended