简体   繁体   English

Neo4j的第一步

[英]First steps in Neo4j

I am currently involved in a project where I need to build a remote neo4j server for adding some ego-networks (with just a few of nodes and relationships). 我目前正在一个项目中,我需要构建一个远程neo4j服务器来添加一些自我网络(仅包含几个节点和关系)。

I've been using this documentation: http://docs.neo4j.org/chunked/milestone/server-java-rest-client-example.html 我一直在使用此文档: http : //docs.neo4j.org/chunked/milestone/server-java-rest-client-example.html

However, I do not find how to create unique nodes (specifying an attribute as id) and I would like to know if it is also possible to make some queries to the REST API via url (solr style). 但是,我找不到如何创建唯一节点(将属性指定为id),并且我想知道是否还可以通过url(solr样式)对REST API进行一些查询。

Thanks in advance! 提前致谢!

Neo4j has a REST API - see http://docs.neo4j.org/chunked/stable/rest-api.html for the documentation. Neo4j具有REST API-有关文档,请参见http://docs.neo4j.org/chunked/stable/rest-api.html

Nodes can be unique per-index (meaning, if you index a property, you can enforce only one node existing for that property) - see http://docs.neo4j.org/chunked/stable/rest-api-unique-indexes.html for the documentation to do this via the REST API. 节点可以按索引是唯一的(意味着,如果您对一个属性进行索引,则只能强制该属性存在一个节点)-请参阅http://docs.neo4j.org/chunked/stable/rest-api-unique-indexes .html文件,以通过REST API执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM