orientechnologies / orientdb-gremlin

TinkerPop3 Graph Structure Implementation for OrientDB
Apache License 2.0
91 stars 32 forks source link

Import into Gremlin console #123

Open christinedraper opened 7 years ago

christinedraper commented 7 years ago

I'm just getting started with tinkerpop and orientdb. I've been trying to install this plugin using:

:install com.michaelpollmeier orientdb-gremlin 3.2.3.0

in the latest console (3.2.4) and getting dependency conflicts, so I'm guessing I need to downgrade to gremlin 3.2.3?

christinedraper commented 7 years ago

I am able to :install into 3.2.3, but it doesnt appear as a plugin (because it doesnt implement the Plugin interface). I did:

:import org.apache.tinkerpop.gremlin.orientdb.OrientGraphFactory

and I seem to be able to use it within the console, e.g.:

g = new OrientGraphFactory("remote:localhost/votes").getNoTx().traversal() 
g.V()

So happy if you want to close this, but leaving open as it would be nice if it supported being a console plugin.

mpollmeier commented 7 years ago

glad you got it sorted yourself. the main action in this repo seems to be in the develop branch, but there's not actually a lot going on at the moment. Supporting 3.2.4 should be straightforward (I think), someone just needs to release it. (I started this repo and then handed it over to orienttechnologies)

wolf4ood commented 7 years ago

Hi @christinedraper

The plugin interface has been implemented in develop,and it target OrientDB 3.0 see here

https://github.com/orientechnologies/orientdb-gremlin/tree/develop/driver/src/main/java/org/apache/tinkerpop/gremlin/orientdb/plugin

This repo has been aligned with the current development/release cycle of OrientDB. Our plan is to make a OrientDB TP3 distribution with OrientDB community + Gremlin Console + Gremlin Server + Gremlin Driver.

There is no release yet available but the 3.0-m1 should be out soon.

Once out you can download the OrientDB TP3 distribution or install the Gremlin Driver in your Gremlin Console/ Server

christinedraper commented 7 years ago

@maggiolo00 will the 3.0 release be compatible with OrientDB 2.2 server?

wolf4ood commented 7 years ago

@christinedraper Do you mean the OrientDB TP3 driver 3.0 with OrientDB 2.2 server?

christinedraper commented 7 years ago

@maggiolo00 - Yes

wolf4ood commented 7 years ago

@christinedraper

OrientDB TP3 3.0 driver uses OrientDB 3.0 libraries as dependency. I don't think in this case will work due some changes on the wire protocol.

If you need those changes on the current driver i can backport the plugin stuff and update the dependency to 3.2.4

christinedraper commented 7 years ago

@maggiolo00 That would be very useful, thanks! Would you be able to publish it to Maven, too?

wolf4ood commented 7 years ago

hi @christinedraper

i guess we can publish it to Maven, but we still have to publish it under the com.michaelpollmeier group id since in branch develop we switch to the new group id com.orientechnologies and the versioning will be aligned with OrientDB one

I will try to switch to 3.2.4.

@mpollmeier will you release once updated to 3.2.4 or can we release under com.michaelpollmeier ?

Thanks

mpollmeier commented 7 years ago

Sure, I can release it, just let me know.

wolf4ood commented 7 years ago

Ok Thanks