unipop
unipop copied to clipboard
A quick start guide
This seems a very promising tool. I tried to follow the Wiki pages but had no success; I was able to install/enable the plugin successfully though.
After we enable the plugin its pretty simple to start using Unipop, you simply open a new graph instance by executing
conf = getConfiguration() // create any Apache configuration you prefer
graph = UniGraph.open(conf) // the configuration should have a providers property pointing to your mapping folder
g = graph.traversal()
and start executing gremlin queries.
but I wasn't able to get conf = getConfiguration()
working
gremlin> conf = getConfiguration()
No signature of method: groovysh_evaluate.getConfiguration() is applicable for argument types: () values: []
I wonder if there is a quick start guide available somewhere, which would be really useful for someone like me to get started on using this great tool.
Actually getConfiguration was a place holder you actually need to create an apache configuration with a providers property. You can simply use: conf = new BaseConfiguration(); conf.addProperty('providers', '/path/to/json/mappings');
On Mon, Apr 23, 2018 at 8:36 PM zhibo z. [email protected] wrote:
This seems a very promising tool. I tried to follow the Wiki pages but had no success; I was able to install/enable the plugin successfully though.
Setup-Gremlin-Console https://github.com/unipop-graph/unipop/wiki/Setup-Gremlin-Console says
After we enable the plugin its pretty simple to start using Unipop, you simply open a new graph instance by executing
conf = getConfiguration() // create any Apache configuration you prefer graph = UniGraph.open(conf) // the configuration should have a providers property pointing to your mapping folder g = graph.traversal()
and start executing gremlin queries.
but I wasn't able to get conf = getConfiguration() working
gremlin> conf = getConfiguration() No signature of method: groovysh_evaluate.getConfiguration() is applicable for argument types: () values: []
I wonder if there is a quick start guide available somewhere, which would be really useful for someone like me to get started on using this great tool.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/unipop-graph/unipop/issues/127, or mute the thread https://github.com/notifications/unsubscribe-auth/AK8elE1kKyIGQRKXVk5eSyGta_ne1WEHks5trhEGgaJpZM4TgUbS .
@seanbarzilay thanks for your quick response, really appreciate it! I should have thought of it. Now I got a different error when running
graph = UniGraph.open(conf)
gremlin> graph = UniGraph.open(conf)
class: org.unipop.jdbc.JdbcSourceProvider not found
gremlin> :show imports
doesn't list org.unipop.jdbc.*
there. does unipop
work with Gremlin 3.3.1 by th way?
@seanbarzilay Please help me to know how/where to add mapping folder and how/where to add schema. There is no detail documentation available for mapping. Please clear my doubt between mapping folder and mapping files
@deepanshu-jain1999 Hi, if you set
conf.addProperty('providers', '/home/user/mappingsDirectory');
then you should place your mappings jsons in /home/user/mappingsDirectory