In Scala, we have libraries that allow you to write SQL and get back immutable collections. For example, [Doobie](https://tpolecat.github.io/doobie/) and [ScalikeJDBC](http://scalikejdbc.org/). Is there anything like that, but for [SPARQL](https://en.wikipedia.org/wiki/SPARQL) or [Apache TinkerPop Gremlin](https://en.wikipedia.org/wiki/Gremlin_(programming_language))? I have a Java/Scala based [Graph Database](https://en.wikipedia.org/wiki/Graph_database) instead of a relational database.