Neo4j: JDBC Connection Case Using LibreOffice

Post on 27-May-2015

546 views 4 download

Tags:

description

Show how to connect Neo4j dataase using JDBC driver, software client is LibreOffice Base. The slide including setting, query execution and trouble shooting.

Transcript of Neo4j: JDBC Connection Case Using LibreOffice

Neo4j: JDBC Connection Case Using LibreOffice

Eric LeeNational University of Singapore

2014.Apr

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

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

LibreOffice Main Window

1. Tools2. Options…

LibreOffice Options Window1. Advanced2. Class Path…

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

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

Database WizardTest JDBC Driver First!

1. JDBC driver class: org.neo4j.jdbc.Driver 2. Test class. 3. If load successful, next step.

Database WizardFill Server Parameter

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

Database WizardUser name & Password

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

Database WizardSave database workspace

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

Database Operation

1. Insert menu 2. Query (SQL View)

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

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)