Repository: tinkerpop Updated Branches: refs/heads/graphson-2.0 [created] c8c922dc2
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e1b6daed/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-classic-normalized-v2d0.json ---------------------------------------------------------------------- diff --git a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-classic-normalized-v2d0.json b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-classic-normalized-v2d0.json new file mode 100644 index 0000000..cb08148 --- /dev/null +++ b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-classic-normalized-v2d0.json @@ -0,0 +1,6 @@ +{"id":1,"label":"vertex","outE":{"created":[{"id":9,"inV":3,"properties":{"weight":0.4}}],"knows":[{"id":7,"inV":2,"properties":{"weight":0.5}},{"id":8,"inV":4,"properties":{"weight":1.0}}]},"properties":{"age":[{"id":2,"value":29}],"name":[{"id":0,"value":"marko"}]}} +{"id":2,"label":"vertex","inE":{"knows":[{"id":7,"outV":1,"properties":{"weight":0.5}}]},"properties":{"age":[{"id":4,"value":27}],"name":[{"id":3,"value":"vadas"}]}} +{"id":3,"label":"vertex","inE":{"created":[{"id":11,"outV":4,"properties":{"weight":0.4}},{"id":12,"outV":6,"properties":{"weight":0.2}},{"id":9,"outV":1,"properties":{"weight":0.4}}]},"properties":{"lang":[{"id":6,"value":"java"}],"name":[{"id":5,"value":"lop"}]}} +{"id":4,"label":"vertex","inE":{"knows":[{"id":8,"outV":1,"properties":{"weight":1.0}}]},"outE":{"created":[{"id":10,"inV":5,"properties":{"weight":1.0}},{"id":11,"inV":3,"properties":{"weight":0.4}}]},"properties":{"age":[{"id":8,"value":32}],"name":[{"id":7,"value":"josh"}]}} +{"id":5,"label":"vertex","inE":{"created":[{"id":10,"outV":4,"properties":{"weight":1.0}}]},"properties":{"lang":[{"id":10,"value":"java"}],"name":[{"id":9,"value":"ripple"}]}} +{"id":6,"label":"vertex","outE":{"created":[{"id":12,"inV":3,"properties":{"weight":0.2}}]},"properties":{"age":[{"id":12,"value":35}],"name":[{"id":11,"value":"peter"}]}} http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e1b6daed/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-classic-v2d0-typed.json ---------------------------------------------------------------------- diff --git a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-classic-v2d0-typed.json b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-classic-v2d0-typed.json new file mode 100644 index 0000000..1f15f50 --- /dev/null +++ b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-classic-v2d0-typed.json @@ -0,0 +1,6 @@ +{"id":1,"label":"vertex","outE":{"created":[{"id":9,"inV":3,"properties":{"weight":[{"@class":"Float"},0.4]}}],"knows":[{"id":7,"inV":2,"properties":{"weight":[{"@class":"Float"},0.5]}},{"id":8,"inV":4,"properties":{"weight":[{"@class":"Float"},1.0]}}]},"properties":{"name":[{"id":0,"value":"marko"}],"age":[{"id":2,"value":29}]}} +{"id":2,"label":"vertex","inE":{"knows":[{"id":7,"outV":1,"properties":{"weight":[{"@class":"Float"},0.5]}}]},"properties":{"name":[{"id":3,"value":"vadas"}],"age":[{"id":4,"value":27}]}} +{"id":3,"label":"vertex","inE":{"created":[{"id":9,"outV":1,"properties":{"weight":[{"@class":"Float"},0.4]}},{"id":11,"outV":4,"properties":{"weight":[{"@class":"Float"},0.4]}},{"id":12,"outV":6,"properties":{"weight":[{"@class":"Float"},0.2]}}]},"properties":{"name":[{"id":5,"value":"lop"}],"lang":[{"id":6,"value":"java"}]}} +{"id":4,"label":"vertex","inE":{"knows":[{"id":8,"outV":1,"properties":{"weight":[{"@class":"Float"},1.0]}}]},"outE":{"created":[{"id":10,"inV":5,"properties":{"weight":[{"@class":"Float"},1.0]}},{"id":11,"inV":3,"properties":{"weight":[{"@class":"Float"},0.4]}}]},"properties":{"name":[{"id":7,"value":"josh"}],"age":[{"id":8,"value":32}]}} +{"id":5,"label":"vertex","inE":{"created":[{"id":10,"outV":4,"properties":{"weight":[{"@class":"Float"},1.0]}}]},"properties":{"name":[{"id":9,"value":"ripple"}],"lang":[{"id":10,"value":"java"}]}} +{"id":6,"label":"vertex","outE":{"created":[{"id":12,"inV":3,"properties":{"weight":[{"@class":"Float"},0.2]}}]},"properties":{"name":[{"id":11,"value":"peter"}],"age":[{"id":12,"value":35}]}} http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e1b6daed/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-classic-v2d0.json ---------------------------------------------------------------------- diff --git a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-classic-v2d0.json b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-classic-v2d0.json new file mode 100644 index 0000000..5ccfe05 --- /dev/null +++ b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-classic-v2d0.json @@ -0,0 +1,6 @@ +{"id":1,"label":"vertex","outE":{"created":[{"id":9,"inV":3,"properties":{"weight":0.4}}],"knows":[{"id":7,"inV":2,"properties":{"weight":0.5}},{"id":8,"inV":4,"properties":{"weight":1.0}}]},"properties":{"name":[{"id":0,"value":"marko"}],"age":[{"id":2,"value":29}]}} +{"id":2,"label":"vertex","inE":{"knows":[{"id":7,"outV":1,"properties":{"weight":0.5}}]},"properties":{"name":[{"id":3,"value":"vadas"}],"age":[{"id":4,"value":27}]}} +{"id":3,"label":"vertex","inE":{"created":[{"id":9,"outV":1,"properties":{"weight":0.4}},{"id":11,"outV":4,"properties":{"weight":0.4}},{"id":12,"outV":6,"properties":{"weight":0.2}}]},"properties":{"name":[{"id":5,"value":"lop"}],"lang":[{"id":6,"value":"java"}]}} +{"id":4,"label":"vertex","inE":{"knows":[{"id":8,"outV":1,"properties":{"weight":1.0}}]},"outE":{"created":[{"id":10,"inV":5,"properties":{"weight":1.0}},{"id":11,"inV":3,"properties":{"weight":0.4}}]},"properties":{"name":[{"id":7,"value":"josh"}],"age":[{"id":8,"value":32}]}} +{"id":5,"label":"vertex","inE":{"created":[{"id":10,"outV":4,"properties":{"weight":1.0}}]},"properties":{"name":[{"id":9,"value":"ripple"}],"lang":[{"id":10,"value":"java"}]}} +{"id":6,"label":"vertex","outE":{"created":[{"id":12,"inV":3,"properties":{"weight":0.2}}]},"properties":{"name":[{"id":11,"value":"peter"}],"age":[{"id":12,"value":35}]}} http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e1b6daed/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-crew-v2d0-typed.json ---------------------------------------------------------------------- diff --git a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-crew-v2d0-typed.json b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-crew-v2d0-typed.json new file mode 100644 index 0000000..e94cd54 --- /dev/null +++ b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-crew-v2d0-typed.json @@ -0,0 +1,6 @@ +{"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":[{"@class":"Long"},0],"value":"marko"}],"location":[{"id":[{"@class":"Long"},6],"value":"san diego","properties":{"startTime":1997,"endTime":2001}},{"id":[{"@class":"Long"},7],"value":"santa cruz","properties":{"startTime":2001,"endTime":2004}},{"id":[{"@class":"Long"},8],"value":"brussels","properties":{"startTime":2004,"endTime":2005}},{"id":[{"@class":"Long"},9],"value":"santa fe","properties":{"startTime":2005}}]}} +{"id":7,"label":"person","outE":{"uses":[{"id":19,"inV":10,"properties":{"skill":5}},{"id":20,"inV":11,"properties":{"skill":4}}],"develops":[{"id":17,"inV":10,"properties":{"since":2010}},{"id":18,"inV":11,"properties":{"since":2011}}]},"properties":{"name":[{"id":[{"@class":"Long"},1],"value":"stephen"}],"location":[{"id":[{"@class":"Long"},10],"value":"centreville","properties":{"startTime":1990,"endTime":2000}},{"id":[{"@class":"Long"},11],"value":"dulles","properties":{"startTime":2000,"endTime":2006}},{"id":[{"@class":"Long"},12],"value":"purcellville","properties":{"startTime":2006}}]}} +{"id":8,"label":"person","outE":{"uses":[{"id":22,"inV":10,"properties":{"skill":3}},{"id":23,"inV":11,"properties":{"skill":3}}],"develops":[{"id":21,"inV":10,"properties":{"since":2012}}]},"properties":{"name":[{"id":[{"@class":"Long"},2],"value":"matthias"}],"location":[{"id":[{"@class":"Long"},13],"value":"bremen","properties":{"startTime":2004,"endTime":2007}},{"id":[{"@class":"Long"},14],"value":"baltimore","properties":{"startTime":2007,"endTime":2011}},{"id":[{"@class":"Long"},15],"value":"oakland","properties":{"startTime":2011,"endTime":2014}},{"id":[{"@class":"Long"},16],"value":"seattle","properties":{"startTime":2014}}]}} +{"id":9,"label":"person","outE":{"uses":[{"id":24,"inV":10,"properties":{"skill":5}},{"id":25,"inV":11,"properties":{"skill":3}}]},"properties":{"name":[{"id":[{"@class":"Long"},3],"value":"daniel"}],"location":[{"id":[{"@class":"Long"},17],"value":"spremberg","properties":{"startTime":1982,"endTime":2005}},{"id":[{"@class":"Long"},18],"value":"kaiserslautern","properties":{"startTime":2005,"endTime":2009}},{"id":[{"@class":"Long"},19],"value":"aachen","properties":{"startTime":2009}}]}} +{"id":10,"label":"software","inE":{"uses":[{"id":19,"outV":7,"properties":{"skill":5}},{"id":22,"outV":8,"properties":{"skill":3}},{"id":24,"outV":9,"properties":{"skill":5}},{"id":15,"outV":1,"properties":{"skill":4}}],"develops":[{"id":17,"outV":7,"properties":{"since":2010}},{"id":21,"outV":8,"properties":{"since":2012}},{"id":13,"outV":1,"properties":{"since":2009}}]},"outE":{"traverses":[{"id":26,"inV":11}]},"properties":{"name":[{"id":[{"@class":"Long"},4],"value":"gremlin"}]}} +{"id":11,"label":"software","inE":{"traverses":[{"id":26,"outV":10}],"uses":[{"id":16,"outV":1,"properties":{"skill":5}},{"id":20,"outV":7,"properties":{"skill":4}},{"id":23,"outV":8,"properties":{"skill":3}},{"id":25,"outV":9,"properties":{"skill":3}}],"develops":[{"id":18,"outV":7,"properties":{"since":2011}},{"id":14,"outV":1,"properties":{"since":2010}}]},"properties":{"name":[{"id":[{"@class":"Long"},5],"value":"tinkergraph"}]}} http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e1b6daed/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-crew-v2d0.json ---------------------------------------------------------------------- diff --git a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-crew-v2d0.json b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-crew-v2d0.json new file mode 100644 index 0000000..2165e4d --- /dev/null +++ b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-crew-v2d0.json @@ -0,0 +1,6 @@ +{"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}}]}} +{"id":7,"label":"person","outE":{"uses":[{"id":19,"inV":10,"properties":{"skill":5}},{"id":20,"inV":11,"properties":{"skill":4}}],"develops":[{"id":17,"inV":10,"properties":{"since":2010}},{"id":18,"inV":11,"properties":{"since":2011}}]},"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","outE":{"uses":[{"id":22,"inV":10,"properties":{"skill":3}},{"id":23,"inV":11,"properties":{"skill":3}}],"develops":[{"id":21,"inV":10,"properties":{"since":2012}}]},"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","outE":{"uses":[{"id":24,"inV":10,"properties":{"skill":5}},{"id":25,"inV":11,"properties":{"skill":3}}]},"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","inE":{"uses":[{"id":19,"outV":7,"properties":{"skill":5}},{"id":22,"outV":8,"properties":{"skill":3}},{"id":24,"outV":9,"properties":{"skill":5}},{"id":15,"outV":1,"properties":{"skill":4}}],"develops":[{"id":17,"outV":7,"properties":{"since":2010}},{"id":21,"outV":8,"properties":{"since":2012}},{"id":13,"outV":1,"properties":{"since":2009}}]},"outE":{"traverses":[{"id":26,"inV":11}]},"properties":{"name":[{"id":4,"value":"gremlin"}]}} +{"id":11,"label":"software","inE":{"traverses":[{"id":26,"outV":10}],"uses":[{"id":16,"outV":1,"properties":{"skill":5}},{"id":20,"outV":7,"properties":{"skill":4}},{"id":23,"outV":8,"properties":{"skill":3}},{"id":25,"outV":9,"properties":{"skill":3}}],"develops":[{"id":18,"outV":7,"properties":{"since":2011}},{"id":14,"outV":1,"properties":{"since":2010}}]},"properties":{"name":[{"id":5,"value":"tinkergraph"}]}} http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e1b6daed/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-modern-normalized-v2d0.json ---------------------------------------------------------------------- diff --git a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-modern-normalized-v2d0.json b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-modern-normalized-v2d0.json new file mode 100644 index 0000000..8c259ea --- /dev/null +++ b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-modern-normalized-v2d0.json @@ -0,0 +1,6 @@ +{"id":1,"label":"person","outE":{"created":[{"id":9,"inV":3,"properties":{"weight":0.4}}],"knows":[{"id":7,"inV":2,"properties":{"weight":0.5}},{"id":8,"inV":4,"properties":{"weight":1.0}}]},"properties":{"age":[{"id":1,"value":29}],"name":[{"id":0,"value":"marko"}]}} +{"id":2,"label":"person","inE":{"knows":[{"id":7,"outV":1,"properties":{"weight":0.5}}]},"properties":{"age":[{"id":3,"value":27}],"name":[{"id":2,"value":"vadas"}]}} +{"id":3,"label":"software","inE":{"created":[{"id":11,"outV":4,"properties":{"weight":0.4}},{"id":12,"outV":6,"properties":{"weight":0.2}},{"id":9,"outV":1,"properties":{"weight":0.4}}]},"properties":{"lang":[{"id":5,"value":"java"}],"name":[{"id":4,"value":"lop"}]}} +{"id":4,"label":"person","inE":{"knows":[{"id":8,"outV":1,"properties":{"weight":1.0}}]},"outE":{"created":[{"id":10,"inV":5,"properties":{"weight":1.0}},{"id":11,"inV":3,"properties":{"weight":0.4}}]},"properties":{"age":[{"id":7,"value":32}],"name":[{"id":6,"value":"josh"}]}} +{"id":5,"label":"software","inE":{"created":[{"id":10,"outV":4,"properties":{"weight":1.0}}]},"properties":{"lang":[{"id":9,"value":"java"}],"name":[{"id":8,"value":"ripple"}]}} +{"id":6,"label":"person","outE":{"created":[{"id":12,"inV":3,"properties":{"weight":0.2}}]},"properties":{"age":[{"id":11,"value":35}],"name":[{"id":10,"value":"peter"}]}} http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e1b6daed/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-modern-v2d0-typed.json ---------------------------------------------------------------------- diff --git a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-modern-v2d0-typed.json b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-modern-v2d0-typed.json new file mode 100644 index 0000000..22114aa --- /dev/null +++ b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-modern-v2d0-typed.json @@ -0,0 +1,6 @@ +{"id":1,"label":"person","outE":{"created":[{"id":9,"inV":3,"properties":{"weight":0.4}}],"knows":[{"id":7,"inV":2,"properties":{"weight":0.5}},{"id":8,"inV":4,"properties":{"weight":1.0}}]},"properties":{"name":[{"id":[{"@class":"Long"},0],"value":"marko"}],"age":[{"id":[{"@class":"Long"},1],"value":29}]}} +{"id":2,"label":"person","inE":{"knows":[{"id":7,"outV":1,"properties":{"weight":0.5}}]},"properties":{"name":[{"id":[{"@class":"Long"},2],"value":"vadas"}],"age":[{"id":[{"@class":"Long"},3],"value":27}]}} +{"id":3,"label":"software","inE":{"created":[{"id":9,"outV":1,"properties":{"weight":0.4}},{"id":11,"outV":4,"properties":{"weight":0.4}},{"id":12,"outV":6,"properties":{"weight":0.2}}]},"properties":{"name":[{"id":[{"@class":"Long"},4],"value":"lop"}],"lang":[{"id":[{"@class":"Long"},5],"value":"java"}]}} +{"id":4,"label":"person","inE":{"knows":[{"id":8,"outV":1,"properties":{"weight":1.0}}]},"outE":{"created":[{"id":10,"inV":5,"properties":{"weight":1.0}},{"id":11,"inV":3,"properties":{"weight":0.4}}]},"properties":{"name":[{"id":[{"@class":"Long"},6],"value":"josh"}],"age":[{"id":[{"@class":"Long"},7],"value":32}]}} +{"id":5,"label":"software","inE":{"created":[{"id":10,"outV":4,"properties":{"weight":1.0}}]},"properties":{"name":[{"id":[{"@class":"Long"},8],"value":"ripple"}],"lang":[{"id":[{"@class":"Long"},9],"value":"java"}]}} +{"id":6,"label":"person","outE":{"created":[{"id":12,"inV":3,"properties":{"weight":0.2}}]},"properties":{"name":[{"id":[{"@class":"Long"},10],"value":"peter"}],"age":[{"id":[{"@class":"Long"},11],"value":35}]}} http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e1b6daed/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-modern-v2d0.json ---------------------------------------------------------------------- diff --git a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-modern-v2d0.json b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-modern-v2d0.json new file mode 100644 index 0000000..18c265d --- /dev/null +++ b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/tinkerpop-modern-v2d0.json @@ -0,0 +1,6 @@ +{"id":1,"label":"person","outE":{"created":[{"id":9,"inV":3,"properties":{"weight":0.4}}],"knows":[{"id":7,"inV":2,"properties":{"weight":0.5}},{"id":8,"inV":4,"properties":{"weight":1.0}}]},"properties":{"name":[{"id":0,"value":"marko"}],"age":[{"id":1,"value":29}]}} +{"id":2,"label":"person","inE":{"knows":[{"id":7,"outV":1,"properties":{"weight":0.5}}]},"properties":{"name":[{"id":2,"value":"vadas"}],"age":[{"id":3,"value":27}]}} +{"id":3,"label":"software","inE":{"created":[{"id":9,"outV":1,"properties":{"weight":0.4}},{"id":11,"outV":4,"properties":{"weight":0.4}},{"id":12,"outV":6,"properties":{"weight":0.2}}]},"properties":{"name":[{"id":4,"value":"lop"}],"lang":[{"id":5,"value":"java"}]}} +{"id":4,"label":"person","inE":{"knows":[{"id":8,"outV":1,"properties":{"weight":1.0}}]},"outE":{"created":[{"id":10,"inV":5,"properties":{"weight":1.0}},{"id":11,"inV":3,"properties":{"weight":0.4}}]},"properties":{"name":[{"id":6,"value":"josh"}],"age":[{"id":7,"value":32}]}} +{"id":5,"label":"software","inE":{"created":[{"id":10,"outV":4,"properties":{"weight":1.0}}]},"properties":{"name":[{"id":8,"value":"ripple"}],"lang":[{"id":9,"value":"java"}]}} +{"id":6,"label":"person","outE":{"created":[{"id":12,"inV":3,"properties":{"weight":0.2}}]},"properties":{"name":[{"id":10,"value":"peter"}],"age":[{"id":11,"value":35}]}} http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e1b6daed/tinkergraph-gremlin/pom.xml ---------------------------------------------------------------------- diff --git a/tinkergraph-gremlin/pom.xml b/tinkergraph-gremlin/pom.xml index 0f3cecd..4f31f8d 100644 --- a/tinkergraph-gremlin/pom.xml +++ b/tinkergraph-gremlin/pom.xml @@ -76,7 +76,7 @@ limitations under the License. </activation> <properties> - <io.tmp.dir>${project.build.directory}/tinkerpop-io</io.tmp.dir> + <io.tmp.dir>${project.build.directory}/test-case-data/TinkerGraphTest/tinkerpop-io</io.tmp.dir> </properties> <build> @@ -115,7 +115,7 @@ limitations under the License. <directory>${io.tmp.dir}</directory> <filtering>false</filtering> <excludes> - <exclude>**/*-normalized.json</exclude> + <exclude>**/*-normalized*.json</exclude> <exclude>**/sample.kryo</exclude> </excludes> </resource> http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e1b6daed/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/IoDataGenerationTest.java ---------------------------------------------------------------------- diff --git a/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/IoDataGenerationTest.java b/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/IoDataGenerationTest.java index 46d787a..a5c5220 100644 --- a/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/IoDataGenerationTest.java +++ b/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/IoDataGenerationTest.java @@ -202,7 +202,8 @@ public class IoDataGenerationTest { @Test public void shouldWriteClassicGraphAsGraphSONV2d0NoTypes() throws IOException { final OutputStream os = new FileOutputStream(tempPath + "tinkerpop-classic-v2d0.json"); - GraphSONWriter.build().create().writeGraph(os, TinkerFactory.createClassic()); + GraphSONWriter.build().mapper(GraphSONMapper.build().version(GraphSONVersion.V2_0).typeInfo(GraphSONMapper.TypeInfo.NO_TYPES).create()).create() + .writeGraph(os, TinkerFactory.createClassic()); os.close(); } @@ -212,7 +213,8 @@ public class IoDataGenerationTest { @Test public void shouldWriteModernGraphAsGraphSOV2d0NNoTypes() throws IOException { final OutputStream os = new FileOutputStream(tempPath + "tinkerpop-modern-v2d0.json"); - GraphSONWriter.build().create().writeGraph(os, TinkerFactory.createModern()); + GraphSONWriter.build().mapper(GraphSONMapper.build().version(GraphSONVersion.V2_0).typeInfo(GraphSONMapper.TypeInfo.NO_TYPES).create()).create() + .writeGraph(os, TinkerFactory.createModern()); os.close(); } @@ -222,7 +224,8 @@ public class IoDataGenerationTest { @Test public void shouldWriteCrewGraphAsGraphSONV2d0NoTypes() throws IOException { final OutputStream os = new FileOutputStream(tempPath + "tinkerpop-crew-v2d0.json"); - GraphSONWriter.build().create().writeGraph(os, TinkerFactory.createTheCrew()); + GraphSONWriter.build().mapper(GraphSONMapper.build().version(GraphSONVersion.V2_0).typeInfo(GraphSONMapper.TypeInfo.NO_TYPES).create()).create() + .writeGraph(os, TinkerFactory.createTheCrew()); os.close(); } @@ -232,7 +235,8 @@ public class IoDataGenerationTest { @Test public void shouldWriteClassicGraphNormalizedAsGraphSONV2d0() throws IOException { final OutputStream os = new FileOutputStream(tempPath + "tinkerpop-classic-normalized-v2d0.json"); - GraphSONWriter.build().mapper(GraphSONMapper.build().normalize(true).create()).create().writeGraph(os, TinkerFactory.createClassic()); + GraphSONWriter.build().mapper(GraphSONMapper.build().version(GraphSONVersion.V2_0).typeInfo(GraphSONMapper.TypeInfo.NO_TYPES).normalize(true).create()).create() + .writeGraph(os, TinkerFactory.createClassic()); os.close(); } @@ -242,7 +246,8 @@ public class IoDataGenerationTest { @Test public void shouldWriteModernGraphNormalizedAsGraphSONV2d0() throws IOException { final OutputStream os = new FileOutputStream(tempPath + "tinkerpop-modern-normalized-v2d0.json"); - GraphSONWriter.build().mapper(GraphSONMapper.build().normalize(true).create()).create().writeGraph(os, TinkerFactory.createModern()); + GraphSONWriter.build().mapper(GraphSONMapper.build().version(GraphSONVersion.V2_0).typeInfo(GraphSONMapper.TypeInfo.NO_TYPES).normalize(true).create()).create() + .writeGraph(os, TinkerFactory.createModern()); os.close(); } @@ -252,8 +257,8 @@ public class IoDataGenerationTest { @Test public void shouldWriteClassicGraphAsGraphSONV2d0WithTypes() throws IOException { final OutputStream os = new FileOutputStream(tempPath + "tinkerpop-classic-v2d0-typed.json"); - GraphSONWriter.build().mapper(GraphSONMapper.build().embedTypes(true).create()) - .create().writeGraph(os, TinkerFactory.createClassic()); + GraphSONWriter.build().mapper(GraphSONMapper.build().version(GraphSONVersion.V2_0).create()).create() + .writeGraph(os, TinkerFactory.createClassic()); os.close(); } @@ -263,8 +268,8 @@ public class IoDataGenerationTest { @Test public void shouldWriteModernGraphAsGraphSONV2d0WithTypes() throws IOException { final OutputStream os = new FileOutputStream(tempPath + "tinkerpop-modern-v2d0-typed.json"); - GraphSONWriter.build().mapper(GraphSONMapper.build().embedTypes(true).create()) - .create().writeGraph(os, TinkerFactory.createModern()); + GraphSONWriter.build().mapper(GraphSONMapper.build().version(GraphSONVersion.V2_0).create()).create() + .writeGraph(os, TinkerFactory.createModern()); os.close(); } @@ -274,8 +279,8 @@ public class IoDataGenerationTest { @Test public void shouldWriteCrewGraphAsGraphSONV2d0WithTypes() throws IOException { final OutputStream os = new FileOutputStream(tempPath + "tinkerpop-crew-v2d0-typed.json"); - GraphSONWriter.build().mapper(GraphSONMapper.build().embedTypes(true).create()) - .create().writeGraph(os, TinkerFactory.createTheCrew()); + GraphSONWriter.build().mapper(GraphSONMapper.build().version(GraphSONVersion.V2_0).create()).create() + .writeGraph(os, TinkerFactory.createTheCrew()); os.close(); }