Questions tagged [libneo4j-client]

libneo4j-client is a client library for Neo4j, written in C, and intended as a foundation on which basic tools and drivers for various languages may be built. libneo4j-client takes care of all the detail of establishing a session with a Neo4j server, sending statements for evaluation, and retrieving results. Use this tag for questions relating to libneo4j-client.

13 questions
2
votes
1 answer

Fetching results from parameterized statement in C++ libneo4j_client

This is a follow up question regarding fetching the data from a parameterized query. Consider the following code: const char *neo4j_query = "MATCH (p:Person) WHERE p.age > {age} RETURN p.name AS name, p.age as AGE"; neo4j_map_entry_t map_entry =…
2
votes
1 answer

Neo4j MERGE creates duplicates in code but not in console

I am using the MATCH and MERGE operation in Neo4j in order to avoid duplicate relationships. My program does the following: whenever two nodes are "close", it creates a relationship from node A to B and vice-versa. I only want one of those…
vicaba
  • 2,836
  • 1
  • 27
  • 45
2
votes
1 answer

Prepared statements in C++ libneo4j_client?

The neo4j_run API allows you to enter a map, but I don't know the syntax of the query. In python, this is a simple {x}. I cannot find an example of the neo4j_map syntax. const char *q = "MATCH (p:Person) WHERE p.age > {age} RETURN p.name AS name,…
Brian Dolan
  • 3,086
  • 2
  • 24
  • 35
1
vote
1 answer

libneo4j-client: Can't connect, can't diagnose

I want to achieve the basic task of connection to a neo4j database using C++. For this, I got libneo4j-client and copied the code from https://neo4j-client.net/. Compilation works fine. Now I executed the following…
Aziuth
  • 3,652
  • 3
  • 18
  • 36
1
vote
2 answers

routines:SSL23_GET_SERVER_HELLO:unknown protocol when trying to connect to neo4j server using proxy

I have neo4j-server installed on remote linux server. This server using nginx and has virtual host. Here is config: server { listen 80; listen [::]:80; server_name neo.mydomain.in.ua; access_log…
1
vote
1 answer

Iterate over results in neo4j_client for C++

I am looking for examples on usage for neo4j_client in C++. In the test suite I see the neo4j_result_t, but no example of iterating or calling fields by name. Is that possible?
Brian Dolan
  • 3,086
  • 2
  • 24
  • 35
1
vote
1 answer

libneo4j-client cannot close and reopen new session ?

1/ what does a session means for neo4j compared to the connection and particularly for the libneo4j-client C/C++ driver ? 2/ I have modified the c code example in https://cleishm.github.io/libneo4j-client/ to close the session and restart a new one…
1
vote
0 answers

Building neo4j-client for the Windows platform

I want to build the neo4j-client (C source code) on the Windows platform. The github project by Chris Leishman has some good documentation on it, but it appears to be Linux/UNIX only. I am curious to know if anyone has built this library on…
John Leveille
  • 334
  • 1
  • 4
0
votes
0 answers

Makefile error while making clean check and install libneo4j-client library

Update: It was my fault, since I do not have the library libcypher-parser installed I should have run ./configure --disable-tools. It works perfectly now :-) It may be a silly issue, but I have a problem while completing the installation of the C…
Gemma
  • 1
  • 3
0
votes
1 answer

Deleting nodes via neo4j_client library doesn't work

I am working on an Ubuntu application, which shall create and delete nodes depending on the local file system content. I am initializing the connection using _pSession = neo4j_connect(oss.str().c_str(), NULL, NEO4J_INSECURE); running the…
0
votes
1 answer

C# Neo4J Query not Returning Node Properties

I have the following code to query a Neo4J graph. However, even though all nodes are being returned, their properties are being set to null in the internal classes. // Method to retrieve the passed functional family from the graph database public…
Ryan Falzon
  • 329
  • 4
  • 15
0
votes
1 answer

neo4j-client in C, raw type encoding in a statement (i.e. int)

How can I send a statement with an integer type in neo4j-client? Fore example, in CREATE (n:Node {id:1}) the value of the field id is 1. Also, how can I retrieve it? I have tried, assuming: std::stringstream ss; neo4j_run(connection, …
vicaba
  • 2,836
  • 1
  • 27
  • 45
0
votes
1 answer

Failed to fetch cleishm/neo4j/ubuntu/dists/trusty/main/binary-amd64/Packages

I am using Win10 Linux substyem which is Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty Then I tried to follow the libneo4j-client-dev installation guide for ubuntu $ sudo add-apt-repository ppa:cleishm/neo4j $…
刘宇翔
  • 527
  • 8
  • 17