English 中文(简体)
建立 NU4j GetAll 服务器扩展有问题
原标题:Have problems building neo4j GetAll server extension

I have been trying to build the example GetAll neo4j server extension, but unfortunately I cannot make it work. I installed the Windows version of neo4j and run it as a server. I also installed Python neo4jrestclient and I am accessing neo4j through Python scripts. The following works fine: from neo4jrestclient.client import GraphDatabase gdb = GraphDatabase("http://localhost:7474/db/data/") print gdb.extensions

It gives me "CypherPlugin" and "GremlinPlugin". I want to build the example GetAll server extension, which is Java. I am using Eclipse. I am able to create the jar file in the folder "c: eo4j_installation_root eo4j-community-1.7pluginsGetAll.jar", but when I restart the neo4j server and run the neo4jrestclient it does not show the GetAll server extension. I searched a lot, but in vain. I have lots of experience with C++ and Python, but new to Java. I will really appreciate some help to be able to build neo4j server extensions. It is critically important for my evaluation of neo4j.

问题回答

您是否确定有一个 META- INF/ services 等列表列出插件类, 罐头文件是用中间二人创建的( 这在 Eclipse 导出设置中不是默认的), 使 dirs 被分类加载器看到?

请查看 http://docs.neo4j.org/chunked/snapshot/server-plugins.html

您可以使用 Bulbs (http://bulbflow.com ) 来获得全套服务, 而不建立扩展名 :

>>> from bulbs.neo4jserver import Graph
>>> g = Graph()
>>> g.vertices.get_all()
>>> g.edges.get_all()

自定义模式工作方式相同:

# people.py

from bulbs.model import Node, Relationship
from bulbs.property import String, Integer, DateTime
from bulbs.utils import current_datetime

class Person(Node):

    element_type = "person"

    name = String(nullable=False)
    age = Integer()


class Knows(Relationship):

    label = "knows"

    created = DateTime(default=current_datetime, nullable=False)

然后给模型代理者打电话:

>>> from people import Person, Knows
>>> from bulbs.neo4jserver import Graph

>>> g = Graph()
>>> g.add_proxy("people", Person)
>>> g.add_proxy("knows", Knows)

>>> james = g.people.create(name="James")
>>> julie = g.people.create(name="Julie")
>>> g.knows.create(james, julie)

>>> g.people.get_all()
>>> g.knows.get_all()




相关问题
NoSQL or Ehcache caching?

I m 利用春天/Hibernate/Tomcat和我sql数据库建造一个路标网络

How does FlockDB compare with neo4j?

Both FlockDB and neo4j are open source frameworks for keeping large graph dataset. Anyone familiar enough with both products to write a comparison?

Problem Working with Neo

I downloaded Neoclipse Source and downloaded the Neo4J source. However some of the classes that the Neoclipse source file refers to are not found in the Neo4J source. Are they deprecated? Can I get ...

Neo4j Documentation [closed]

I ve been looking into setting up and trying out Neo4j on Amazon EC2 however I seem to have hit a road block with finding documentation that I can use. For example, this page mentions "Clustering, ...

热门标签