neo4j-admin 0.0.1-java
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/Gemfile +2 -0
- data/README.rdoc +27 -0
- data/lib/neo4j-admin.rb +24 -0
- data/lib/neo4j-admin/jars/antlr-2.7.7.jar +0 -0
- data/lib/neo4j-admin/jars/asm-3.1.jar +0 -0
- data/lib/neo4j-admin/jars/blueprints-core-1.0.jar +0 -0
- data/lib/neo4j-admin/jars/blueprints-neo4j-graph-1.0.jar +0 -0
- data/lib/neo4j-admin/jars/commons-collections-3.2.1.jar +0 -0
- data/lib/neo4j-admin/jars/commons-configuration-1.6.jar +0 -0
- data/lib/neo4j-admin/jars/commons-lang-2.4.jar +0 -0
- data/lib/neo4j-admin/jars/commons-logging-1.1.1.jar +0 -0
- data/lib/neo4j-admin/jars/gremlin-1.3.jar +0 -0
- data/lib/neo4j-admin/jars/groovy-1.8.2.jar +0 -0
- data/lib/neo4j-admin/jars/jackson-core-asl-1.8.3.jar +0 -0
- data/lib/neo4j-admin/jars/jackson-mapper-asl-1.8.3.jar +0 -0
- data/lib/neo4j-admin/jars/jansi-1.5.jar +0 -0
- data/lib/neo4j-admin/jars/jersey-core-1.9.jar +0 -0
- data/lib/neo4j-admin/jars/jersey-server-1.9.jar +0 -0
- data/lib/neo4j-admin/jars/jetty-6.1.25.jar +0 -0
- data/lib/neo4j-admin/jars/jetty-util-6.1.25.jar +0 -0
- data/lib/neo4j-admin/jars/neo4j-cypher-plugin-1.6.M01.jar +0 -0
- data/lib/neo4j-admin/jars/neo4j-gremlin-plugin-1.6.M01.jar +0 -0
- data/lib/neo4j-admin/jars/neo4j-server-1.5-static-web.jar +0 -0
- data/lib/neo4j-admin/jars/neo4j-server-1.5.jar +0 -0
- data/lib/neo4j-admin/jars/neo4j-server-1.6.M01-static-web.jar +0 -0
- data/lib/neo4j-admin/jars/neo4j-server-1.6.M01.jar +0 -0
- data/lib/neo4j-admin/jars/pipes-0.8.jar +0 -0
- data/lib/neo4j-admin/jars/rrd4j-2.0.7.jar +0 -0
- data/lib/neo4j-admin/jars/servlet-api-2.5-20081211.jar +0 -0
- data/lib/neo4j-admin/railtie.rb +12 -0
- data/lib/test.rb +20 -0
- data/neo4j-admin.gemspec +20 -0
- metadata +89 -0
data/CHANGELOG
ADDED
data/Gemfile
ADDED
data/README.rdoc
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
== What
|
2
|
+
|
3
|
+
Starts a webserver using an embedded neo4j graph database.
|
4
|
+
|
5
|
+
== Why
|
6
|
+
|
7
|
+
Because we need to admin and visualize the graph database.
|
8
|
+
This is probably only going to be used for development and not in production (?)
|
9
|
+
|
10
|
+
== How
|
11
|
+
|
12
|
+
In your gem file
|
13
|
+
|
14
|
+
gem 'neo4j-admin'
|
15
|
+
|
16
|
+
In your config/application.rb:
|
17
|
+
|
18
|
+
require 'neo4j-admin/railtie'
|
19
|
+
|
20
|
+
This will start the neo4j server at http://localhost:7474 using the same database instance as your rails app.
|
21
|
+
|
22
|
+
== Todo
|
23
|
+
|
24
|
+
I also want it to work standalone:
|
25
|
+
|
26
|
+
neo4j-admin <storage_path>
|
27
|
+
|
data/lib/neo4j-admin.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'neo4j-admin/jars/neo4j-server-1.6.M01.jar'
|
2
|
+
require 'neo4j-admin/jars/neo4j-server-1.6.M01-static-web.jar'
|
3
|
+
require 'neo4j-admin/jars/commons-configuration-1.6.jar'
|
4
|
+
require 'neo4j-admin/jars/commons-logging-1.1.1.jar'
|
5
|
+
require 'neo4j-admin/jars/commons-lang-2.4.jar'
|
6
|
+
require 'neo4j-admin/jars/commons-collections-3.2.1.jar'
|
7
|
+
require 'neo4j-admin/jars/jetty-6.1.25.jar'
|
8
|
+
require 'neo4j-admin/jars/jetty-util-6.1.25.jar'
|
9
|
+
require 'neo4j-admin/jars/servlet-api-2.5-20081211.jar'
|
10
|
+
require 'neo4j-admin/jars/jersey-core-1.9.jar'
|
11
|
+
require 'neo4j-admin/jars/jersey-server-1.9.jar'
|
12
|
+
require 'neo4j-admin/jars/rrd4j-2.0.7.jar'
|
13
|
+
require 'neo4j-admin/jars/asm-3.1.jar'
|
14
|
+
require 'neo4j-admin/jars/jackson-core-asl-1.8.3.jar'
|
15
|
+
require 'neo4j-admin/jars/jackson-mapper-asl-1.8.3.jar'
|
16
|
+
require 'neo4j-admin/jars/groovy-1.8.2.jar'
|
17
|
+
require 'neo4j-admin/jars/gremlin-1.3.jar'
|
18
|
+
require 'neo4j-admin/jars/neo4j-gremlin-plugin-1.6.M01.jar'
|
19
|
+
require 'neo4j-admin/jars/neo4j-cypher-plugin-1.6.M01.jar'
|
20
|
+
require 'neo4j-admin/jars/pipes-0.8.jar'
|
21
|
+
require 'neo4j-admin/jars/blueprints-core-1.0.jar'
|
22
|
+
require 'neo4j-admin/jars/blueprints-neo4j-graph-1.0.jar'
|
23
|
+
require 'neo4j-admin/jars/jansi-1.5.jar'
|
24
|
+
require 'neo4j-admin/jars/antlr-2.7.7.jar'
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'neo4j-admin'
|
2
|
+
|
3
|
+
class Neo4jAdmin < Rails::Railtie
|
4
|
+
|
5
|
+
config.after_initialize do
|
6
|
+
graphdb = Neo4j.db.graph
|
7
|
+
srv = org.neo4j.server.WrappingNeoServerBootstrapper.new(graphdb)
|
8
|
+
srv.start
|
9
|
+
puts "neo4j-admin: Started admin server on port 7474"
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
data/lib/test.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require "bundler/setup"
|
3
|
+
require 'neo4j'
|
4
|
+
require 'neo4j-admin'
|
5
|
+
|
6
|
+
Neo4j.start
|
7
|
+
graphdb = Neo4j.db.graph
|
8
|
+
#WrappingNeoServerBootstrapper srv;
|
9
|
+
|
10
|
+
puts "start server"
|
11
|
+
srv = org.neo4j.server.WrappingNeoServerBootstrapper.new(graphdb)
|
12
|
+
srv.start
|
13
|
+
puts "SLEEP"
|
14
|
+
sleep(180)
|
15
|
+
puts "WAKE UP"
|
16
|
+
puts "Wait"
|
17
|
+
# The server is now running
|
18
|
+
# until we stop it:
|
19
|
+
srv.stop()
|
20
|
+
Neo4j.shutdown
|
data/neo4j-admin.gemspec
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "neo4j-admin"
|
3
|
+
s.version = '0.0.1'
|
4
|
+
s.platform = 'java'
|
5
|
+
s.required_ruby_version = ">= 1.8.7"
|
6
|
+
|
7
|
+
s.authors = "Andreas Ronge"
|
8
|
+
s.email = 'andreas.ronge@gmail.com'
|
9
|
+
s.homepage = "http://github.com/andreasronge/neo4j-admin/tree"
|
10
|
+
s.rubyforge_project = 'neo4j-admin'
|
11
|
+
s.summary = "A mostly a development tool which makes neo4j server admin GUI made available for the embedded Neo4j.rb gem"
|
12
|
+
s.description = <<-EOF
|
13
|
+
Loads all the jar files from the neo4j server. The neo4j-admin railtie will start the neo4j server after all
|
14
|
+
rails initialization is completed.
|
15
|
+
EOF
|
16
|
+
|
17
|
+
s.require_path = 'lib'
|
18
|
+
s.files = Dir.glob("{lib}/**/*") + %w(README.rdoc CHANGELOG Gemfile neo4j-admin.gemspec)
|
19
|
+
s.has_rdoc = false
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: neo4j-admin
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.1
|
6
|
+
platform: java
|
7
|
+
authors:
|
8
|
+
- Andreas Ronge
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-12-14 00:00:00 Z
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: |
|
17
|
+
Loads all the jar files from the neo4j server. The neo4j-admin railtie will start the neo4j server after all
|
18
|
+
rails initialization is completed.
|
19
|
+
|
20
|
+
email: andreas.ronge@gmail.com
|
21
|
+
executables: []
|
22
|
+
|
23
|
+
extensions: []
|
24
|
+
|
25
|
+
extra_rdoc_files: []
|
26
|
+
|
27
|
+
files:
|
28
|
+
- lib/test.rb
|
29
|
+
- lib/neo4j-admin.rb
|
30
|
+
- lib/neo4j-admin/railtie.rb
|
31
|
+
- lib/neo4j-admin/jars/commons-lang-2.4.jar
|
32
|
+
- lib/neo4j-admin/jars/jetty-util-6.1.25.jar
|
33
|
+
- lib/neo4j-admin/jars/gremlin-1.3.jar
|
34
|
+
- lib/neo4j-admin/jars/jackson-core-asl-1.8.3.jar
|
35
|
+
- lib/neo4j-admin/jars/commons-collections-3.2.1.jar
|
36
|
+
- lib/neo4j-admin/jars/servlet-api-2.5-20081211.jar
|
37
|
+
- lib/neo4j-admin/jars/jansi-1.5.jar
|
38
|
+
- lib/neo4j-admin/jars/antlr-2.7.7.jar
|
39
|
+
- lib/neo4j-admin/jars/jackson-mapper-asl-1.8.3.jar
|
40
|
+
- lib/neo4j-admin/jars/commons-logging-1.1.1.jar
|
41
|
+
- lib/neo4j-admin/jars/neo4j-server-1.5.jar
|
42
|
+
- lib/neo4j-admin/jars/neo4j-server-1.5-static-web.jar
|
43
|
+
- lib/neo4j-admin/jars/neo4j-cypher-plugin-1.6.M01.jar
|
44
|
+
- lib/neo4j-admin/jars/jetty-6.1.25.jar
|
45
|
+
- lib/neo4j-admin/jars/commons-configuration-1.6.jar
|
46
|
+
- lib/neo4j-admin/jars/groovy-1.8.2.jar
|
47
|
+
- lib/neo4j-admin/jars/jersey-core-1.9.jar
|
48
|
+
- lib/neo4j-admin/jars/jersey-server-1.9.jar
|
49
|
+
- lib/neo4j-admin/jars/asm-3.1.jar
|
50
|
+
- lib/neo4j-admin/jars/blueprints-core-1.0.jar
|
51
|
+
- lib/neo4j-admin/jars/neo4j-server-1.6.M01-static-web.jar
|
52
|
+
- lib/neo4j-admin/jars/neo4j-server-1.6.M01.jar
|
53
|
+
- lib/neo4j-admin/jars/pipes-0.8.jar
|
54
|
+
- lib/neo4j-admin/jars/blueprints-neo4j-graph-1.0.jar
|
55
|
+
- lib/neo4j-admin/jars/rrd4j-2.0.7.jar
|
56
|
+
- lib/neo4j-admin/jars/neo4j-gremlin-plugin-1.6.M01.jar
|
57
|
+
- README.rdoc
|
58
|
+
- CHANGELOG
|
59
|
+
- Gemfile
|
60
|
+
- neo4j-admin.gemspec
|
61
|
+
homepage: http://github.com/andreasronge/neo4j-admin/tree
|
62
|
+
licenses: []
|
63
|
+
|
64
|
+
post_install_message:
|
65
|
+
rdoc_options: []
|
66
|
+
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.8.7
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: "0"
|
81
|
+
requirements: []
|
82
|
+
|
83
|
+
rubyforge_project: neo4j-admin
|
84
|
+
rubygems_version: 1.8.9
|
85
|
+
signing_key:
|
86
|
+
specification_version: 3
|
87
|
+
summary: A mostly a development tool which makes neo4j server admin GUI made available for the embedded Neo4j.rb gem
|
88
|
+
test_files: []
|
89
|
+
|