gremlin-scala icon indicating copy to clipboard operation
gremlin-scala copied to clipboard

how to set up tinkerpop for scala

Open davidzxc574 opened this issue 6 years ago • 1 comments

Hi,

I have neo4j-community-3.5.5, scala 2.11.8 and Idea 2018.3.4 community version and would like to set up gremlin for me to access Neo4j database in Scala

I have this library dependency in build.sbt

libraryDependencies += "com.michaelpollmeier" %% "gremlin-scala" % "3.4.1.4"

and in my scala console I have

import gremlin.scala._
import org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerFactory

But scala does not recognize tinkergraph. What I am missing and is there a link describing how to set it up?

Thanks

davidzxc574 avatar Jun 10 '19 09:06 davidzxc574

Tinkergraph is the reference in-memory graph database, it sounds like you want to use neo4j and not tinkergraph? Have a look at the https://github.com/mpollmeier/gremlin-scala-examples repo (which is linked from the readme) for working setups with both.

mpollmeier avatar Jun 11 '19 21:06 mpollmeier