public function renameDatabase()
 {
     $neo = new Neo4JConnector('default', 'http', 'localhost', 7474, 'neo4j', 'aiscu');
     $rec = Request::all();
     $db_id = $rec['db_id'];
     $db_name = $rec['new_name'];
     $database = $neo->renameDatabase($db_id, $db_name);
     return "success";
 }
 public function checkJobStatus()
 {
     set_time_limit(50000);
     $neo = new Neo4JConnector('default', 'http', 'localhost', 7474, 'neo4j', 'aiscu');
     $results = $neo->checkJobStatus();
     return response()->json($results);
 }
 public function findCommunity($id)
 {
     $neo = new Neo4JConnector('default', 'http', 'localhost', 7474, 'neo4j', 'aiscu');
     $selectedNode = Input::get('number');
     $communityID = $neo->findCommunity($id, $selectedNode);
     return response()->json(["communityID" => $communityID]);
 }
Exemplo n.º 4
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     // $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
     $neo = new Neo4JConnector('default', 'http', 'localhost', 7474, 'neo4j', 'aiscu');
     $neo->doByScheduling();
 }