mpollmeier / gremlin-scala

[unmaintained] Scala wrapper for Apache TinkerPop 3 Graph DSL
Apache License 2.0
482 stars 75 forks source link

how to set up tinkerpop for scala #282

Open davidzxc574 opened 5 years ago

davidzxc574 commented 5 years ago

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

mpollmeier commented 5 years ago

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.