1

ダウンロードtitan-server-0.4.4.zipして解凍し、実行しました:

$ bin/titan.sh start

Cassandraこれにより、との両方が開始されましTitan + Rexsterた。ここで、Python ソース コードの Bulbs から作成したいアプリケーション (たとえば「ggg」) 用の新しいグラフを作成したいと考えています。これは私がpython2.7コンソールで試したものです:

>>> from bulbs.titan import Graph, Config
>>> config = Config('/home/kevin/ggg') 
>>> g = Graph(config)     # Hoping that this will create all the graph related files

ここで、rexster の Web インターフェイスにアクセスすると、次の名前のグラフが 1 つしか表示されませんでした。graph

{"version":"2.4.0","name":"Rexster: A Graph Server","graphs":["graph"],
"queryTime":0.567623,"upTime":"0[d]:05[h]:43[m]:05[s]"}

私が間違っていることや欠けていることはありますか? ドキュメントを見てみましたが、これに役立つものは見つかりませんでした。

御時間ありがとうございます。

4

2 に答える 2

1

新しいグラフについて通知するには、rexster の構成ファイルを編集する必要があります。これは私の config/rexster.xml エントリです

<graph-name>productionDB</graph-name>
  <graphtype>com.thinkaurelius.titan.tinkerpop.rexster.TitanGraphConfiguration</graphtype>
  <graph-location>/db/titan/main</graph-location>
  <graph-read-only>false</graph-read-only>
  <properties>
        <storage.backend>cassandra</storage.backend>
        <storage.hostname>127.0.0.1</storage.hostname>
        <storage.buffer-size>100</storage.buffer-size>
  </properties>
  <extensions>
    <allows>
      <allow>tp:gremlin</allow>
    </allows>
  </extensions>
</graph>
于 2014-07-26T16:39:52.943 に答える