http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/pom.xml ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/pom.xml b/gremlin-tools/gremlin-io-test/pom.xml index 0cc3a34..a3d05be 100644 --- a/gremlin-tools/gremlin-io-test/pom.xml +++ b/gremlin-tools/gremlin-io-test/pom.xml @@ -96,194 +96,22 @@ <goal>execute</goal> </goals> <configuration> + <properties> + <property> + <name>projectBuildDir</name> + <value>${project.build.directory}</value> + </property> + <property> + <name>projectBaseDir</name> + <value>${project.build.directory}</value> + </property> + <property> + <name>projectVersion</name> + <value>${project.version}</value> + </property> + </properties> <scripts> - <script> - <![CDATA[ -import java.time.* -import java.nio.files.* -import org.apache.tinkerpop.gremlin.driver.ser.* -import org.apache.tinkerpop.gremlin.process.traversal.* -import org.apache.tinkerpop.gremlin.tinkergraph.structure.* -import org.apache.tinkerpop.gremlin.structure.* -import org.apache.tinkerpop.gremlin.structure.io.graphson.* -import org.apache.tinkerpop.gremlin.driver.message.* -import org.apache.tinkerpop.gremlin.process.traversal.step.* -import org.apache.tinkerpop.gremlin.process.traversal.step.TraversalOptionParent.Pick -import org.apache.tinkerpop.gremlin.structure.io.Model -import org.apache.commons.configuration.BaseConfiguration - -new File("${project.build.directory}/dev-docs/").mkdirs() -new File("${project.build.directory}/test-case-data/io/graphson/").mkdirs() -new File("${project.build.directory}/test-case-data/io/gryo/").mkdirs() - -conf = new BaseConfiguration() -conf.setProperty(TinkerGraph.GREMLIN_TINKERGRAPH_DEFAULT_VERTEX_PROPERTY_CARDINALITY, VertexProperty.Cardinality.list.name()) -graph = TinkerGraph.open(conf) -TinkerFactory.generateTheCrew(graph) -g = graph.traversal() - -model = Model.instance() - -toJsonV1d0NoTypes = { o, type, mapper, comment = "" -> - toJson(o, type, mapper, comment, "v1d0") -} - -toJson = { o, type, mapper, comment = "", suffix = "" -> - def jsonSample = mapper.writerWithDefaultPrettyPrinter().writeValueAsString(o) - - def fileToWriteTo = new File("${project.build.directory}/test-case-data/io/graphson/" + type.toLowerCase().replace(" ","") + "-" + suffix + ".json") - if (fileToWriteTo.exists()) fileToWriteTo.delete() - fileToWriteTo.withWriter{ it.write(jsonSample) } - - return type + "\n" + - "^".multiply(type.length()) + "\n\n" + - (comment.isEmpty() ? "" : comment + "\n\n") + - "[source,json]\n" + - "----\n" + - jsonSample + "\n" + - "----\n" + - "\n" -} - -writeSupportedV1Objects = { writer, mapper -> - writer.write("Graph Structure\n") - writer.write("~~~~~~~~~~~~~~~\n\n") - model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { - writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) - } - - writer.write("\n") - writer.write("RequestMessage\n") - writer.write("~~~~~~~~~~~~~~\n\n") - model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { - writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) - } - - writer.write("\n") - writer.write("ResponseMessage\n") - writer.write("~~~~~~~~~~~~~~~\n\n") - model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { - writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) - } -} - -mapper = GraphSONMapper.build(). - addRegistry(TinkerIoRegistryV1d0.instance()). - addCustomModule(new AbstractGraphSONMessageSerializerV1d0.GremlinServerModule()). - version(GraphSONVersion.V1_0).create().createMapper() - -v1GraphSONFile = new File("${project.build.directory}/dev-docs/out-graphson-1d0.txt") -if (v1GraphSONFile.exists()) v1GraphSONFile.delete() -new File("${project.build.directory}/dev-docs/out-graphson-1d0.txt").withWriter { writeSupportedV1Objects(it, mapper) } - -toJsonV2d0PartialTypes = { o, type, mapper, comment = "" -> - toJson(o, type, mapper, comment, "v2d0-partial") -} - -toJsonV2d0NoTypes = { o, type, mapper, comment = "" -> - toJson(o, type, mapper, comment, "v2d0-no-types") -} - -toJsonV3d0 = { o, type, mapper, comment = "" -> - toJson(o, type, mapper, comment, "v3d0") -} - -writeSupportedV2V3Objects = { writer, mapper, toJsonFunction -> - writer.write("Core\n") - writer.write("~~~~\n\n") - model.entries("Core").each { - writer.write(toJsonFunction(it.getObject(), it.getTitle(), mapper, it.getDescription())) - } - - writer.write("\n") - writer.write("Graph Structure\n") - writer.write("~~~~~~~~~~~~~~~\n\n") - model.entries("Graph Structure").each { - writer.write(toJsonFunction(it.getObject(), it.getTitle(), mapper, it.getDescription())) - } - - writer.write("\n") - writer.write("Graph Process\n") - writer.write("~~~~~~~~~~~~~\n\n") - model.entries("Graph Process").each { - writer.write(toJsonFunction(it.getObject(), it.getTitle(), mapper, it.getDescription())) - } - - writer.write("\n") - writer.write("RequestMessage\n") - writer.write("~~~~~~~~~~~~~~\n\n") - model.entries("RequestMessage").each { - writer.write(toJsonFunction(it.getObject(), it.getTitle(), mapper, it.getDescription())) - } - - writer.write("\n") - writer.write("ResponseMessage\n") - writer.write("~~~~~~~~~~~~~~~\n\n") - model.entries("ResponseMessage").each { - writer.write(toJsonFunction(it.getObject(), it.getTitle(), mapper, it.getDescription())) - } - - writer.write("\n") - writer.write("Extended\n") - writer.write("~~~~~~~~\n\n") - writer.write("""Note that the "extended" types require the addition of the separate `GraphSONXModuleV2d0` module as follows:\n -[source,java] ----- -mapper = GraphSONMapper.build(). - typeInfo(TypeInfo.PARTIAL_TYPES). - addCustomModule(GraphSONXModuleV2d0.build().create(false)). - version(GraphSONVersion.V2_0).create().createMapper() -----\n -""") - model.entries("Extended").each { - writer.write(toJsonFunction(it.getObject(), it.getTitle(), mapper, it.getDescription())) - } -} - -mapper = GraphSONMapper.build(). - addRegistry(TinkerIoRegistryV2d0.instance()). - typeInfo(TypeInfo.PARTIAL_TYPES). - addCustomModule(GraphSONXModuleV2d0.build().create(false)). - addCustomModule(new org.apache.tinkerpop.gremlin.driver.ser.AbstractGraphSONMessageSerializerV2d0.GremlinServerModule()). - version(GraphSONVersion.V2_0).create().createMapper() - -file = new File("${project.build.directory}/dev-docs/out-graphson-2d0-partial.txt") -if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes) } - -mapper = GraphSONMapper.build(). - addRegistry(TinkerIoRegistryV2d0.instance()). - typeInfo(TypeInfo.NO_TYPES). - addCustomModule(GraphSONXModuleV2d0.build().create(false)). - addCustomModule(new org.apache.tinkerpop.gremlin.driver.ser.AbstractGraphSONMessageSerializerV2d0.GremlinServerModule()). - version(GraphSONVersion.V2_0).create().createMapper() - -file = new File("${project.build.directory}/dev-docs/out-graphson-2d0-no-type.txt") -if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0NoTypes) } - -mapper = GraphSONMapper.build(). - addRegistry(TinkerIoRegistryV2d0.instance()). - addCustomModule(GraphSONXModuleV2d0.build().create(false)). - addCustomModule(new org.apache.tinkerpop.gremlin.driver.ser.AbstractGraphSONMessageSerializerV2d0.GremlinServerModule()). - version(GraphSONVersion.V3_0).create().createMapper() - -file = new File("${project.build.directory}/dev-docs/out-graphson-3d0.txt") -if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV3d0) } - -def ver = "_" + "${project.version}".replace(".","_").replace("-SNAPSHOT","") -def target = "${project.basedir}/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/" + ver -def targetDir = new File(target) -if (!targetDir.exists()) targetDir.mkdirs() -new File("${project.build.directory}/test-case-data/io/graphson/").listFiles().each { - def copyTo = new File(target + "/" + it.name) - if (copyTo.exists()) copyTo.delete() - java.nio.file.Files.copy(it.toPath(), new File(target + "/" + it.name).toPath()) -} - -]]> - </script> + <script>${project.basedir}/scripts/generate-graphson-resources.groovy</script> </scripts> </configuration> </execution> @@ -294,87 +122,22 @@ new File("${project.build.directory}/test-case-data/io/graphson/").listFiles().e <goal>execute</goal> </goals> <configuration> + <properties> + <property> + <name>projectBuildDir</name> + <value>${project.build.directory}</value> + </property> + <property> + <name>projectBaseDir</name> + <value>${project.build.directory}</value> + </property> + <property> + <name>projectVersion</name> + <value>${project.version}</value> + </property> + </properties> <scripts> - <script> - <![CDATA[ -import java.time.* -import java.nio.file.* -import org.apache.tinkerpop.shaded.kryo.io.Output -import org.apache.tinkerpop.gremlin.tinkergraph.structure.* -import org.apache.tinkerpop.gremlin.structure.* -import org.apache.tinkerpop.gremlin.structure.io.gryo.* -import org.apache.tinkerpop.gremlin.structure.io.* -import org.apache.tinkerpop.gremlin.process.traversal.* -import org.apache.commons.configuration.BaseConfiguration - -new File("${project.build.directory}/dev-docs/").mkdirs() -new File("${project.build.directory}/test-case-data/io/gryo").mkdirs() - -conf = new BaseConfiguration() -conf.setProperty(TinkerGraph.GREMLIN_TINKERGRAPH_DEFAULT_VERTEX_PROPERTY_CARDINALITY, VertexProperty.Cardinality.list.name()) -graph = TinkerGraph.open(conf) -TinkerFactory.generateTheCrew(graph) -g = graph.traversal() - -model = Model.instance() - -toGryo = { o, type, mapper, suffix = "" -> - def fileToWriteTo = new File("${project.build.directory}/test-case-data/io/gryo/" + type.title.toLowerCase().replace(" ","") + "-" + suffix + ".kryo") - if (fileToWriteTo.exists()) fileToWriteTo.delete() - try { - final Output out = new Output(new FileOutputStream(fileToWriteTo)) - mapper.writeObject(out, o) - out.close() - } catch (Exception ex) { - // some v1 gryo is not easily testable (i.e. RequestMessage) because it is has external serializers that - // don' get registered with GryoMapper. those cases can be ignored. - if (type.isCompatibleWith(GryoCompatibility.V1D0_3_3_0)) - throw ex - else - fileToWriteTo.delete() - } -} - -toGryoV1d0 = { o, type, mapper -> - toGryo(o, type, mapper, "v1d0") -} - -toGryoV3d0 = { o, type, mapper -> - toGryo(o, type, mapper, "v3d0") -} - -writeSupportedObjects = { mapper, toGryoFunction -> - model.entries().findAll{it.hasGryoCompatibility()}.each { - toGryoFunction(it.getObject(), it, mapper) - } -} - -mapper = GryoMapper.build(). - version(GryoVersion.V1_0). - addRegistry(TinkerIoRegistryV2d0.instance()). - create().createMapper() - -writeSupportedObjects(mapper, toGryoV1d0) - -mapper = GryoMapper.build(). - version(GryoVersion.V3_0). - addRegistry(TinkerIoRegistryV2d0.instance()). - create().createMapper() - -writeSupportedObjects(mapper, toGryoV3d0) - -def ver = "_" + "${project.version}".replace(".","_").replace("-SNAPSHOT","") -def target = "${project.basedir}/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/gryo/" + ver -def targetDir = new File(target) -if (!targetDir.exists()) targetDir.mkdirs() -new File("${project.build.directory}/test-case-data/io/gryo/").listFiles().each { - def copyTo = new File(target + "/" + it.name) - if (copyTo.exists()) copyTo.delete() - java.nio.file.Files.copy(it.toPath(), new File(target + "/" + it.name).toPath()) -} - -]]> - </script> + <script>${project.basedir}/scripts/generate-gryo-resources.groovy</script> </scripts> </configuration> </execution>
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy new file mode 100644 index 0000000..55b4fa6 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy @@ -0,0 +1,202 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import java.nio.file.Files +import org.apache.tinkerpop.gremlin.driver.ser.* +import org.apache.tinkerpop.gremlin.tinkergraph.structure.* +import org.apache.tinkerpop.gremlin.structure.* +import org.apache.tinkerpop.gremlin.structure.io.graphson.* +import org.apache.tinkerpop.gremlin.structure.io.Model +import org.apache.commons.configuration.BaseConfiguration + +new File("${projectBuildDir}/dev-docs/").mkdirs() +new File("${projectBuildDir}/test-case-data/io/graphson/").mkdirs() +new File("${projectBuildDir}/test-case-data/io/gryo/").mkdirs() + +conf = new BaseConfiguration() +conf.setProperty(TinkerGraph.GREMLIN_TINKERGRAPH_DEFAULT_VERTEX_PROPERTY_CARDINALITY, VertexProperty.Cardinality.list.name()) +graph = TinkerGraph.open(conf) +TinkerFactory.generateTheCrew(graph) +g = graph.traversal() + +model = Model.instance() + +toJsonV1d0NoTypes = { o, type, mapper, comment = "" -> + toJson(o, type, mapper, comment, "v1d0") +} + +toJson = { o, type, mapper, comment = "", suffix = "" -> + def jsonSample = mapper.writerWithDefaultPrettyPrinter().writeValueAsString(o) + + def fileToWriteTo = new File("${projectBuildDir}/test-case-data/io/graphson/" + type.toLowerCase().replace(" ","") + "-" + suffix + ".json") + if (fileToWriteTo.exists()) fileToWriteTo.delete() + fileToWriteTo.withWriter{ it.write(jsonSample) } + + return "==== " + type + "\n\n" + + (comment.isEmpty() ? "" : comment + "\n\n") + + "[source,json]\n" + + "----\n" + + jsonSample + "\n" + + "----\n" + + "\n" +} + +writeSupportedV1Objects = { writer, mapper -> + writer.write("=== Graph Structure\n\n") + model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) + } + + writer.write("\n") + writer.write("=== RequestMessage\n\n") + model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) + } + + writer.write("\n") + writer.write("=== ResponseMessage\n\n") + model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) + } +} + +mapper = GraphSONMapper.build(). + addRegistry(TinkerIoRegistryV1d0.instance()). + addCustomModule(new AbstractGraphSONMessageSerializerV1d0.GremlinServerModule()). + version(GraphSONVersion.V1_0).create().createMapper() + +v1GraphSONFile = new File("${projectBuildDir}/dev-docs/out-graphson-1d0.txt") +if (v1GraphSONFile.exists()) v1GraphSONFile.delete() +new File("${projectBuildDir}/dev-docs/out-graphson-1d0.txt").withWriter { writeSupportedV1Objects(it, mapper) } + +toJsonV2d0PartialTypes = { o, type, mapper, comment = "" -> + toJson(o, type, mapper, comment, "v2d0-partial") +} + +toJsonV2d0NoTypes = { o, type, mapper, comment = "" -> + toJson(o, type, mapper, comment, "v2d0-no-types") +} + +toJsonV3d0 = { o, type, mapper, comment = "" -> + toJson(o, type, mapper, comment, "v3d0") +} + +writeSupportedV2V3Objects = { writer, mapper, toJsonFunction, modelFilter, extendedText -> + writer.write("=== Core\n\n") + model.entries("Core").findAll(modelFilter).each { + writer.write(toJsonFunction(it.getObject(), it.getTitle(), mapper, it.getDescription())) + } + + writer.write("\n") + writer.write("=== Graph Structure\n\n") + model.entries("Graph Structure").findAll(modelFilter).each { + writer.write(toJsonFunction(it.getObject(), it.getTitle(), mapper, it.getDescription())) + } + + writer.write("\n") + writer.write("=== Graph Process\n\n") + model.entries("Graph Process").findAll(modelFilter).each { + writer.write(toJsonFunction(it.getObject(), it.getTitle(), mapper, it.getDescription())) + } + + writer.write("\n") + writer.write("=== RequestMessage\n\n") + model.entries("RequestMessage").findAll(modelFilter).each { + writer.write(toJsonFunction(it.getObject(), it.getTitle(), mapper, it.getDescription())) + } + + writer.write("\n") + writer.write("=== ResponseMessage\n\n") + model.entries("ResponseMessage").findAll(modelFilter).each { + writer.write(toJsonFunction(it.getObject(), it.getTitle(), mapper, it.getDescription())) + } + + writer.write("\n") + writer.write("=== Extended\n\n") + writer.write(extendedText) + model.entries("Extended").findAll(modelFilter).each { + writer.write(toJsonFunction(it.getObject(), it.getTitle(), mapper, it.getDescription())) + } +} + +mapper = GraphSONMapper.build(). + addRegistry(TinkerIoRegistryV2d0.instance()). + typeInfo(TypeInfo.PARTIAL_TYPES). + addCustomModule(GraphSONXModuleV2d0.build().create(false)). + addCustomModule(new org.apache.tinkerpop.gremlin.driver.ser.AbstractGraphSONMessageSerializerV2d0.GremlinServerModule()). + version(GraphSONVersion.V2_0).create().createMapper() + +v2ExtendedDescription = """Note that the "extended" types require the addition of the separate `GraphSONXModuleV2d0` module as follows: + +[source,java] +---- +mapper = GraphSONMapper.build(). + typeInfo(TypeInfo.PARTIAL_TYPES). + addCustomModule(GraphSONXModuleV2d0.build().create(false)). + version(GraphSONVersion.V2_0).create().createMapper() +---- + +""" + +file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-partial.txt") +if (file.exists()) file.delete() +file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_3_1)}, v2ExtendedDescription) } + +mapper = GraphSONMapper.build(). + addRegistry(TinkerIoRegistryV2d0.instance()). + typeInfo(TypeInfo.NO_TYPES). + addCustomModule(GraphSONXModuleV2d0.build().create(false)). + addCustomModule(new org.apache.tinkerpop.gremlin.driver.ser.AbstractGraphSONMessageSerializerV2d0.GremlinServerModule()). + version(GraphSONVersion.V2_0).create().createMapper() + +file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-no-type.txt") +if (file.exists()) file.delete() +file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0NoTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_NO_TYPE_3_3_1)}, v2ExtendedDescription) } + +mapper = GraphSONMapper.build(). + addRegistry(TinkerIoRegistryV2d0.instance()). + addCustomModule(GraphSONXModuleV2d0.build().create(false)). + addCustomModule(new org.apache.tinkerpop.gremlin.driver.ser.AbstractGraphSONMessageSerializerV2d0.GremlinServerModule()). + version(GraphSONVersion.V3_0).create().createMapper() + +v3ExtendedDescription = """Note that the "extended" types require the addition of the separate `GraphSONXModuleV3d0` module as follows: + +[source,java] +---- +mapper = GraphSONMapper.build(). + typeInfo(TypeInfo.PARTIAL_TYPES). + addCustomModule(GraphSONXModuleV3d0.build().create(false)). + version(GraphSONVersion.V3_0).create().createMapper() +---- + +""" + +file = new File("${projectBuildDir}/dev-docs/out-graphson-3d0.txt") +if (file.exists()) file.delete() +file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV3d0, {it.isCompatibleWith(GraphSONCompatibility.V3D0_PARTIAL_3_3_1)}, v3ExtendedDescription) } + +def ver = "_" + "${projectVersion}".replace(".","_").replace("-SNAPSHOT","") +def target = "${projectBaseDir}/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/" + ver +def targetDir = new File(target) +if (!targetDir.exists()) targetDir.mkdirs() +new File("${projectBuildDir}/test-case-data/io/graphson/").listFiles().each { + def copyTo = new File(target + "/" + it.name) + if (copyTo.exists()) copyTo.delete() + Files.copy(it.toPath(), new File(target + "/" + it.name).toPath()) +} http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/scripts/generate-gryo-resources.groovy ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/scripts/generate-gryo-resources.groovy b/gremlin-tools/gremlin-io-test/scripts/generate-gryo-resources.groovy new file mode 100644 index 0000000..124e67f --- /dev/null +++ b/gremlin-tools/gremlin-io-test/scripts/generate-gryo-resources.groovy @@ -0,0 +1,91 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import org.apache.tinkerpop.shaded.kryo.io.Output +import org.apache.tinkerpop.gremlin.tinkergraph.structure.* +import org.apache.tinkerpop.gremlin.structure.* +import org.apache.tinkerpop.gremlin.structure.io.gryo.* +import org.apache.tinkerpop.gremlin.structure.io.* +import org.apache.commons.configuration.BaseConfiguration + +new File("${projectBuildDir}/dev-docs/").mkdirs() +new File("${projectBuildDir}/test-case-data/io/gryo").mkdirs() + +conf = new BaseConfiguration() +conf.setProperty(TinkerGraph.GREMLIN_TINKERGRAPH_DEFAULT_VERTEX_PROPERTY_CARDINALITY, VertexProperty.Cardinality.list.name()) +graph = TinkerGraph.open(conf) +TinkerFactory.generateTheCrew(graph) +g = graph.traversal() + +model = Model.instance() + +toGryo = { o, type, mapper, suffix = "" -> + def fileToWriteTo = new File("${projectBuildDir}/test-case-data/io/gryo/" + type.title.toLowerCase().replace(" ","") + "-" + suffix + ".kryo") + if (fileToWriteTo.exists()) fileToWriteTo.delete() + try { + final Output out = new Output(new FileOutputStream(fileToWriteTo)) + mapper.writeObject(out, o) + out.close() + } catch (Exception ex) { + // some v1 gryo is not easily testable (i.e. RequestMessage) because it is has external serializers that + // don' get registered with GryoMapper. those cases can be ignored. + if (type.isCompatibleWith(GryoCompatibility.V1D0_3_3_0)) + throw ex + else + fileToWriteTo.delete() + } +} + +toGryoV1d0 = { o, type, mapper -> + toGryo(o, type, mapper, "v1d0") +} + +toGryoV3d0 = { o, type, mapper -> + toGryo(o, type, mapper, "v3d0") +} + +writeSupportedObjects = { mapper, toGryoFunction -> + model.entries().findAll{it.hasGryoCompatibility()}.each { + toGryoFunction(it.getObject(), it, mapper) + } +} + +mapper = GryoMapper.build(). + version(GryoVersion.V1_0). + addRegistry(TinkerIoRegistryV2d0.instance()). + create().createMapper() + +writeSupportedObjects(mapper, toGryoV1d0) + +mapper = GryoMapper.build(). + version(GryoVersion.V3_0). + addRegistry(TinkerIoRegistryV2d0.instance()). + create().createMapper() + +writeSupportedObjects(mapper, toGryoV3d0) + +def ver = "_" + "${projectVersion}".replace(".","_").replace("-SNAPSHOT","") +def target = "${projectBaseDir}/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/gryo/" + ver +def targetDir = new File(target) +if (!targetDir.exists()) targetDir.mkdirs() +new File("${projectBuildDir}/test-case-data/io/gryo/").listFiles().each { + def copyTo = new File(target + "/" + it.name) + if (copyTo.exists()) copyTo.delete() + java.nio.file.Files.copy(it.toPath(), new File(target + "/" + it.name).toPath()) +} http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/Model.java ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/Model.java b/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/Model.java index e10dc11..f740176 100644 --- a/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/Model.java +++ b/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/Model.java @@ -69,6 +69,7 @@ import java.util.Collection; import java.util.Collections; import java.util.Date; import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Optional; @@ -104,6 +105,7 @@ public class Model { final Compatibility[] noTypeGraphSONPlusGryo3_2_3 = Compatibilities.with(GryoCompatibility.class).beforeRelease("3.2.4").join(Compatibilities.UNTYPED_GRAPHSON).matchToArray(); final Compatibility[] noTypeGraphSONPlusGryo3_3_0 = Compatibilities.with(GryoCompatibility.class).beforeRelease("3.3.0").join(Compatibilities.UNTYPED_GRAPHSON).matchToArray(); + final Compatibility[] noGraphSONBeforeV3 = Compatibilities.with(GraphSONCompatibility.class).configuredAs(".*v2d0-partial|v1d0|v2d0-no-types").matchToArray(); // IMPORTANT - the "title" or name of the Entry needs to be unique @@ -113,7 +115,14 @@ public class Model { addCoreEntry(100.00d, "Double"); addCoreEntry(100.00f, "Float", "", Compatibilities.UNTYPED_GRAPHSON.matchToArray()); addCoreEntry(100, "Integer"); + addCoreEntry(Arrays.asList(1,"person", true), "List", "List is used to distinguish between different collection types as JSON is not explicit enough for all of Gremlin's requirements.", noGraphSONBeforeV3); addCoreEntry(100L, "Long", "", Compatibilities.UNTYPED_GRAPHSON.matchToArray()); + final Map<Object,Object> map = new HashMap<>(); + map.put("test", 123); + map.put(new Date(1481750076295L), "red"); + map.put(Arrays.asList(1,2,3), new Date(1481750076295L)); + addCoreEntry(map, "Map", "Map is redefined so that to provide the ability to allow for non-String keys, which is not possible in JSON.", noGraphSONBeforeV3); + addCoreEntry(new HashSet<>(Arrays.asList(1,"person", true)), "Set", "Allows a JSON collection to behave as a Set.", noGraphSONBeforeV3); // Timestamp was added to Gryo 1.0 as of 3.2.4. It was not supported in 3.2.3. addCoreEntry(new java.sql.Timestamp(1481750076295L), "Timestamp", "", noTypeGraphSONPlusGryo3_2_3); addCoreEntry(UUID.fromString("41d2e28a-20a4-4ab0-b379-d810dede3786"), "UUID"); http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONCompatibility.java ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONCompatibility.java b/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONCompatibility.java index fa98828..4ecaaf6 100644 --- a/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONCompatibility.java +++ b/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONCompatibility.java @@ -37,10 +37,17 @@ public enum GraphSONCompatibility implements Compatibility { V1D0_3_2_5("3.2.5", "1.0", "v1d0"), V2D0_PARTIAL_3_2_5("3.2.5", "2.0", "v2d0-partial"), V2D0_NO_TYPE_3_2_5("3.2.5", "2.0", "v2d0-no-types"), - V1D0_3_3_0("3.3.0", "2.0", "v1d0"), + V1D0_3_2_6("3.2.6", "1.0", "v1d0"), + V2D0_PARTIAL_3_2_6("3.2.6", "2.0", "v2d0-partial"), + V2D0_NO_TYPE_3_2_6("3.2.6", "2.0", "v2d0-no-types"), + V1D0_3_3_0("3.3.0", "1.0", "v1d0"), V2D0_PARTIAL_3_3_0("3.3.0", "2.0", "v2d0-partial"), V2D0_NO_TYPE_3_3_0("3.3.0", "2.0", "v2d0-no-types"), - V3D0_PARTIAL_3_3_0("3.3.0", "3.0", "v3d0"); + V3D0_PARTIAL_3_3_0("3.3.0", "3.0", "v3d0"), + V1D0_3_3_1("3.3.1", "1.0", "v1d0"), + V2D0_PARTIAL_3_3_1("3.3.1", "2.0", "v2d0-partial"), + V2D0_NO_TYPE_3_3_1("3.3.1", "2.0", "v2d0-no-types"), + V3D0_PARTIAL_3_3_1("3.3.1", "3.0", "v3d0"); private static final String SEP = File.separator; http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoCompatibility.java ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoCompatibility.java b/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoCompatibility.java index 2c536e8..2ae2cd4 100644 --- a/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoCompatibility.java +++ b/gremlin-tools/gremlin-io-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoCompatibility.java @@ -47,8 +47,12 @@ public enum GryoCompatibility implements Compatibility { V1D0_3_2_3("3.2.3", "1.0", "v1d0"), V1D0_3_2_4("3.2.4", "1.0", "v1d0"), V1D0_3_2_5("3.2.5", "1.0", "v1d0"), + V1D0_3_2_6("3.2.6", "1.0", "v1d0"), + V1D0_3_2_7("3.2.7", "1.0", "v1d0"), V1D0_3_3_0("3.3.0", "1.0", "v1d0"), - V3D0_3_3_0("3.3.0", "3.0", "v3d0"); + V3D0_3_3_0("3.3.0", "3.0", "v3d0"), + V1D0_3_3_1("3.3.0", "1.0", "v1d0"), + V3D0_3_3_1("3.3.1", "3.0", "v3d0"); private static final String SEP = File.separator; http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/java/org/apache/tinkerpop/gremlin/structure/io/AbstractTypedCompatibilityTest.java ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/java/org/apache/tinkerpop/gremlin/structure/io/AbstractTypedCompatibilityTest.java b/gremlin-tools/gremlin-io-test/src/test/java/org/apache/tinkerpop/gremlin/structure/io/AbstractTypedCompatibilityTest.java index b649258..87f8d70 100644 --- a/gremlin-tools/gremlin-io-test/src/test/java/org/apache/tinkerpop/gremlin/structure/io/AbstractTypedCompatibilityTest.java +++ b/gremlin-tools/gremlin-io-test/src/test/java/org/apache/tinkerpop/gremlin/structure/io/AbstractTypedCompatibilityTest.java @@ -62,11 +62,15 @@ import java.time.Year; import java.time.YearMonth; import java.time.ZoneOffset; import java.time.ZonedDateTime; +import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Date; import java.util.HashMap; +import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import java.util.UUID; import java.util.concurrent.TimeUnit; @@ -461,6 +465,32 @@ public abstract class AbstractTypedCompatibilityTest extends AbstractCompatibili } @Test + public void shouldReadWriteList() throws Exception { + final String resourceName = "list"; + assumeCompatibility(resourceName); + + final List resource = findModelEntryObject(resourceName); + final List fromStatic = read(getCompatibility().readFromResource(resourceName), List.class); + final List recycled = read(write(fromStatic, List.class), List.class); + assertEquals(fromStatic, recycled); + assertEquals(resource, fromStatic); + assertEquals(resource, recycled); + } + + @Test + public void shouldReadWriteMap() throws Exception { + final String resourceName = "map"; + assumeCompatibility(resourceName); + + final Map resource = findModelEntryObject(resourceName); + final Map fromStatic = read(getCompatibility().readFromResource(resourceName), Map.class); + final Map recycled = read(write(fromStatic, Map.class), Map.class); + assertEquals(fromStatic, recycled); + assertEquals(resource, fromStatic); + assertEquals(resource, recycled); + } + + @Test public void shouldReadWriteMetrics() throws Exception { final String resourceName = "metrics"; assumeCompatibility(resourceName); @@ -745,6 +775,19 @@ public abstract class AbstractTypedCompatibilityTest extends AbstractCompatibili } @Test + public void shouldReadWriteSet() throws Exception { + final String resourceName = "set"; + assumeCompatibility(resourceName); + + final Set resource = findModelEntryObject(resourceName); + final Set fromStatic = read(getCompatibility().readFromResource(resourceName), Set.class); + final Set recycled = read(write(fromStatic, Set.class), Set.class); + assertEquals(fromStatic, recycled); + assertEquals(resource, fromStatic); + assertEquals(resource, recycled); + } + + @Test public void shouldReadWriteShort() throws Exception { final String resourceName = "short"; assumeCompatibility(resourceName); http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONTypedCompatibilityTest.java ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONTypedCompatibilityTest.java b/gremlin-tools/gremlin-io-test/src/test/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONTypedCompatibilityTest.java index b2c63da..e73793f 100644 --- a/gremlin-tools/gremlin-io-test/src/test/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONTypedCompatibilityTest.java +++ b/gremlin-tools/gremlin-io-test/src/test/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONTypedCompatibilityTest.java @@ -54,7 +54,9 @@ public class GraphSONTypedCompatibilityTest extends AbstractTypedCompatibilityTe {GraphSONCompatibility.V2D0_PARTIAL_3_2_4, mapperV2 }, {GraphSONCompatibility.V2D0_PARTIAL_3_2_5, mapperV2 }, {GraphSONCompatibility.V2D0_PARTIAL_3_3_0, mapperV2 }, - {GraphSONCompatibility.V3D0_PARTIAL_3_3_0, mapperV3 }}); + {GraphSONCompatibility.V3D0_PARTIAL_3_3_0, mapperV3 }, + {GraphSONCompatibility.V2D0_PARTIAL_3_3_1, mapperV2 }, + {GraphSONCompatibility.V3D0_PARTIAL_3_3_1, mapperV3 }}); } @Parameterized.Parameter(value = 0) http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_0/list-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_0/list-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_0/list-v3d0.json new file mode 100644 index 0000000..b714e2d --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_0/list-v3d0.json @@ -0,0 +1,7 @@ +{ + "@type" : "g:List", + "@value" : [ { + "@type" : "g:Int32", + "@value" : 1 + }, "person", true ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_0/map-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_0/map-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_0/map-v3d0.json new file mode 100644 index 0000000..7ad59c9 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_0/map-v3d0.json @@ -0,0 +1,25 @@ +{ + "@type" : "g:Map", + "@value" : [ { + "@type" : "g:Date", + "@value" : 1481750076295 + }, "red", { + "@type" : "g:List", + "@value" : [ { + "@type" : "g:Int32", + "@value" : 1 + }, { + "@type" : "g:Int32", + "@value" : 2 + }, { + "@type" : "g:Int32", + "@value" : 3 + } ] + }, { + "@type" : "g:Date", + "@value" : 1481750076295 + }, "test", { + "@type" : "g:Int32", + "@value" : 123 + } ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_0/set-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_0/set-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_0/set-v3d0.json new file mode 100644 index 0000000..32deea2 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_0/set-v3d0.json @@ -0,0 +1,7 @@ +{ + "@type" : "g:Set", + "@value" : [ { + "@type" : "g:Int32", + "@value" : 1 + }, "person", true ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v1d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v1d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v1d0.json new file mode 100644 index 0000000..8c5b82c --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v1d0.json @@ -0,0 +1,12 @@ +{ + "requestId" : "41d2e28a-20a4-4ab0-b379-d810dede3786", + "status" : { + "message" : "", + "code" : 407, + "attributes" : { } + }, + "result" : { + "data" : null, + "meta" : { } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v2d0-no-types.json new file mode 100644 index 0000000..8c5b82c --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v2d0-no-types.json @@ -0,0 +1,12 @@ +{ + "requestId" : "41d2e28a-20a4-4ab0-b379-d810dede3786", + "status" : { + "message" : "", + "code" : 407, + "attributes" : { } + }, + "result" : { + "data" : null, + "meta" : { } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v2d0-partial.json new file mode 100644 index 0000000..8c5b82c --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v2d0-partial.json @@ -0,0 +1,12 @@ +{ + "requestId" : "41d2e28a-20a4-4ab0-b379-d810dede3786", + "status" : { + "message" : "", + "code" : 407, + "attributes" : { } + }, + "result" : { + "data" : null, + "meta" : { } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v3d0.json new file mode 100644 index 0000000..d1734c6 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationchallenge-v3d0.json @@ -0,0 +1,18 @@ +{ + "requestId" : "41d2e28a-20a4-4ab0-b379-d810dede3786", + "status" : { + "message" : "", + "code" : 407, + "attributes" : { + "@type" : "g:Map", + "@value" : [ ] + } + }, + "result" : { + "data" : null, + "meta" : { + "@type" : "g:Map", + "@value" : [ ] + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v1d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v1d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v1d0.json new file mode 100644 index 0000000..838e1fd --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v1d0.json @@ -0,0 +1,9 @@ +{ + "requestId" : "cb682578-9d92-4499-9ebc-5c6aa73c5397", + "op" : "authentication", + "processor" : "", + "args" : { + "saslMechanism" : "PLAIN", + "sasl" : "AHN0ZXBocGhlbgBwYXNzd29yZA==" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v2d0-no-types.json new file mode 100644 index 0000000..838e1fd --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v2d0-no-types.json @@ -0,0 +1,9 @@ +{ + "requestId" : "cb682578-9d92-4499-9ebc-5c6aa73c5397", + "op" : "authentication", + "processor" : "", + "args" : { + "saslMechanism" : "PLAIN", + "sasl" : "AHN0ZXBocGhlbgBwYXNzd29yZA==" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v2d0-partial.json new file mode 100644 index 0000000..838e1fd --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v2d0-partial.json @@ -0,0 +1,9 @@ +{ + "requestId" : "cb682578-9d92-4499-9ebc-5c6aa73c5397", + "op" : "authentication", + "processor" : "", + "args" : { + "saslMechanism" : "PLAIN", + "sasl" : "AHN0ZXBocGhlbgBwYXNzd29yZA==" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v3d0.json new file mode 100644 index 0000000..daceca2 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/authenticationresponse-v3d0.json @@ -0,0 +1,9 @@ +{ + "requestId" : "cb682578-9d92-4499-9ebc-5c6aa73c5397", + "op" : "authentication", + "processor" : "", + "args" : { + "@type" : "g:Map", + "@value" : [ "saslMechanism", "PLAIN", "sasl", "AHN0ZXBocGhlbgBwYXNzd29yZA==" ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/barrier-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/barrier-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/barrier-v2d0-no-types.json new file mode 100644 index 0000000..7dd6c03 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/barrier-v2d0-no-types.json @@ -0,0 +1 @@ +"normSack" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/barrier-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/barrier-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/barrier-v2d0-partial.json new file mode 100644 index 0000000..7ddccdd --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/barrier-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Barrier", + "@value" : "normSack" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/barrier-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/barrier-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/barrier-v3d0.json new file mode 100644 index 0000000..7ddccdd --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/barrier-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Barrier", + "@value" : "normSack" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bigdecimal-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bigdecimal-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bigdecimal-v2d0-no-types.json new file mode 100644 index 0000000..7914536 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bigdecimal-v2d0-no-types.json @@ -0,0 +1 @@ +123456789987654321123456789987654321 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bigdecimal-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bigdecimal-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bigdecimal-v2d0-partial.json new file mode 100644 index 0000000..475337c --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bigdecimal-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "gx:BigDecimal", + "@value" : 123456789987654321123456789987654321 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bigdecimal-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bigdecimal-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bigdecimal-v3d0.json new file mode 100644 index 0000000..475337c --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bigdecimal-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "gx:BigDecimal", + "@value" : 123456789987654321123456789987654321 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/biginteger-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/biginteger-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/biginteger-v2d0-no-types.json new file mode 100644 index 0000000..7914536 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/biginteger-v2d0-no-types.json @@ -0,0 +1 @@ +123456789987654321123456789987654321 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/biginteger-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/biginteger-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/biginteger-v2d0-partial.json new file mode 100644 index 0000000..58e6114 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/biginteger-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "gx:BigInteger", + "@value" : 123456789987654321123456789987654321 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/biginteger-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/biginteger-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/biginteger-v3d0.json new file mode 100644 index 0000000..58e6114 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/biginteger-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "gx:BigInteger", + "@value" : 123456789987654321123456789987654321 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/binding-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/binding-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/binding-v2d0-no-types.json new file mode 100644 index 0000000..661b153 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/binding-v2d0-no-types.json @@ -0,0 +1,4 @@ +{ + "key" : "x", + "value" : 1 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/binding-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/binding-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/binding-v2d0-partial.json new file mode 100644 index 0000000..579b8c7 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/binding-v2d0-partial.json @@ -0,0 +1,10 @@ +{ + "@type" : "g:Binding", + "@value" : { + "key" : "x", + "value" : { + "@type" : "g:Int32", + "@value" : 1 + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/binding-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/binding-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/binding-v3d0.json new file mode 100644 index 0000000..579b8c7 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/binding-v3d0.json @@ -0,0 +1,10 @@ +{ + "@type" : "g:Binding", + "@value" : { + "key" : "x", + "value" : { + "@type" : "g:Int32", + "@value" : 1 + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/byte-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/byte-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/byte-v2d0-no-types.json new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/byte-v2d0-no-types.json @@ -0,0 +1 @@ +1 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/byte-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/byte-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/byte-v2d0-partial.json new file mode 100644 index 0000000..979625b --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/byte-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "gx:Byte", + "@value" : 1 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/byte-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/byte-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/byte-v3d0.json new file mode 100644 index 0000000..979625b --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/byte-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "gx:Byte", + "@value" : 1 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytebuffer-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytebuffer-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytebuffer-v2d0-no-types.json new file mode 100644 index 0000000..e0046e9 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytebuffer-v2d0-no-types.json @@ -0,0 +1 @@ +"c29tZSBieXRlcyBmb3IgeW91" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytebuffer-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytebuffer-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytebuffer-v2d0-partial.json new file mode 100644 index 0000000..5724115 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytebuffer-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "gx:ByteBuffer", + "@value" : "c29tZSBieXRlcyBmb3IgeW91" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytebuffer-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytebuffer-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytebuffer-v3d0.json new file mode 100644 index 0000000..5724115 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytebuffer-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "gx:ByteBuffer", + "@value" : "c29tZSBieXRlcyBmb3IgeW91" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytecode-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytecode-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytecode-v2d0-no-types.json new file mode 100644 index 0000000..6088abf --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytecode-v2d0-no-types.json @@ -0,0 +1,3 @@ +{ + "step" : [ [ "V" ], [ "hasLabel", "person" ], [ "out" ], [ "in" ], [ "tree" ] ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytecode-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytecode-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytecode-v2d0-partial.json new file mode 100644 index 0000000..269d277 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytecode-v2d0-partial.json @@ -0,0 +1,6 @@ +{ + "@type" : "g:Bytecode", + "@value" : { + "step" : [ [ "V" ], [ "hasLabel", "person" ], [ "out" ], [ "in" ], [ "tree" ] ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytecode-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytecode-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytecode-v3d0.json new file mode 100644 index 0000000..269d277 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/bytecode-v3d0.json @@ -0,0 +1,6 @@ +{ + "@type" : "g:Bytecode", + "@value" : { + "step" : [ [ "V" ], [ "hasLabel", "person" ], [ "out" ], [ "in" ], [ "tree" ] ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/cardinality-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/cardinality-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/cardinality-v2d0-no-types.json new file mode 100644 index 0000000..0617890 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/cardinality-v2d0-no-types.json @@ -0,0 +1 @@ +"list" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/cardinality-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/cardinality-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/cardinality-v2d0-partial.json new file mode 100644 index 0000000..834e64e --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/cardinality-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Cardinality", + "@value" : "list" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/cardinality-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/cardinality-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/cardinality-v3d0.json new file mode 100644 index 0000000..834e64e --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/cardinality-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Cardinality", + "@value" : "list" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/char-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/char-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/char-v2d0-no-types.json new file mode 100644 index 0000000..3403a0c --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/char-v2d0-no-types.json @@ -0,0 +1 @@ +"x" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/char-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/char-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/char-v2d0-partial.json new file mode 100644 index 0000000..8f27e9d --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/char-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "gx:Char", + "@value" : "x" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/char-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/char-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/char-v3d0.json new file mode 100644 index 0000000..8f27e9d --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/char-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "gx:Char", + "@value" : "x" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/class-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/class-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/class-v2d0-no-types.json new file mode 100644 index 0000000..2fbd64d --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/class-v2d0-no-types.json @@ -0,0 +1 @@ +"java.io.File" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/class-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/class-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/class-v2d0-partial.json new file mode 100644 index 0000000..80f15a2 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/class-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Class", + "@value" : "java.io.File" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/class-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/class-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/class-v3d0.json new file mode 100644 index 0000000..80f15a2 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/class-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Class", + "@value" : "java.io.File" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/column-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/column-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/column-v2d0-no-types.json new file mode 100644 index 0000000..02597c9 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/column-v2d0-no-types.json @@ -0,0 +1 @@ +"keys" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/column-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/column-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/column-v2d0-partial.json new file mode 100644 index 0000000..0b3a56e --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/column-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Column", + "@value" : "keys" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/column-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/column-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/column-v3d0.json new file mode 100644 index 0000000..0b3a56e --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/column-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Column", + "@value" : "keys" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/date-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/date-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/date-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_3_1/date-v2d0-no-types.json @@ -0,0 +1 @@ +1481750076295 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/date-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/date-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/date-v2d0-partial.json new file mode 100644 index 0000000..cf4007a --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/date-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Date", + "@value" : 1481750076295 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/date-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/date-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/date-v3d0.json new file mode 100644 index 0000000..cf4007a --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/date-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Date", + "@value" : 1481750076295 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/direction-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/direction-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/direction-v2d0-no-types.json new file mode 100644 index 0000000..f6d62d7 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/direction-v2d0-no-types.json @@ -0,0 +1 @@ +"OUT" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/direction-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/direction-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/direction-v2d0-partial.json new file mode 100644 index 0000000..78cb7e4 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/direction-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Direction", + "@value" : "OUT" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/direction-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/direction-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/direction-v3d0.json new file mode 100644 index 0000000..78cb7e4 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/direction-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Direction", + "@value" : "OUT" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/double-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/double-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/double-v2d0-no-types.json new file mode 100644 index 0000000..e772e62 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/double-v2d0-no-types.json @@ -0,0 +1 @@ +100.0 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/double-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/double-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/double-v2d0-partial.json new file mode 100644 index 0000000..9ae4964 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/double-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Double", + "@value" : 100.0 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/double-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/double-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/double-v3d0.json new file mode 100644 index 0000000..9ae4964 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/double-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "g:Double", + "@value" : 100.0 +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/duration-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/duration-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/duration-v2d0-no-types.json new file mode 100644 index 0000000..0e15a3c --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/duration-v2d0-no-types.json @@ -0,0 +1 @@ +"PT120H" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/duration-v2d0-partial.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/duration-v2d0-partial.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/duration-v2d0-partial.json new file mode 100644 index 0000000..05c0ce9 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/duration-v2d0-partial.json @@ -0,0 +1,4 @@ +{ + "@type" : "gx:Duration", + "@value" : "PT120H" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/duration-v3d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/duration-v3d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/duration-v3d0.json new file mode 100644 index 0000000..05c0ce9 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/duration-v3d0.json @@ -0,0 +1,4 @@ +{ + "@type" : "gx:Duration", + "@value" : "PT120H" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/edge-v1d0.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/edge-v1d0.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/edge-v1d0.json new file mode 100644 index 0000000..0f7f168 --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/edge-v1d0.json @@ -0,0 +1,12 @@ +{ + "id" : 13, + "label" : "develops", + "type" : "edge", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 1, + "properties" : { + "since" : 2009 + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4bcf8ae5/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/edge-v2d0-no-types.json ---------------------------------------------------------------------- diff --git a/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/edge-v2d0-no-types.json b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/edge-v2d0-no-types.json new file mode 100644 index 0000000..a8e73db --- /dev/null +++ b/gremlin-tools/gremlin-io-test/src/test/resources/org/apache/tinkerpop/gremlin/structure/io/graphson/_3_3_1/edge-v2d0-no-types.json @@ -0,0 +1,14 @@ +{ + "id" : 13, + "label" : "develops", + "inVLabel" : "software", + "outVLabel" : "person", + "inV" : 10, + "outV" : 1, + "properties" : { + "since" : { + "key" : "since", + "value" : 2009 + } + } +} \ No newline at end of file
