Exemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     $rec2 = ['oClass' => 'V', 'oData' => ['alloggio' => 'albergo']];
     $rec = Record::fromConfig($rec2);
     $this->first_rec = $this->client->execute('recordCreate', ['cluster_id' => 9, 'record' => $rec]);
     $rec3 = ['oClass' => 'V', 'oData' => ['alloggio' => 'house']];
     $rec = Record::fromConfig($rec3);
     $this->sec_rec = $this->client->execute('recordCreate', ['cluster_id' => 9, 'record' => $rec]);
 }
Exemplo n.º 2
0
 public function setup()
 {
     parent::setUp();
     $this->client->command("create class links extends V");
     $this->client->command("create class sites extends V");
     $this->client->command("create vertex sites set name = 'linkedin', id = 1 ");
     $this->client->command("create vertex sites set name = 'google', id = 2 ");
     $this->client->command("create vertex sites set name = 'github', id = 3 ");
     $this->client->command("create vertex links set name = 'link1', " . "value = " . "'https://github.com/mogui/pyorient/issues', " . "id = 1, siteId = 3");
     $this->client->command("create vertex links set name = 'link2', " . "value = " . "'https://github.com/mogui/pyorient/pulls', " . "id = 2, siteId = 3");
     $this->client->command("create vertex links set name = 'link3', " . "value = " . "'https://github.com/mogui/pyorient/pulse', " . "id = 3, siteId = 3");
     $this->client->command("create vertex links set name = 'link4', " . "value = " . "'https://github.com/mogui/pyorient/graphs', " . "id = 4, siteId = 3");
     $this->client->command("CREATE LINK link TYPE LINKSET FROM links.siteId TO sites.id INVERSE");
 }