Json loading with gremlin server in titan graph database


I am trying to load Json file into the Titan graph database using gremlin query I got the following queries

graph = TitanFactory.open('conf/titan-cassandra-es.properties') g = graph.traversal() g.loadGraphSON('tjson.json.json')

I am getting error like


No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource.loadGraphSon() is applicable for argument types: (java.lang.String) values: [tjson.json]


<strong>question is : How to load the Json file</strong>


I assume that you are using a newer version of Titan - meaning 1.0 or greater. If so, that syntax - g.loadGraphSON('tjson.json.json') is no longer supported. That's the old TinkerPop 2.x syntax. Titan 1.0 and greater supports TinkerPop 3.x. You can read about the revised syntax <a href="http://tinkerpop.apache.org/docs/current/reference/#graphson-reader-writer" rel="nofollow">here</a> but it basically looks like this now:



  • Json loading with gremlin server in titan graph database
  • Xtext: define 2 DSL's in one project
  • Possible ways to pass argument of different type to case class
  • Evaluate string as condition PHP
  • Possible to get the hostname of an IP using SystemConfiguration?
  • Play framework: Add routes from sub-projects dynamically
  • Elasticsearch: Aggregation on filtered nested objects to find unique values
  • Press javascript button on webpage using curl & bash
  • How can I file an issue for SonarQube Eclipse plugin
  • Best way to set reusable property in Jenkinsfile
  • Compass gemfile syntax error on Ubuntu 12.10, Ruby 1.9.3
  • JavaFX support for microphone audio capture
  • How can I get syntax highlighting for my format in an Eclipse text editor?
  • API for generating Jmeter test plans?
  • Why should I ever use CSS selectors as opposed to XPath for automated testing?
  • Can Flyway find out and generate migration files from datamodel?
  • How gradle dependencies work
  • iterator for vector of structures in thrust
  • Gradle: Could not create an instance of type com.android.build.gradle.internal.dsl.SigningConfig_Dec
  • something like gimp “fuzzy select” in python/PIL
  • Prolog binary search tree test - unwanted parents' parent node comparison
  • Outlook Com not registered
  • With one EDMX file use multiple connection strings that relate to multiple databases
  • How do I get an Option instead of an Option from a Diesel query which only returns 1 or 0 records?
  • Using Paypal Pro in Omnipay
  • How to use animated gif in Firemonkey?
  • How do I exclude a dependency in provided scope when running in Maven test scope?
  • Play WS (2.2.1): post/put large request
  • Q promise. Difference between .when and .then
  • Different response to non-authenticated users and AJAX calls
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • C# - Getting references of reference
  • Hits per day in Google Big Query
  • Understanding cpu registers
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • How do I configure my settings file to work with unit tests?
  • Linking SubReports Without LinkChild/LinkMaster
  • Is it possible to post an object from jquery to bottle.py?
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • How do I use LINQ to get all the Items that have a particular SubItem?