Hi, You can use following approach https://github.com/orientechnologies/orientdb/wiki/Gremlin#passing-input-parametersso just wrap your select query in "gremlin" operator:"select gremlin('....query is here.... ')"
On Thu, Jan 2, 2014 at 6:53 PM, Will Pullan <[email protected]> wrote: > I am very new to orientdb but the technology looks very interesting. I > downloaded version 1.6.3 of the community edition, and using a REST client > I am able to perform SQL queries. > > http://localhost:2480/query/GratefulDeadConcerts/sql/select%20*%20from%20V > > I would like to also be able to use gremlin queries, but the syntax does > not seem to be recognized and the error message I get includes a mention of > sql which makes me think perhaps I am running the wrong edition, > > http://localhost:2480/query/GratefulDeadConcerts/gremlin/g = new foo() > { > "readyState": 4, > "responseText": > "com.orientechnologies.orient.core.command.OCommandExecutorNotFoundException: > Cannot find a command executor for the command request: sql.g = new foo()", > "status": 500, > "statusText": "Internal Server Error" > } > > > > Can anyone give me an example REST query against the grateful dead > database which should work. > > > Also is there a difference between orientdb standard and the graph > edition, if so how can I make server.sh launch the graph edition instead of > the document edition. > > It seems like the graph edition is an extension of the document edition > which can do more, are there reasons why I should not always use it, does > it have performance implications. > > Sorry if these questions are already answered in the documentation, if so > please point me to it. > > Thanks in advance > > Will Pullan. > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Best regards, Andrey Lomakin. Orient Technologies the Company behind OrientDB -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
