Code Monkey home page Code Monkey logo

Comments (11)

florinpatrascu avatar florinpatrascu commented on July 29, 2024 1

Sips? Hehe. Personally, when I first started this, I never imagined I could end up taking larger gulps from Neo4j, using Elixir; Sips == humble_beginnings, maybe?! :) But then slowly-slowly, I acquired the taste for this combo; Neo4j & Elixir. One can always use alias, when typing Neo4j.Sips is too much. Plus, I suck at naming products in English, named methods, etc.

Janus? Yeah, a very cool library indeed, but I can't stand Gremlin. Neo4j (Cypher) is really what works for me, and for others too, and since Bolt (w/ Elixir, or course) ... unparalleled speed.

from neo4j_sips.

florinpatrascu avatar florinpatrascu commented on July 29, 2024

can you run the tests, locally?

from neo4j_sips.

rawkode avatar rawkode commented on July 29, 2024

After changing https://github.com/florinpatrascu/neo4j_sips/blob/master/config/test.exs#L4
to use port 7474, yeah.

I can login to the web interface with my credentials.

from neo4j_sips.

rawkode avatar rawkode commented on July 29, 2024

My code is

Neo4j.Sips.query(Neo4j.Sips.conn, ~s/CREATE (n:List {name: "#{event.payload[:name]}"})/)

Neo4J version is 3.1

from neo4j_sips.

florinpatrascu avatar florinpatrascu commented on July 29, 2024

is this: No matter how I configure this library, I can't seem to execute any queries still an issue?

from neo4j_sips.

rawkode avatar rawkode commented on July 29, 2024

@florinpatrascu Yes

from neo4j_sips.

florinpatrascu avatar florinpatrascu commented on July 29, 2024

Not sure what is going on there. I just tried successfully the following easy test:

Interactive Elixir (1.4.2) - press Ctrl+C to exit (type h() ENTER for help)

iex(1)>  alias Neo4j.Sips, as: Neo4j
Neo4j.Sips

iex(2)> Neo4j.start_link(url: "http://localhost:7373")
{:ok, #PID<0.210.0>}

iex(3)>  Neo4j.query(Neo4j.conn, "return 1 as n")

12:08:05.562 [debug] POST - http://localhost:7373/db/data/transaction/commit - {"statements":[{"statement":"return 1 as n"}]}
{:ok, [%{"n" => 1}]}

iex(4)> Neo4j.server_version
"3.1.0"

My test Neo4j db is on port 7373, no auth, fwiw. HTH

from neo4j_sips.

florinpatrascu avatar florinpatrascu commented on July 29, 2024

Also:

iex(7)> Neo4j.query(Neo4j.conn, "CREATE (n:List {name: {name}})", %{name: "a_name"})

12:16:07.870 [debug] POST - http://localhost:7373/db/data/transaction/commit - {"statements":[{"statement":"CREATE (n:List {name: {name}})","parameters":{"name":"a_name"}}]}
{:ok, []}

iex(8)> Neo4j.query(Neo4j.conn, "match (n:List {name: 'a_name'}) return n")

12:17:38.523 [debug] POST - http://localhost:7373/db/data/transaction/commit - {"statements":[{"statement":"match (n:List {name: 'a_name'}) return n"}]}

{:ok, [%{"n" => %{"name" => "a_name"}}]}

from neo4j_sips.

rawkode avatar rawkode commented on July 29, 2024

This must be something to-do with my setup. I'll tear it down and back up and we'll close this for now. Thanks for taking the time to help me out!

from neo4j_sips.

florinpatrascu avatar florinpatrascu commented on July 29, 2024

np, please let me know how it goes. I am planning anyway, to update the dependencies for this lib; clean up the code a bit, etc., and I can debug this further, if need be?! If you're planning to use Neo4j for a project, I'd kindly suggest to use bolt_sips. Not sure if the HTTP REST API will be supported for too long, by Neo4j. Bolt is definitely the way to go. HTH

from neo4j_sips.

rawkode avatar rawkode commented on July 29, 2024

Yeah, I'll get Bolt working. Why "Sips" btw? I've seen a few Elixir projects use that suffix, I don't think I know what it means.

Have you ever used Janus graph? I'm torn between that and Neo4j

from neo4j_sips.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.