

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# Gremlin を使用した Neptune グラフへのアクセス
<a name="access-graph-gremlin"></a>

Amazon Neptune は Apache TinkerPop および Gremlin と互換性があります。つまり、Neptune DB インスタンスに接続し、Gremlin トラバーサル言語を使用してグラフをクエリできます (Apache TinkerPop [ドキュメント](https://tinkerpop.apache.org/docs/current/reference/#graph)の「グラフ」を参照）。Gremlin の Neptune 実装の相違点については、[Gremlin の標準コンプライアンス](access-graph-gremlin-differences.md)を参照してください。

 Gremlin の*トラバーサル*は、一連の連鎖ステップです。頂点 (またはエッジ) で始まります。各頂点から出ていくエッジに沿って、さらに、これらの頂点から出ていくエッジをたどってグラフを描きます。各ステップはトラバーサルの操作です。詳細については、TinkerPop [ドキュメントの「トラバーサル](https://tinkerpop.apache.org/docs/current/reference/#traversal)」を参照してください。

Neptune エンジンのバージョンによって、サポートされる Gremlin のバージョンは異なります。実行中の Neptune バージョンの[エンジンリリースページ](engine-releases.md)をチェックして、サポートされている Gremlin リリースを確認するか、次の表を参照してください。この表には、さまざまな Neptune エンジンバージョンでサポートされている TinkerPop の最も古いバージョンと最新バージョンが一覧表示されています。


| Neptune エンジンバージョン | 最小 TinkerPop バージョン | 最小 TinkerPop バージョン | 
| --- | --- | --- | 
| `1.3.2.0 and newer` | `3.7.1` | `3.7.3` | 
| `1.3.1.0` | `3.6.2` | `3.6.5` | 
| `1.3.0.0` | `3.6.2` | `3.6.4` | 
| `1.2.1.0 <= 1.2.1.2` | `3.6.2` | `3.6.2` | 
| `1.1.1.0 <= 1.2.0.2` | `3.5.5` | `3.5.6` | 
| `1.1.0.0 and older` | `(deprecated)` | `(deprecated)` | 

TinkerPop クライアントは通常、シリーズ ( `3.6.x`や など`3.7.x`) 内で下位互換性があり、それらの境界を越えて機能することがよくありますが、上記の表では、可能な限り最高のエクスペリエンスと互換性を得るために バージョンの組み合わせを推奨しています。特に明記されていない限り、これらのガイドラインに従い、使用している TinkerPop のバージョンに合わせてクライアントアプリケーションをアップグレードすることをお勧めします。

TinkerPop バージョンをアップグレードするときは、[TinkerPop のアップグレードドキュメント](http://tinkerpop.apache.org/docs/current/upgrade/)を参照することが常に重要です。このドキュメントは、利用できる新機能を特定するだけでなく、アップグレードに近づいたときに注意が必要な問題を特定するのに役立ちます。特に考慮すべき問題として呼び出されない限り、アップグレード後に既存のクエリと機能が機能することを想定する必要があります。最後に、新しい機能を持つようにアップグレードしたバージョンは、Neptune がサポートするバージョン以降のバージョンでは使用できない場合があることに注意してください。

さまざまなプログラミング言語による Gremlin 言語バリアントおよび Gremlin アクセスのサポートがあります。詳細については、TinkerPop ドキュメント[の「On Gremlin Language Variants](https://tinkerpop.apache.org/docs/current/reference/#gremlin-drivers-variants)」を参照してください。

このドキュメントでは、以下のバリアントとプログラミング言語で Neptune にアクセスする方法について説明します。
+ [Gremlin コンソールをセットアップして Neptune DB インスタンスに接続する](access-graph-gremlin-console.md)
+ [HTTPS REST エンドポイントを使用して Neptune DB インスタンスに接続する](access-graph-gremlin-rest.md)
+ [Amazon Neptune で使用する Java ベースの Gremlin クライアント](access-graph-gremlin-client.md)
+ [Python を使用して Neptune DB インスタンスに接続する](access-graph-gremlin-python.md)
+ [.NET を使用して Neptune DB インスタンスに接続する](access-graph-gremlin-dotnet.md)
+ [Node.js を使用して Neptune DB インスタンスに接続する](access-graph-gremlin-node-js.md)
+ [Go を使用して Neptune DB インスタンスに接続する](access-graph-gremlin-go.md)

[SSL/HTTPS を使用した Amazon Neptune データベースへの接続の暗号化](security-ssl.md) で説明されているように、すべての AWS リージョンで Neptune に接続するときには、Transport Layer Security/Secure Sockets Layer (TLS/SSL) を使用する必要があります。

始めるには以下のものが必要です。
+ Neptune DB インスタンス。Neptune DB インスタンスの作成については、[Amazon Neptune クラスターの作成](get-started-create-cluster.md) を参照してください。
+ Neptune DB インスタンスと同じ Virtual Private Cloud (VPC) にある Amazon EC2; インスタンス。

前提条件、ロード形式、およびロードパラメータを含む Neptune へのデータのロードの詳細については、[Amazon Neptune にデータをロードする](load-data.md)を参照してください。

**Topics**
+ [Gremlin コンソールをセットアップして Neptune DB インスタンスに接続する](access-graph-gremlin-console.md)
+ [HTTPS REST エンドポイントを使用して Neptune DB インスタンスに接続する](access-graph-gremlin-rest.md)
+ [Amazon Neptune で使用する Java ベースの Gremlin クライアント](access-graph-gremlin-client.md)
+ [Python を使用して Neptune DB インスタンスに接続する](access-graph-gremlin-python.md)
+ [.NET を使用して Neptune DB インスタンスに接続する](access-graph-gremlin-dotnet.md)
+ [Node.js を使用して Neptune DB インスタンスに接続する](access-graph-gremlin-node-js.md)
+ [Go を使用して Neptune DB インスタンスに接続する](access-graph-gremlin-go.md)
+ [AWS SDK を使用して Gremlin クエリを実行する](access-graph-gremlin-sdk.md)
+ [Gremlin クエリヒント](gremlin-query-hints.md)
+ [Gremlin クエリステータス API](gremlin-api-status.md)
+ [Gremlin クエリのキャンセル](gremlin-api-status-cancel.md)
+ [Gremlin スクリプトベースのセッションのサポート](access-graph-gremlin-sessions.md)
+ [Neptune での Gremlin トランザクション](access-graph-gremlin-transactions.md)
+ [Gremlin を使用したクエリ結果のストリーミング](access-graph-gremlin-streaming.md)
+ [Amazon Neptune で Gremlin API を使用する](gremlin-api-reference.md)
+ [Amazon Neptune Gremlin でクエリ結果をキャッシュする](gremlin-results-cache.md)
+ [Gremlin `mergeV()` および `mergeE()` ステップによる効率的なアップサートの実行](gremlin-efficient-upserts.md)
+ [`fold()/coalesce()/unfold()` による効率的な Gremlin アップサートの実行](gremlin-efficient-upserts-pre-3.6.md)
+ [Gremlin を使用して Neptune クエリ実行を分析する`explain`](gremlin-explain.md)
+ [Gremlin と Neptune DFE クエリエンジンを使用する](gremlin-with-dfe.md)