unipop-graph / unipop

Data Integration Graph
Apache License 2.0
203 stars 35 forks source link

A quick start guide #127

Open zhiboz opened 6 years ago

zhiboz commented 6 years ago

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 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.

seanbarzilay commented 6 years ago

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. notifications@github.com 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 .

zhiboz commented 6 years ago

@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?

deepanshu-jain1999 commented 4 years ago

@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

seanbarzilay commented 4 years ago

@deepanshu-jain1999 Hi, if you set

conf.addProperty('providers', '/home/user/mappingsDirectory');

then you should place your mappings jsons in /home/user/mappingsDirectory