Re: [TinkerPop] A 2D Gremlin Language Variant

2016-11-09 Thread Marko Rodriguez
Hi,

I was thinking about your tensor notation desire.

[created]x[knows]^ 

is equivalent to:

V().out(‘created’).in(‘knows’)

In general, we could do stuff like in this article:

https://arxiv.org/abs/0806.2274 

We just map all the presented algebraic operations over to a syntax that can 
then be compiled to Gremlin bytecode.

Marko.

http://markorodriguez.com



> On Nov 9, 2016, at 6:52 PM, Marko Rodriguez  wrote:
> 
> Hi,
> 
> Check it out:
> 
>   https://gist.github.com/okram/c9e7dc6e51fcf067b9d77c6c4ea094da 
> 
> 
> The code is pretty dead simple:
> 
>   
> https://github.com/apache/tinkerpop/blob/9b15e90a651383bc7ab0c014f1492bbf70bc3848/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/g2/g2Parser.java
>  
> 
> 
> Right now I’m manually testing using text files on my Desktop. However, you 
> can see how easy it is to interact with the parser.
> 
>   
> https://github.com/apache/tinkerpop/blob/9b15e90a651383bc7ab0c014f1492bbf70bc3848/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/g2/g2ParserTest.java
>  
> 
> 
> Marko.
> 
> http://markorodriguez.com 
> 
> 
> 
>> On Oct 20, 2016, at 8:19 AM, HadoopMarc > > wrote:
>> 
>> Hi Marko,
>> 
>> APL was especially cool for punchcards or VT100 terminals ...
>> 
>> I'm always in for more efficient notations for graph analytics. Maybe tensor 
>> notation can also provide some inspiration for 2D operations:
>> 
>> https://en.wikipedia.org/wiki/Tensor 
>> 
>> Cheers, Marc
>> 
>> Op donderdag 20 oktober 2016 01:08:18 UTC+2 schreef Robert Dale:
>> Reminds me of brainfuck.
>> 
>> On Wed, Oct 19, 2016 at 10:04 AM, Marko Rodriguez > > wrote:
>> Hello,
>> 
>> Last night I was cruisin’ around Wikipedia and was checking out various 
>> programming languages. One in particular caught my eye — APL.
>> 
>>  https://en.wikipedia.org/wiki/APL_(programming_language)#Game_of_Life 
>> 
>> 
>> I thought it would be neat to have different type of syntax to express 
>> Gremlin traversals and came up with the following "2D pipes” language.
>> 
>>  https://gist.github.com/okram/cfb526bf01c36c1e4001de6b3dc0f60c 
>> 
>> 
>> Basically, there are “piping” symbols that dictate traverser flow:
>>  - ^ / \ 
>> These pipes link the steps, where commonly used steps have a short-hand 
>> syntax.
>> 
>> The translator to go from this to Gremlin bytecode seems pretty simple. The 
>> internal data structure for the language is:
>> 
>>  List
>> 
>> This give you the 2D matrix. You then can go “up and down” the lists and 
>> “left and right” along the tokens, where the - ^ \ / pipes tell you how to 
>> move about the List structure.
>> 
>> Does anyone think this is cool?
>> 
>> Marko.
>> 
>> http://markorodriguez.com 
>> 
>> 
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Gremlin-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to gremlin-user...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/gremlin-users/B347B223-FD64-4F5C-9E65-7F50CF72BF38%40gmail.com
>>  
>> .
>> For more options, visit https://groups.google.com/d/optout 
>> .
>> 
>> 
>> 
>> -- 
>> Robert Dale
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Gremlin-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to gremlin-users+unsubscr...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/gremlin-users/c1ce8a2b-b219-4eba-a8f6-ee62cdd12296%40googlegroups.com
>>  
>> .
>> For more options, visit https://groups.google.com/d/optout 
>> .
> 



Re: [TinkerPop] A 2D Gremlin Language Variant

2016-11-09 Thread Marko Rodriguez
Hi,

Check it out:

https://gist.github.com/okram/c9e7dc6e51fcf067b9d77c6c4ea094da 


The code is pretty dead simple:


https://github.com/apache/tinkerpop/blob/9b15e90a651383bc7ab0c014f1492bbf70bc3848/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/g2/g2Parser.java
 


Right now I’m manually testing using text files on my Desktop. However, you can 
see how easy it is to interact with the parser.


https://github.com/apache/tinkerpop/blob/9b15e90a651383bc7ab0c014f1492bbf70bc3848/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/g2/g2ParserTest.java
 


Marko.

http://markorodriguez.com



> On Oct 20, 2016, at 8:19 AM, HadoopMarc  wrote:
> 
> Hi Marko,
> 
> APL was especially cool for punchcards or VT100 terminals ...
> 
> I'm always in for more efficient notations for graph analytics. Maybe tensor 
> notation can also provide some inspiration for 2D operations:
> 
> https://en.wikipedia.org/wiki/Tensor 
> 
> Cheers, Marc
> 
> Op donderdag 20 oktober 2016 01:08:18 UTC+2 schreef Robert Dale:
> Reminds me of brainfuck.
> 
> On Wed, Oct 19, 2016 at 10:04 AM, Marko Rodriguez  > wrote:
> Hello,
> 
> Last night I was cruisin’ around Wikipedia and was checking out various 
> programming languages. One in particular caught my eye — APL.
> 
>   https://en.wikipedia.org/wiki/APL_(programming_language)#Game_of_Life 
> 
> 
> I thought it would be neat to have different type of syntax to express 
> Gremlin traversals and came up with the following "2D pipes” language.
> 
>   https://gist.github.com/okram/cfb526bf01c36c1e4001de6b3dc0f60c 
> 
> 
> Basically, there are “piping” symbols that dictate traverser flow:
>   - ^ / \ 
> These pipes link the steps, where commonly used steps have a short-hand 
> syntax.
> 
> The translator to go from this to Gremlin bytecode seems pretty simple. The 
> internal data structure for the language is:
> 
>   List
> 
> This give you the 2D matrix. You then can go “up and down” the lists and 
> “left and right” along the tokens, where the - ^ \ / pipes tell you how to 
> move about the List structure.
> 
> Does anyone think this is cool?
> 
> Marko.
> 
> http://markorodriguez.com 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Gremlin-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to gremlin-user...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/gremlin-users/B347B223-FD64-4F5C-9E65-7F50CF72BF38%40gmail.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .
> 
> 
> 
> -- 
> Robert Dale
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Gremlin-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to gremlin-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/gremlin-users/c1ce8a2b-b219-4eba-a8f6-ee62cdd12296%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .



[GitHub] tinkerpop issue #457: TINKERPOP-1493 Groovy project doesn't build on Windows

2016-11-09 Thread dkuppitz
Github user dkuppitz commented on the issue:

https://github.com/apache/tinkerpop/pull/457
  
All good here, `docker/build.sh -t -i -n` succeeded 2 times in a row for me.

VOTE: +1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (TINKERPOP-1547) Two bugs found associated with MatchStep: Path retraction and range count.

2016-11-09 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/TINKERPOP-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15652143#comment-15652143
 ] 

ASF GitHub Bot commented on TINKERPOP-1547:
---

Github user twilmes commented on the issue:

https://github.com/apache/tinkerpop/pull/483
  
Been having problems with traversal interrupted tests failing across many 
branches but I ran other tests including neo4j and everything passed.  Checked 
out match retraction updates and they look good.

VOTE: +1


> Two bugs found associated with MatchStep: Path retraction and range count.
> --
>
> Key: TINKERPOP-1547
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1547
> Project: TinkerPop
>  Issue Type: Bug
>  Components: process
>Affects Versions: 3.2.3
>Reporter: Marko A. Rodriguez
>Assignee: Marko A. Rodriguez
> Fix For: 3.2.4
>
>
> {{PathRetractionStrategy}} can retract end labels from traversals and thus, 
> ruin a pattern match. We had 3 traversals in our test suite that were buggy 
> because of this. Finally, if the user does a pattern of 
> {{as("a").count().is(gt(10)).as("b")}}, this will fail because of 
> {{RangeIsCountByStrategy}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] tinkerpop issue #483: TINKERPOP-1547: Two bugs found associated with MatchSt...

2016-11-09 Thread twilmes
Github user twilmes commented on the issue:

https://github.com/apache/tinkerpop/pull/483
  
Been having problems with traversal interrupted tests failing across many 
branches but I ran other tests including neo4j and everything passed.  Checked 
out match retraction updates and they look good.

VOTE: +1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] tinkerpop issue #457: TINKERPOP-1493 Groovy project doesn't build on Windows

2016-11-09 Thread spmallette
Github user spmallette commented on the issue:

https://github.com/apache/tinkerpop/pull/457
  
I remember that we talked about that, but I thought we'd said this version 
was ok

```text
$ docker --version
Docker version 1.12.3, build 6b644ec
```

no?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (TINKERPOP-1493) Groovy project doesn't build on Windows

2016-11-09 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/TINKERPOP-1493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15651031#comment-15651031
 ] 

ASF GitHub Bot commented on TINKERPOP-1493:
---

Github user pluradj commented on the issue:

https://github.com/apache/tinkerpop/pull/457
  
I retested again overnight after rebasing the PR on `tp31` and still having 
success with Docker build on Ubuntu and Mac. Looking at the code changes, I 
don't see how they would cause that Spark failure.


> Groovy project doesn't build on Windows
> ---
>
> Key: TINKERPOP-1493
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1493
> Project: TinkerPop
>  Issue Type: Bug
>  Components: groovy
>Affects Versions: 3.2.2
>Reporter: Paul Jackson
>Assignee: Jason Plurad
>Priority: Minor
>
> Builds on Windows fail for two reasons. First the line to create extTestDir 
> is creating a path consisting of two full paths concatenated together. The 
> second drive letter is seen as an illegal character:
> {code}private static final File extTestDir = new 
> File(System.getProperty("user.dir"), 
> TestHelper.makeTestDataDirectory(DependencyGrabberTest.class));{code}
> Second, when it comes time to delete the directory it is locked. This is 
> because some instances of JarFile are created on it but not closed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] tinkerpop issue #457: TINKERPOP-1493 Groovy project doesn't build on Windows

2016-11-09 Thread pluradj
Github user pluradj commented on the issue:

https://github.com/apache/tinkerpop/pull/457
  
I retested again overnight after rebasing the PR on `tp31` and still having 
success with Docker build on Ubuntu and Mac. Looking at the code changes, I 
don't see how they would cause that Spark failure.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---