cancel
Showing results for 
Search instead for 
Did you mean: 

Running Neosemantics in Node.js

rtveritas
Node Link

Hi,
Is it possible to make n10s calls in Node.js?
Something along the lines of
session.run(call n10s.rdf.import.fetch( ... ) );

       thanks
          Richard Tresider
2 REPLIES 2

Hi @rtveritas ,
Absolutely 🙂
CALL is standard cypher syntax so you can use CALL n10s.*with all drivers.
Here's an example in python (older version of the plugin, but the idea is the same). You can use it with the javascript driver pretty much in the same way.
Also, note that when used like that, you may want to consider also the .inline flavour instead of the .fetch depending on how are you passing the RDF. There are examples of that in the repo.

Hope this helps.

JB

Hi Jesus,
Thank you for the prompt response. That was exactly what I was looking for.
Node.js, neosemantics and Neo4j all now working happily together.

thanks

Richard Tresider