Re: [DISCUSS] gremlin-examples

2016-02-24 Thread Stephen Mallette
The gremlin-archetype stuff has been merged to tp31 and master. Thanks for all the collaboration on this one - I think we have something good here to build on. On Wed, Feb 24, 2016 at 12:05 PM, Stephen Mallette wrote: > I don't see why not. Did you try to generate a project with the > archetyp

Re: [DISCUSS] gremlin-examples

2016-02-24 Thread Stephen Mallette
I don't see why not. Did you try to generate a project with the archetype? I think that you should see what it creates and make sure that it meets your needs. I assume that when you talk about adding asciidoc documentation for each, you aren't looking for too much more than a README.asciidoc like

Re: [DISCUSS] gremlin-examples

2016-02-24 Thread Marko Rodriguez
Hi Stephen, I will want to do a Gremlin DSL "example project" where we show: 1. SocialTraversal --- social.person("marko").knows().person().who().created().project().named("ripple"). 2. RegEx Gremlin -- A compiler from RegEx syntax to Gremlin. 3. Respective Asciidoc docum

Re: [DISCUSS] gremlin-examples

2016-02-23 Thread Stephen Mallette
I just formed up a pull request to use maven archetypes as "gremlin-examples": https://github.com/apache/incubator-tinkerpop/pull/237 The archetypes weren't hard to setup once I learned a trick or two - didn't take very long at all to establish this pattern. I'm glad this approach was suggested

Re: [DISCUSS] gremlin-examples

2016-01-14 Thread Stephen Mallette
It sounds like this idea is generally "liked" - as such, I've created an issue in JIRA to track it: https://issues.apache.org/jira/browse/TINKERPOP-1085 Perhaps we make it part of 3.1.2. On Wed, Jan 13, 2016 at 11:41 AM, pieter-gmail wrote: > To add some more, > > The blank archetypes for so

Re: [DISCUSS] gremlin-examples

2016-01-13 Thread pieter-gmail
To add some more, The blank archetypes for some TinkerPop environment can include sample junit test cases. This will show the user TinkerPop's suggestion as to how to write proper test cases for the environment. For Neo4j the @Before can include starting the graph and the @After closing it and po

Re: [DISCUSS] gremlin-examples

2016-01-13 Thread pieter-gmail
Yes both, the examples themselves could have an archetype that creates the stub example project for users to play with. The example archetypes could include the sample dataset, sample gremlin queries... Further there could be blank archetypes for all the different environments that TinkerPop nativ

Re: [DISCUSS] gremlin-examples

2016-01-13 Thread Stephen Mallette
We might opt to publish DSL examples artifacts so that you could :install them right to the Gremlin Console. That might also go well for a "developing a plugin" example. On Wed, Jan 13, 2016 at 9:55 AM, Marko Rodriguez wrote: > Hi, > > I was thinking about this more the other day. For the things

Re: [DISCUSS] gremlin-examples

2016-01-13 Thread Marko Rodriguez
Hi, I was thinking about this more the other day. For the things I care about, I think it would be good to have a gremlin-examples/ module that contained: 1. DSL examples -- SocialTraversal/etc. 2. Language compiler -- Java RegEx into Gremlin instructions (e.g.). 3. Build

Re: [DISCUSS] gremlin-examples

2016-01-13 Thread Stephen Mallette
Jason/Pieter, are you guys saying that you would prefer the publishing of an archtype over having gremlin-examples code? or are you saying you would have both? also, i spent a very short period of time looking at how to publish archtypes and didn't get the answers i wanted in that time - do either

Re: [DISCUSS] gremlin-examples

2016-01-10 Thread Jason Plurad
+1 I like the Maven archetype idea to encourage folks to build their own projects. Great suggestion, Pieter. On Sun, Jan 10, 2016 at 2:03 AM pieter-gmail wrote: > I have not looked at Jason's project but publishing some maven > archetypes will be useful. Especially for the more complex setups wit

Re: [DISCUSS] gremlin-examples

2016-01-09 Thread pieter-gmail
I have not looked at Jason's project but publishing some maven archetypes will be useful. Especially for the more complex setups with Hadoop, Spark, Neo4j etc. Cheers Pieter On 09/01/2016 21:07, Stephen Mallette wrote: > I was thinking that it might be cool to add a gremlin-examples sub-module >

Re: [DISCUSS] gremlin-examples

2016-01-09 Thread Marko Rodriguez
Hi, I am indifferent. Initially I would think this would be best by others maintaing such work outside of the main Apache repo… Marko. http://markorodriguez.com On Jan 9, 2016, at 12:07 PM, Stephen Mallette wrote: > I was thinking that it might be cool to add a gremlin-examples sub-module >

[DISCUSS] gremlin-examples

2016-01-09 Thread Stephen Mallette
I was thinking that it might be cool to add a gremlin-examples sub-module that contained other sub-modules inside of that. Jason's "example project" gets a lot of references and that's awesome but I'm starting to think we should fold it into the core repository (if he wants to do that, of course,