neo4j

neo4j spatial contain search

醉酒当歌 提交于 2020-01-09 10:32:37
问题 i'm trying to develop a web service able to give me back the name of the administrative area that contains a given gps position. I have already developed a java application able to insert some polygons (administrative areas of my country) in neo4j using spatial plugin and Java API. Then, giving a gps position, i'm able to get the name of the polygon that contains it. Now i'm trying to do the same using REST API of Neo4j (instead of java api) but i'm not able to find any example. So my

How to connect Node.js app to database when they are running in separate Docker containers?

瘦欲@ 提交于 2020-01-09 05:40:28
问题 I have these containers running: I am able to visit node app at localhost:49160 and database at localhost:7474 as expected. However, the node app can't seem to actually connect to the database. I get this error when I try: Error: connect ECONNREFUSED 127.0.0.1:7474 at Object.exports._errnoException (util.js:1018:11) at exports._exceptionWithHostPort (util.js:1041:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14) This normally means it can't find the database at that host

How to connect Node.js app to database when they are running in separate Docker containers?

时间秒杀一切 提交于 2020-01-09 05:40:25
问题 I have these containers running: I am able to visit node app at localhost:49160 and database at localhost:7474 as expected. However, the node app can't seem to actually connect to the database. I get this error when I try: Error: connect ECONNREFUSED 127.0.0.1:7474 at Object.exports._errnoException (util.js:1018:11) at exports._exceptionWithHostPort (util.js:1041:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14) This normally means it can't find the database at that host

windows安装neo4j

有些话、适合烂在心里 提交于 2020-01-08 17:33:04
1.下载java neo4j使用java语言写的,因此电脑需要先安装java,具体参考链接:https://blog.csdn.net/weixin_43178406/article/details/103814509 2. 下载并安装neo4j 官网下载速度太慢(下载下来发现解压出现错误),提供网盘地址:https://pan.baidu.com/s/1ps3xFrGBf9XUFOyfINUmzg,密码:ikyy。 下载后解压,安装完成 3. 配置path 我的电脑-高级系统设置-环境变量-系统变量-path-新建:D:\install\neo4j-community-3.5.5\bin 4.测试 以管理员方式打开cmd,输入neo4j.bat console,测试是否连接成功 5. http访问neo4j 浏览器输入:http://localhost:7474,默认跳转到 http://localhost:7474/browser 初始用户名和密码都为neo4j,connect后修改密码,即可登录以下页面: 6. neo4j页面介绍 learn about neo4j是neo4j的官方文档 jump into code是neo4j的两个实例:Movie Graph、Northwind Graph Monitor the system: neo4j官方movie实例

图形数据库之Neo4j学习(一)

五迷三道 提交于 2020-01-07 16:27:42
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 最近工作需要使用图形数据库来构建知识图谱,目前基于Java使用最广泛的有两个开源框架 (1) neo4j 社区版 免费 企业版 收费 (2) Titan 全开源 我们此次选择了neo4j的社区版,主要是项目紧,neo4j比较稳定,Titan可能比较新,虽然Titan肯定是未来的主流,我个人是看好Titan的,Neo4j没法存储巨大的一张关系图 ,因为他不支持分片,而Titan是天生分布式的,可以构建在Hbase,Cassandra之上外加+ES或者Solr存储索引,非常强大,再此不在过多 对比两个图形数据库的优缺点,后面有机会再来专门写文章叙述。 什么是图形数据库? 图形数据库(Graph Database)是利用计算机将点、线、画霹图形基本元素按一定数据结同造型存储的数据集合。 最早应该使用在社交场景,比如QQ的几度空间关系图,除了社交应用之外,图数据库同很多应用可以工作。很多应用可以自然扩展使用图形类型的关系。比如,好多内嵌在社交应用中的推荐系统常常都是基于图形的系统。图数据库由一系列结点和边界组成;每一个结点代表了一个实体,每一个边界代表了两个结点之间的一种连接或者关系。 Neo4j的安装 本次方便快速开发测试,安装平台是在Windows上。 下载地址: https://neo4j.com

How to query multiple property values out of order in Cypher

大兔子大兔子 提交于 2020-01-07 08:12:13
问题 I have a list of product names [shirt,shoes,pants,hat,glasses] I'm trying to perform a query that will return the products using regular expression that's case insensitive and in any order as long as the value exists. I'm only able to query them in order MATCH (product:Product) WHERE product.name =~"(?i).*shirt. shoes. " RETURN product How can I query them out of order ie MATCH (product:Product) WHERE product.name=~"(?i).*hat. shirt. "? Thanks 回答1: What exactly do you want to search for with

neo4j-import multiple file import on windows

放肆的年华 提交于 2020-01-07 06:26:06
问题 Does the Windows version of neo4j-import accept multiple file imports? I get this PowerShell error. I tried with/without quotes and with several separators. C:\tmp>neo4j-import.bat --into my.graphdb --nodes "artifacts_header.csv,artifacts1.csv" Invoke-Neo4jImport : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'ArgumentList'. Specified method is not supported. At line:1 char:144 + Import-Module 'C:\Users\wisa\Downloads\neo4j-community-3.0.1-windows\neo4j

Error: Could not find or load main class org.neo4j.shell.StartClient

僤鯓⒐⒋嵵緔 提交于 2020-01-07 05:11:07
问题 Trying to start neo4j-shell having taken "command prompt" option from neo4j Community Edition which starts shell... get following Neo4j Command Prompt This window is configured with Neo4j on the path. Available commands: neo4j-shell neo4j-import bash-3.2$ neo4j-shell Error: Could not find or load main class org.neo4j.shell.StartClient bash-3.2$ 回答1: Sorry that's a packaging issue, please download the zip/tar.gz distribution, that works. 来源: https://stackoverflow.com/questions/33848211/error

Startup Failure for Neo4j on OSX 10.7.5 re: log4j.properties

血红的双手。 提交于 2020-01-06 21:11:25
问题 Can't get any flavour of Neo4j (1.7.2, 1.8.2, 1.9.RC2) running on my MacBook due to issues with not finding "file:conf/log4j.properties" and it looks like even with jakarta-log4j installed from ports am bumping up against not being able to play… is it missing a .jar in the install? Any ideas? I can find other log4j.properties relating to other apps. Already checked questions: Starting neo4j on mac , log4j can't initialize with my log4j.properties Neo4j RC 1.9.2 version(Java 1.7 is actually

How to start the local neo4j server on Windows using PowerShell script?

天大地大妈咪最大 提交于 2020-01-06 19:42:23
问题 I have downloaded the zip folder of neo4j community edition version-2.3.1 in order to start connecting the neo4j server through Java code. I want to create graph database for indexing of the data. Followed this link originally. PROBLEMS I'm unable to start the neo4j server as the batch file is deprecated and it displays the following message: Tried using the PowerShell scripts commands also with reference to this link, it just opens the script file. the server is not started with these