This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mv neo4j-community-1.8.2-unix.tar.gz /home/userName/neo4j/neo4j-community-1.8.2-unix.tar.gz | |
cd /home/userName/neo4j | |
tar -xzf neo4j-community-1.8.2-unix.tar.gz | |
ls | |
# > neo4j-community-1.8.2 | |
mv neo4j-community-1.8.2 hydraGraph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script written by Richie Barter of Coolgarif Tech | |
# Date: April 2013 | |
from neo4j import GraphDatabase | |
db = GraphDatabase('/home/userNAME/neo4j/hydraGraph/data/graph.db') | |
with db.transaction: | |
# Create an index for nodes & relations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo nano /etc/environment | |
JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64" | |
CLASSPATH="/usr/lib/jvm/java-7-openjdk-amd64/lib:." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd /home/userName/neo4j/hydraGraph/conf | |
$ ls | |
custom-logback.xml neo4j-wrapper.conf logging.properties neo4j-http-logging.xml | |
README.txt neo4j.properties ssl neo4j-server.properties windows-wrapper-logging.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http port (for all data, administrative, and UI access) | |
org.neo4j.server.webserver.https.port=7475 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Name of the service | |
wrapper.name=neo4j-hydraGraph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script written by Richie Barter of Coolgarif Tech | |
# Date: April 2013 | |
from neo4j import GraphDatabase | |
db = GraphDatabase('/home/userNAME/neo4j/hydraGraph/data/graph.db') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with db.transaction: | |
# Create an index for nodes & relations | |
COMPANY_NAME_INDEX = "COMPANY_NAME_INDEX" | |
if db.node.indexes.exists(COMPANY_NAME_INDEX) == 0: | |
companyNameIndex = db.node.indexes.create(COMPANY_NAME_INDEX) | |
else: | |
companyNameIndex = db.node.indexes.get(COMPANY_NAME_INDEX) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coolgarifTech = db.node(name = 'CoolgarifTech', description = 'Digital Agency focused on Data', established="Jan 2013", founders="Richie Barter & James Billot") | |
companyNameIndex['name']['CoolgarifTech'] = coolgarifTech | |
companyNameIndex['description']['Digital Agency focused on Data'] = coolgarifTech |
OlderNewer