http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/standardresult-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/standardresult-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/standardresult-v2d0-partial.json new file mode 100644 index 0000000..857c6db --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/standardresult-v2d0-partial.json @@ -0,0 +1,111 @@ +{ + "requestId" : "41d2e28a-20a4-4ab0-b379-d810dede3786", + "status" : { + "message" : "", + "code" : 200, + "attributes" : { } + }, + "result" : { + "data" : [ { + "@type" : "g:Vertex", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 1 + }, + "label" : "person", + "properties" : { + "name" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 0 + }, + "value" : "marko", + "label" : "name" + } + } ], + "location" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 6 + }, + "value" : "san diego", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 1997 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2001 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 7 + }, + "value" : "santa cruz", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2001 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2004 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 8 + }, + "value" : "brussels", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2004 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2005 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 9 + }, + "value" : "santa fe", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2005 + } + } + } + } ] + } + } + } ], + "meta" : { } + } +} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/stargraph-v1d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/stargraph-v1d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/stargraph-v1d0.json new file mode 100644 index 0000000..4fc3915 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/stargraph-v1d0.json @@ -0,0 +1,66 @@ +{ + "id" : 1, + "label" : "person", + "outE" : { + "uses" : [ { + "id" : 16, + "inV" : 11, + "properties" : { + "skill" : 5 + } + }, { + "id" : 15, + "inV" : 10, + "properties" : { + "skill" : 4 + } + } ], + "develops" : [ { + "id" : 13, + "inV" : 10, + "properties" : { + "since" : 2009 + } + }, { + "id" : 14, + "inV" : 11, + "properties" : { + "since" : 2010 + } + } ] + }, + "properties" : { + "name" : [ { + "id" : 0, + "value" : "marko" + } ], + "location" : [ { + "id" : 6, + "value" : "san diego", + "properties" : { + "startTime" : 1997, + "endTime" : 2001 + } + }, { + "id" : 7, + "value" : "santa cruz", + "properties" : { + "startTime" : 2001, + "endTime" : 2004 + } + }, { + "id" : 8, + "value" : "brussels", + "properties" : { + "startTime" : 2004, + "endTime" : 2005 + } + }, { + "id" : 9, + "value" : "santa fe", + "properties" : { + "startTime" : 2005 + } + } ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/stargraph-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/stargraph-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/stargraph-v2d0-no-types.json new file mode 100644 index 0000000..4fc3915 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/stargraph-v2d0-no-types.json @@ -0,0 +1,66 @@ +{ + "id" : 1, + "label" : "person", + "outE" : { + "uses" : [ { + "id" : 16, + "inV" : 11, + "properties" : { + "skill" : 5 + } + }, { + "id" : 15, + "inV" : 10, + "properties" : { + "skill" : 4 + } + } ], + "develops" : [ { + "id" : 13, + "inV" : 10, + "properties" : { + "since" : 2009 + } + }, { + "id" : 14, + "inV" : 11, + "properties" : { + "since" : 2010 + } + } ] + }, + "properties" : { + "name" : [ { + "id" : 0, + "value" : "marko" + } ], + "location" : [ { + "id" : 6, + "value" : "san diego", + "properties" : { + "startTime" : 1997, + "endTime" : 2001 + } + }, { + "id" : 7, + "value" : "santa cruz", + "properties" : { + "startTime" : 2001, + "endTime" : 2004 + } + }, { + "id" : 8, + "value" : "brussels", + "properties" : { + "startTime" : 2004, + "endTime" : 2005 + } + }, { + "id" : 9, + "value" : "santa fe", + "properties" : { + "startTime" : 2005 + } + } ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/stargraph-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/stargraph-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/stargraph-v2d0-partial.json new file mode 100644 index 0000000..66b2e1b --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/stargraph-v2d0-partial.json @@ -0,0 +1,141 @@ +{ + "id" : { + "@type" : "g:Int32", + "@value" : 1 + }, + "label" : "person", + "outE" : { + "uses" : [ { + "id" : { + "@type" : "g:Int32", + "@value" : 16 + }, + "inV" : { + "@type" : "g:Int32", + "@value" : 11 + }, + "properties" : { + "skill" : { + "@type" : "g:Int32", + "@value" : 5 + } + } + }, { + "id" : { + "@type" : "g:Int32", + "@value" : 15 + }, + "inV" : { + "@type" : "g:Int32", + "@value" : 10 + }, + "properties" : { + "skill" : { + "@type" : "g:Int32", + "@value" : 4 + } + } + } ], + "develops" : [ { + "id" : { + "@type" : "g:Int32", + "@value" : 13 + }, + "inV" : { + "@type" : "g:Int32", + "@value" : 10 + }, + "properties" : { + "since" : { + "@type" : "g:Int32", + "@value" : 2009 + } + } + }, { + "id" : { + "@type" : "g:Int32", + "@value" : 14 + }, + "inV" : { + "@type" : "g:Int32", + "@value" : 11 + }, + "properties" : { + "since" : { + "@type" : "g:Int32", + "@value" : 2010 + } + } + } ] + }, + "properties" : { + "name" : [ { + "id" : { + "@type" : "g:Int64", + "@value" : 0 + }, + "value" : "marko" + } ], + "location" : [ { + "id" : { + "@type" : "g:Int64", + "@value" : 6 + }, + "value" : "san diego", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 1997 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2001 + } + } + }, { + "id" : { + "@type" : "g:Int64", + "@value" : 7 + }, + "value" : "santa cruz", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2001 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2004 + } + } + }, { + "id" : { + "@type" : "g:Int64", + "@value" : 8 + }, + "value" : "brussels", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2004 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2005 + } + } + }, { + "id" : { + "@type" : "g:Int64", + "@value" : 9 + }, + "value" : "santa fe", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2005 + } + } + } ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/t-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/t-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/t-v2d0-no-types.json new file mode 100644 index 0000000..bad8612 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/t-v2d0-no-types.json @@ -0,0 +1 @@ +"label" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/t-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/t-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/t-v2d0-partial.json new file mode 100644 index 0000000..9693983 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/t-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:T", + "@value" : "label" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/timestamp-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/timestamp-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/timestamp-v2d0-no-types.json new file mode 100644 index 0000000..03b71a0 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/timestamp-v2d0-no-types.json @@ -0,0 +1 @@ +1481750076295 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/timestamp-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/timestamp-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/timestamp-v2d0-partial.json new file mode 100644 index 0000000..1ca0e17 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/timestamp-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Timestamp", + "@value" : 1481750076295 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tinkergraph-v1d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tinkergraph-v1d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tinkergraph-v1d0.json new file mode 100644 index 0000000..13719f6 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tinkergraph-v1d0.json @@ -0,0 +1,313 @@ +{ + "vertices" : [ { + "id" : 1, + "label" : "person", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 0, + "value" : "marko" + } ], + "location" : [ { + "id" : 6, + "value" : "san diego", + "properties" : { + "startTime" : 1997, + "endTime" : 2001 + } + }, { + "id" : 7, + "value" : "santa cruz", + "properties" : { + "startTime" : 2001, + "endTime" : 2004 + } + }, { + "id" : 8, + "value" : "brussels", + "properties" : { + "startTime" : 2004, + "endTime" : 2005 + } + }, { + "id" : 9, + "value" : "santa fe", + "properties" : { + "startTime" : 2005 + } + } ] + } + }, { + "id" : 7, + "label" : "person", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 1, + "value" : "stephen" + } ], + "location" : [ { + "id" : 10, + "value" : "centreville", + "properties" : { + "startTime" : 1990, + "endTime" : 2000 + } + }, { + "id" : 11, + "value" : "dulles", + "properties" : { + "startTime" : 2000, + "endTime" : 2006 + } + }, { + "id" : 12, + "value" : "purcellville", + "properties" : { + "startTime" : 2006 + } + } ] + } + }, { + "id" : 8, + "label" : "person", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 2, + "value" : "matthias" + } ], + "location" : [ { + "id" : 13, + "value" : "bremen", + "properties" : { + "startTime" : 2004, + "endTime" : 2007 + } + }, { + "id" : 14, + "value" : "baltimore", + "properties" : { + "startTime" : 2007, + "endTime" : 2011 + } + }, { + "id" : 15, + "value" : "oakland", + "properties" : { + "startTime" : 2011, + "endTime" : 2014 + } + }, { + "id" : 16, + "value" : "seattle", + "properties" : { + "startTime" : 2014 + } + } ] + } + }, { + "id" : 9, + "label" : "person", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 3, + "value" : "daniel" + } ], + "location" : [ { + "id" : 17, + "value" : "spremberg", + "properties" : { + "startTime" : 1982, + "endTime" : 2005 + } + }, { + "id" : 18, + "value" : "kaiserslautern", + "properties" : { + "startTime" : 2005, + "endTime" : 2009 + } + }, { + "id" : 19, + "value" : "aachen", + "properties" : { + "startTime" : 2009 + } + } ] + } + }, { + "id" : 10, + "label" : "software", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 4, + "value" : "gremlin" + } ] + } + }, { + "id" : 11, + "label" : "software", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 5, + "value" : "tinkergraph" + } ] + } + } ], + "edges" : [ { + "id" : 13, + "label" : "develops", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 1, + "properties" : { + "since" : 2009 + } + }, { + "id" : 14, + "label" : "develops", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 11, + "outV" : 1, + "properties" : { + "since" : 2010 + } + }, { + "id" : 15, + "label" : "uses", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 1, + "properties" : { + "skill" : 4 + } + }, { + "id" : 16, + "label" : "uses", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 11, + "outV" : 1, + "properties" : { + "skill" : 5 + } + }, { + "id" : 17, + "label" : "develops", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 7, + "properties" : { + "since" : 2010 + } + }, { + "id" : 18, + "label" : "develops", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 11, + "outV" : 7, + "properties" : { + "since" : 2011 + } + }, { + "id" : 19, + "label" : "uses", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 7, + "properties" : { + "skill" : 5 + } + }, { + "id" : 20, + "label" : "uses", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 11, + "outV" : 7, + "properties" : { + "skill" : 4 + } + }, { + "id" : 21, + "label" : "develops", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 8, + "properties" : { + "since" : 2012 + } + }, { + "id" : 22, + "label" : "uses", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 8, + "properties" : { + "skill" : 3 + } + }, { + "id" : 23, + "label" : "uses", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 11, + "outV" : 8, + "properties" : { + "skill" : 3 + } + }, { + "id" : 24, + "label" : "uses", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 9, + "properties" : { + "skill" : 5 + } + }, { + "id" : 25, + "label" : "uses", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 11, + "outV" : 9, + "properties" : { + "skill" : 3 + } + }, { + "id" : 26, + "label" : "traverses", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "software", + "inV" : 11, + "outV" : 10 + } ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tinkergraph-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tinkergraph-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tinkergraph-v2d0-no-types.json new file mode 100644 index 0000000..94ad061 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tinkergraph-v2d0-no-types.json @@ -0,0 +1,352 @@ +{ + "vertices" : [ { + "id" : 1, + "label" : "person", + "properties" : { + "name" : [ { + "id" : 0, + "value" : "marko", + "label" : "name" + } ], + "location" : [ { + "id" : 6, + "value" : "san diego", + "label" : "location", + "properties" : { + "startTime" : 1997, + "endTime" : 2001 + } + }, { + "id" : 7, + "value" : "santa cruz", + "label" : "location", + "properties" : { + "startTime" : 2001, + "endTime" : 2004 + } + }, { + "id" : 8, + "value" : "brussels", + "label" : "location", + "properties" : { + "startTime" : 2004, + "endTime" : 2005 + } + }, { + "id" : 9, + "value" : "santa fe", + "label" : "location", + "properties" : { + "startTime" : 2005 + } + } ] + } + }, { + "id" : 7, + "label" : "person", + "properties" : { + "name" : [ { + "id" : 1, + "value" : "stephen", + "label" : "name" + } ], + "location" : [ { + "id" : 10, + "value" : "centreville", + "label" : "location", + "properties" : { + "startTime" : 1990, + "endTime" : 2000 + } + }, { + "id" : 11, + "value" : "dulles", + "label" : "location", + "properties" : { + "startTime" : 2000, + "endTime" : 2006 + } + }, { + "id" : 12, + "value" : "purcellville", + "label" : "location", + "properties" : { + "startTime" : 2006 + } + } ] + } + }, { + "id" : 8, + "label" : "person", + "properties" : { + "name" : [ { + "id" : 2, + "value" : "matthias", + "label" : "name" + } ], + "location" : [ { + "id" : 13, + "value" : "bremen", + "label" : "location", + "properties" : { + "startTime" : 2004, + "endTime" : 2007 + } + }, { + "id" : 14, + "value" : "baltimore", + "label" : "location", + "properties" : { + "startTime" : 2007, + "endTime" : 2011 + } + }, { + "id" : 15, + "value" : "oakland", + "label" : "location", + "properties" : { + "startTime" : 2011, + "endTime" : 2014 + } + }, { + "id" : 16, + "value" : "seattle", + "label" : "location", + "properties" : { + "startTime" : 2014 + } + } ] + } + }, { + "id" : 9, + "label" : "person", + "properties" : { + "name" : [ { + "id" : 3, + "value" : "daniel", + "label" : "name" + } ], + "location" : [ { + "id" : 17, + "value" : "spremberg", + "label" : "location", + "properties" : { + "startTime" : 1982, + "endTime" : 2005 + } + }, { + "id" : 18, + "value" : "kaiserslautern", + "label" : "location", + "properties" : { + "startTime" : 2005, + "endTime" : 2009 + } + }, { + "id" : 19, + "value" : "aachen", + "label" : "location", + "properties" : { + "startTime" : 2009 + } + } ] + } + }, { + "id" : 10, + "label" : "software", + "properties" : { + "name" : [ { + "id" : 4, + "value" : "gremlin", + "label" : "name" + } ] + } + }, { + "id" : 11, + "label" : "software", + "properties" : { + "name" : [ { + "id" : 5, + "value" : "tinkergraph", + "label" : "name" + } ] + } + } ], + "edges" : [ { + "id" : 13, + "label" : "develops", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 1, + "properties" : { + "since" : { + "key" : "since", + "value" : 2009 + } + } + }, { + "id" : 14, + "label" : "develops", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 11, + "outV" : 1, + "properties" : { + "since" : { + "key" : "since", + "value" : 2010 + } + } + }, { + "id" : 15, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 1, + "properties" : { + "skill" : { + "key" : "skill", + "value" : 4 + } + } + }, { + "id" : 16, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 11, + "outV" : 1, + "properties" : { + "skill" : { + "key" : "skill", + "value" : 5 + } + } + }, { + "id" : 17, + "label" : "develops", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 7, + "properties" : { + "since" : { + "key" : "since", + "value" : 2010 + } + } + }, { + "id" : 18, + "label" : "develops", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 11, + "outV" : 7, + "properties" : { + "since" : { + "key" : "since", + "value" : 2011 + } + } + }, { + "id" : 19, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 7, + "properties" : { + "skill" : { + "key" : "skill", + "value" : 5 + } + } + }, { + "id" : 20, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 11, + "outV" : 7, + "properties" : { + "skill" : { + "key" : "skill", + "value" : 4 + } + } + }, { + "id" : 21, + "label" : "develops", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 8, + "properties" : { + "since" : { + "key" : "since", + "value" : 2012 + } + } + }, { + "id" : 22, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 8, + "properties" : { + "skill" : { + "key" : "skill", + "value" : 3 + } + } + }, { + "id" : 23, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 11, + "outV" : 8, + "properties" : { + "skill" : { + "key" : "skill", + "value" : 3 + } + } + }, { + "id" : 24, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 9, + "properties" : { + "skill" : { + "key" : "skill", + "value" : 5 + } + } + }, { + "id" : 25, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 11, + "outV" : 9, + "properties" : { + "skill" : { + "key" : "skill", + "value" : 3 + } + } + }, { + "id" : 26, + "label" : "traverses", + "inVLabel" : "software", + "outVLabel" : "software", + "inV" : 11, + "outV" : 10 + } ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tinkergraph-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tinkergraph-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tinkergraph-v2d0-partial.json new file mode 100644 index 0000000..24e95ed --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tinkergraph-v2d0-partial.json @@ -0,0 +1,829 @@ +{ + "@type" : "tinker:graph", + "@value" : { + "vertices" : [ { + "@type" : "g:Vertex", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 1 + }, + "label" : "person", + "properties" : { + "name" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 0 + }, + "value" : "marko", + "label" : "name" + } + } ], + "location" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 6 + }, + "value" : "san diego", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 1997 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2001 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 7 + }, + "value" : "santa cruz", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2001 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2004 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 8 + }, + "value" : "brussels", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2004 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2005 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 9 + }, + "value" : "santa fe", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2005 + } + } + } + } ] + } + } + }, { + "@type" : "g:Vertex", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 7 + }, + "label" : "person", + "properties" : { + "name" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 1 + }, + "value" : "stephen", + "label" : "name" + } + } ], + "location" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 10 + }, + "value" : "centreville", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 1990 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2000 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 11 + }, + "value" : "dulles", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2000 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2006 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 12 + }, + "value" : "purcellville", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2006 + } + } + } + } ] + } + } + }, { + "@type" : "g:Vertex", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 8 + }, + "label" : "person", + "properties" : { + "name" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 2 + }, + "value" : "matthias", + "label" : "name" + } + } ], + "location" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 13 + }, + "value" : "bremen", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2004 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2007 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 14 + }, + "value" : "baltimore", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2007 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2011 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 15 + }, + "value" : "oakland", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2011 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2014 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 16 + }, + "value" : "seattle", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2014 + } + } + } + } ] + } + } + }, { + "@type" : "g:Vertex", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 9 + }, + "label" : "person", + "properties" : { + "name" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 3 + }, + "value" : "daniel", + "label" : "name" + } + } ], + "location" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 17 + }, + "value" : "spremberg", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 1982 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2005 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 18 + }, + "value" : "kaiserslautern", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2005 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2009 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 19 + }, + "value" : "aachen", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2009 + } + } + } + } ] + } + } + }, { + "@type" : "g:Vertex", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 10 + }, + "label" : "software", + "properties" : { + "name" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 4 + }, + "value" : "gremlin", + "label" : "name" + } + } ] + } + } + }, { + "@type" : "g:Vertex", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 11 + }, + "label" : "software", + "properties" : { + "name" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 5 + }, + "value" : "tinkergraph", + "label" : "name" + } + } ] + } + } + } ], + "edges" : [ { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 13 + }, + "label" : "develops", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 10 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 1 + }, + "properties" : { + "since" : { + "@type" : "g:Property", + "@value" : { + "key" : "since", + "value" : { + "@type" : "g:Int32", + "@value" : 2009 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 14 + }, + "label" : "develops", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 11 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 1 + }, + "properties" : { + "since" : { + "@type" : "g:Property", + "@value" : { + "key" : "since", + "value" : { + "@type" : "g:Int32", + "@value" : 2010 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 15 + }, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 10 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 1 + }, + "properties" : { + "skill" : { + "@type" : "g:Property", + "@value" : { + "key" : "skill", + "value" : { + "@type" : "g:Int32", + "@value" : 4 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 16 + }, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 11 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 1 + }, + "properties" : { + "skill" : { + "@type" : "g:Property", + "@value" : { + "key" : "skill", + "value" : { + "@type" : "g:Int32", + "@value" : 5 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 17 + }, + "label" : "develops", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 10 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 7 + }, + "properties" : { + "since" : { + "@type" : "g:Property", + "@value" : { + "key" : "since", + "value" : { + "@type" : "g:Int32", + "@value" : 2010 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 18 + }, + "label" : "develops", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 11 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 7 + }, + "properties" : { + "since" : { + "@type" : "g:Property", + "@value" : { + "key" : "since", + "value" : { + "@type" : "g:Int32", + "@value" : 2011 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 19 + }, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 10 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 7 + }, + "properties" : { + "skill" : { + "@type" : "g:Property", + "@value" : { + "key" : "skill", + "value" : { + "@type" : "g:Int32", + "@value" : 5 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 20 + }, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 11 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 7 + }, + "properties" : { + "skill" : { + "@type" : "g:Property", + "@value" : { + "key" : "skill", + "value" : { + "@type" : "g:Int32", + "@value" : 4 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 21 + }, + "label" : "develops", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 10 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 8 + }, + "properties" : { + "since" : { + "@type" : "g:Property", + "@value" : { + "key" : "since", + "value" : { + "@type" : "g:Int32", + "@value" : 2012 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 22 + }, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 10 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 8 + }, + "properties" : { + "skill" : { + "@type" : "g:Property", + "@value" : { + "key" : "skill", + "value" : { + "@type" : "g:Int32", + "@value" : 3 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 23 + }, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 11 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 8 + }, + "properties" : { + "skill" : { + "@type" : "g:Property", + "@value" : { + "key" : "skill", + "value" : { + "@type" : "g:Int32", + "@value" : 3 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 24 + }, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 10 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 9 + }, + "properties" : { + "skill" : { + "@type" : "g:Property", + "@value" : { + "key" : "skill", + "value" : { + "@type" : "g:Int32", + "@value" : 5 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 25 + }, + "label" : "uses", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : { + "@type" : "g:Int32", + "@value" : 11 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 9 + }, + "properties" : { + "skill" : { + "@type" : "g:Property", + "@value" : { + "key" : "skill", + "value" : { + "@type" : "g:Int32", + "@value" : 3 + } + } + } + } + } + }, { + "@type" : "g:Edge", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 26 + }, + "label" : "traverses", + "inVLabel" : "software", + "outVLabel" : "software", + "inV" : { + "@type" : "g:Int32", + "@value" : 11 + }, + "outV" : { + "@type" : "g:Int32", + "@value" : 10 + } + } + } ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traversalmetrics-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traversalmetrics-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traversalmetrics-v2d0-no-types.json new file mode 100644 index 0000000..4b21100 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traversalmetrics-v2d0-no-types.json @@ -0,0 +1,48 @@ +{ + "dur" : 0.185665, + "metrics" : [ { + "dur" : 0.034527, + "counts" : { + "traverserCount" : 4, + "elementCount" : 4 + }, + "name" : "TinkerGraphStep(vertex,[~label.eq(person)])", + "annotations" : { + "percentDur" : 18.596396736056878 + }, + "id" : "7.0.0()" + }, { + "dur" : 0.044219, + "counts" : { + "traverserCount" : 13, + "elementCount" : 13 + }, + "name" : "VertexStep(OUT,vertex)", + "annotations" : { + "percentDur" : 23.81655131554143 + }, + "id" : "2.0.0()" + }, { + "dur" : 0.064533, + "counts" : { + "traverserCount" : 7, + "elementCount" : 7 + }, + "name" : "VertexStep(OUT,vertex)", + "annotations" : { + "percentDur" : 34.75776263700752 + }, + "id" : "3.0.0()" + }, { + "dur" : 0.042386, + "counts" : { + "traverserCount" : 1, + "elementCount" : 1 + }, + "name" : "TreeStep", + "annotations" : { + "percentDur" : 22.829289311394177 + }, + "id" : "4.0.0()" + } ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traversalmetrics-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traversalmetrics-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traversalmetrics-v2d0-partial.json new file mode 100644 index 0000000..d64afa9 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traversalmetrics-v2d0-partial.json @@ -0,0 +1,114 @@ +{ + "@type" : "g:TraversalMetrics", + "@value" : { + "dur" : { + "@type" : "g:Double", + "@value" : 0.199533 + }, + "metrics" : [ { + "@type" : "g:Metrics", + "@value" : { + "dur" : { + "@type" : "g:Double", + "@value" : 0.045776 + }, + "counts" : { + "traverserCount" : { + "@type" : "g:Int64", + "@value" : 4 + }, + "elementCount" : { + "@type" : "g:Int64", + "@value" : 4 + } + }, + "name" : "TinkerGraphStep(vertex,[~label.eq(person)])", + "annotations" : { + "percentDur" : { + "@type" : "g:Double", + "@value" : 22.941568562593655 + } + }, + "id" : "7.0.0()" + } + }, { + "@type" : "g:Metrics", + "@value" : { + "dur" : { + "@type" : "g:Double", + "@value" : 0.065332 + }, + "counts" : { + "traverserCount" : { + "@type" : "g:Int64", + "@value" : 13 + }, + "elementCount" : { + "@type" : "g:Int64", + "@value" : 13 + } + }, + "name" : "VertexStep(OUT,vertex)", + "annotations" : { + "percentDur" : { + "@type" : "g:Double", + "@value" : 32.74245362922424 + } + }, + "id" : "2.0.0()" + } + }, { + "@type" : "g:Metrics", + "@value" : { + "dur" : { + "@type" : "g:Double", + "@value" : 0.034725 + }, + "counts" : { + "traverserCount" : { + "@type" : "g:Int64", + "@value" : 7 + }, + "elementCount" : { + "@type" : "g:Int64", + "@value" : 7 + } + }, + "name" : "VertexStep(OUT,vertex)", + "annotations" : { + "percentDur" : { + "@type" : "g:Double", + "@value" : 17.40313632331494 + } + }, + "id" : "3.0.0()" + } + }, { + "@type" : "g:Metrics", + "@value" : { + "dur" : { + "@type" : "g:Double", + "@value" : 0.0537 + }, + "counts" : { + "traverserCount" : { + "@type" : "g:Int64", + "@value" : 1 + }, + "elementCount" : { + "@type" : "g:Int64", + "@value" : 1 + } + }, + "name" : "TreeStep", + "annotations" : { + "percentDur" : { + "@type" : "g:Double", + "@value" : 26.912841484867165 + } + }, + "id" : "4.0.0()" + } + } ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traverser-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traverser-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traverser-v2d0-no-types.json new file mode 100644 index 0000000..6d1f029 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traverser-v2d0-no-types.json @@ -0,0 +1,46 @@ +{ + "bulk" : 1, + "value" : { + "id" : 1, + "label" : "person", + "properties" : { + "name" : [ { + "id" : 0, + "value" : "marko", + "label" : "name" + } ], + "location" : [ { + "id" : 6, + "value" : "san diego", + "label" : "location", + "properties" : { + "startTime" : 1997, + "endTime" : 2001 + } + }, { + "id" : 7, + "value" : "santa cruz", + "label" : "location", + "properties" : { + "startTime" : 2001, + "endTime" : 2004 + } + }, { + "id" : 8, + "value" : "brussels", + "label" : "location", + "properties" : { + "startTime" : 2004, + "endTime" : 2005 + } + }, { + "id" : 9, + "value" : "santa fe", + "label" : "location", + "properties" : { + "startTime" : 2005 + } + } ] + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traverser-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traverser-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traverser-v2d0-partial.json new file mode 100644 index 0000000..a59a29e --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/traverser-v2d0-partial.json @@ -0,0 +1,109 @@ +{ + "@type" : "g:Traverser", + "@value" : { + "bulk" : { + "@type" : "g:Int64", + "@value" : 1 + }, + "value" : { + "@type" : "g:Vertex", + "@value" : { + "id" : { + "@type" : "g:Int32", + "@value" : 1 + }, + "label" : "person", + "properties" : { + "name" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 0 + }, + "value" : "marko", + "label" : "name" + } + } ], + "location" : [ { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 6 + }, + "value" : "san diego", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 1997 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2001 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 7 + }, + "value" : "santa cruz", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2001 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2004 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 8 + }, + "value" : "brussels", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2004 + }, + "endTime" : { + "@type" : "g:Int32", + "@value" : 2005 + } + } + } + }, { + "@type" : "g:VertexProperty", + "@value" : { + "id" : { + "@type" : "g:Int64", + "@value" : 9 + }, + "value" : "santa fe", + "label" : "location", + "properties" : { + "startTime" : { + "@type" : "g:Int32", + "@value" : 2005 + } + } + } + } ] + } + } + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tree-v1d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tree-v1d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tree-v1d0.json new file mode 100644 index 0000000..db030dd --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tree-v1d0.json @@ -0,0 +1,276 @@ +{ + "1" : { + "key" : { + "id" : 1, + "label" : "person", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 0, + "value" : "marko" + } ], + "location" : [ { + "id" : 6, + "value" : "san diego", + "properties" : { + "startTime" : 1997, + "endTime" : 2001 + } + }, { + "id" : 7, + "value" : "santa cruz", + "properties" : { + "startTime" : 2001, + "endTime" : 2004 + } + }, { + "id" : 8, + "value" : "brussels", + "properties" : { + "startTime" : 2004, + "endTime" : 2005 + } + }, { + "id" : 9, + "value" : "santa fe", + "properties" : { + "startTime" : 2005 + } + } ] + } + }, + "value" : { + "10" : { + "key" : { + "id" : 10, + "label" : "software", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 4, + "value" : "gremlin" + } ] + } + }, + "value" : { + "11" : { + "key" : { + "id" : 11, + "label" : "software", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 5, + "value" : "tinkergraph" + } ] + } + }, + "value" : { } + } + } + } + } + }, + "7" : { + "key" : { + "id" : 7, + "label" : "person", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 1, + "value" : "stephen" + } ], + "location" : [ { + "id" : 10, + "value" : "centreville", + "properties" : { + "startTime" : 1990, + "endTime" : 2000 + } + }, { + "id" : 11, + "value" : "dulles", + "properties" : { + "startTime" : 2000, + "endTime" : 2006 + } + }, { + "id" : 12, + "value" : "purcellville", + "properties" : { + "startTime" : 2006 + } + } ] + } + }, + "value" : { + "10" : { + "key" : { + "id" : 10, + "label" : "software", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 4, + "value" : "gremlin" + } ] + } + }, + "value" : { + "11" : { + "key" : { + "id" : 11, + "label" : "software", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 5, + "value" : "tinkergraph" + } ] + } + }, + "value" : { } + } + } + } + } + }, + "8" : { + "key" : { + "id" : 8, + "label" : "person", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 2, + "value" : "matthias" + } ], + "location" : [ { + "id" : 13, + "value" : "bremen", + "properties" : { + "startTime" : 2004, + "endTime" : 2007 + } + }, { + "id" : 14, + "value" : "baltimore", + "properties" : { + "startTime" : 2007, + "endTime" : 2011 + } + }, { + "id" : 15, + "value" : "oakland", + "properties" : { + "startTime" : 2011, + "endTime" : 2014 + } + }, { + "id" : 16, + "value" : "seattle", + "properties" : { + "startTime" : 2014 + } + } ] + } + }, + "value" : { + "10" : { + "key" : { + "id" : 10, + "label" : "software", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 4, + "value" : "gremlin" + } ] + } + }, + "value" : { + "11" : { + "key" : { + "id" : 11, + "label" : "software", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 5, + "value" : "tinkergraph" + } ] + } + }, + "value" : { } + } + } + } + } + }, + "9" : { + "key" : { + "id" : 9, + "label" : "person", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 3, + "value" : "daniel" + } ], + "location" : [ { + "id" : 17, + "value" : "spremberg", + "properties" : { + "startTime" : 1982, + "endTime" : 2005 + } + }, { + "id" : 18, + "value" : "kaiserslautern", + "properties" : { + "startTime" : 2005, + "endTime" : 2009 + } + }, { + "id" : 19, + "value" : "aachen", + "properties" : { + "startTime" : 2009 + } + } ] + } + }, + "value" : { + "10" : { + "key" : { + "id" : 10, + "label" : "software", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 4, + "value" : "gremlin" + } ] + } + }, + "value" : { + "11" : { + "key" : { + "id" : 11, + "label" : "software", + "type" : "vertex", + "properties" : { + "name" : [ { + "id" : 5, + "value" : "tinkergraph" + } ] + } + }, + "value" : { } + } + } + } + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2743f4d4/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tree-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tree-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tree-v2d0-no-types.json new file mode 100644 index 0000000..50c2417 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_2_6/tree-v2d0-no-types.json @@ -0,0 +1,269 @@ +[ { + "key" : { + "id" : 1, + "label" : "person", + "properties" : { + "name" : [ { + "id" : 0, + "value" : "marko", + "label" : "name" + } ], + "location" : [ { + "id" : 6, + "value" : "san diego", + "label" : "location", + "properties" : { + "startTime" : 1997, + "endTime" : 2001 + } + }, { + "id" : 7, + "value" : "santa cruz", + "label" : "location", + "properties" : { + "startTime" : 2001, + "endTime" : 2004 + } + }, { + "id" : 8, + "value" : "brussels", + "label" : "location", + "properties" : { + "startTime" : 2004, + "endTime" : 2005 + } + }, { + "id" : 9, + "value" : "santa fe", + "label" : "location", + "properties" : { + "startTime" : 2005 + } + } ] + } + }, + "value" : [ { + "key" : { + "id" : 10, + "label" : "software", + "properties" : { + "name" : [ { + "id" : 4, + "value" : "gremlin", + "label" : "name" + } ] + } + }, + "value" : [ { + "key" : { + "id" : 11, + "label" : "software", + "properties" : { + "name" : [ { + "id" : 5, + "value" : "tinkergraph", + "label" : "name" + } ] + } + }, + "value" : [ ] + } ] + } ] +}, { + "key" : { + "id" : 7, + "label" : "person", + "properties" : { + "name" : [ { + "id" : 1, + "value" : "stephen", + "label" : "name" + } ], + "location" : [ { + "id" : 10, + "value" : "centreville", + "label" : "location", + "properties" : { + "startTime" : 1990, + "endTime" : 2000 + } + }, { + "id" : 11, + "value" : "dulles", + "label" : "location", + "properties" : { + "startTime" : 2000, + "endTime" : 2006 + } + }, { + "id" : 12, + "value" : "purcellville", + "label" : "location", + "properties" : { + "startTime" : 2006 + } + } ] + } + }, + "value" : [ { + "key" : { + "id" : 10, + "label" : "software", + "properties" : { + "name" : [ { + "id" : 4, + "value" : "gremlin", + "label" : "name" + } ] + } + }, + "value" : [ { + "key" : { + "id" : 11, + "label" : "software", + "properties" : { + "name" : [ { + "id" : 5, + "value" : "tinkergraph", + "label" : "name" + } ] + } + }, + "value" : [ ] + } ] + } ] +}, { + "key" : { + "id" : 8, + "label" : "person", + "properties" : { + "name" : [ { + "id" : 2, + "value" : "matthias", + "label" : "name" + } ], + "location" : [ { + "id" : 13, + "value" : "bremen", + "label" : "location", + "properties" : { + "startTime" : 2004, + "endTime" : 2007 + } + }, { + "id" : 14, + "value" : "baltimore", + "label" : "location", + "properties" : { + "startTime" : 2007, + "endTime" : 2011 + } + }, { + "id" : 15, + "value" : "oakland", + "label" : "location", + "properties" : { + "startTime" : 2011, + "endTime" : 2014 + } + }, { + "id" : 16, + "value" : "seattle", + "label" : "location", + "properties" : { + "startTime" : 2014 + } + } ] + } + }, + "value" : [ { + "key" : { + "id" : 10, + "label" : "software", + "properties" : { + "name" : [ { + "id" : 4, + "value" : "gremlin", + "label" : "name" + } ] + } + }, + "value" : [ { + "key" : { + "id" : 11, + "label" : "software", + "properties" : { + "name" : [ { + "id" : 5, + "value" : "tinkergraph", + "label" : "name" + } ] + } + }, + "value" : [ ] + } ] + } ] +}, { + "key" : { + "id" : 9, + "label" : "person", + "properties" : { + "name" : [ { + "id" : 3, + "value" : "daniel", + "label" : "name" + } ], + "location" : [ { + "id" : 17, + "value" : "spremberg", + "label" : "location", + "properties" : { + "startTime" : 1982, + "endTime" : 2005 + } + }, { + "id" : 18, + "value" : "kaiserslautern", + "label" : "location", + "properties" : { + "startTime" : 2005, + "endTime" : 2009 + } + }, { + "id" : 19, + "value" : "aachen", + "label" : "location", + "properties" : { + "startTime" : 2009 + } + } ] + } + }, + "value" : [ { + "key" : { + "id" : 10, + "label" : "software", + "properties" : { + "name" : [ { + "id" : 4, + "value" : "gremlin", + "label" : "name" + } ] + } + }, + "value" : [ { + "key" : { + "id" : 11, + "label" : "software", + "properties" : { + "name" : [ { + "id" : 5, + "value" : "tinkergraph", + "label" : "name" + } ] + } + }, + "value" : [ ] + } ] + } ] +} ] \ No newline at end of file
