Skip to content

Commit 471ba05

Browse files
committed
added data examples
1 parent 9b50d02 commit 471ba05

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

.doc_gen/metadata/neptune_metadata.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,58 @@ neptune_Hello:
1616
- neptune.java2.hello.main
1717
services:
1818
neptune: {DescribeDBClustersPaginator}
19+
neptune_ExecuteQuery:
20+
languages:
21+
Java:
22+
versions:
23+
- sdk_version: 2
24+
github: javav2/example_code/neptune
25+
sdkguide:
26+
excerpts:
27+
- description:
28+
snippet_tags:
29+
- neptune.java2.graph.execute.main
30+
services:
31+
neptune: {ExecuteQuery}
32+
neptune_CreateGraph:
33+
languages:
34+
Java:
35+
versions:
36+
- sdk_version: 2
37+
github: javav2/example_code/neptune
38+
sdkguide:
39+
excerpts:
40+
- description:
41+
snippet_tags:
42+
- neptune.java2.graph.create.main
43+
services:
44+
neptune: {CreateGraph}
45+
neptune_ExecuteOpenCypherExplainQuery:
46+
languages:
47+
Java:
48+
versions:
49+
- sdk_version: 2
50+
github: javav2/example_code/neptune
51+
sdkguide:
52+
excerpts:
53+
- description:
54+
snippet_tags:
55+
- neptune.java2.data.query.opencypher.main
56+
services:
57+
neptune: {ExecuteOpenCypherExplainQuery}
58+
neptune_ExecuteOpenCypherExplainQuery:
59+
languages:
60+
Java:
61+
versions:
62+
- sdk_version: 2
63+
github: javav2/example_code/neptune
64+
sdkguide:
65+
excerpts:
66+
- description:
67+
snippet_tags:
68+
- neptune.java2.data.query.opencypher.main
69+
services:
70+
neptune: {ExecuteOpenCypherExplainQuery}
1971
neptune_ExecuteGremlinProfileQuery:
2072
languages:
2173
Java:

javav2/example_code/neptune/src/main/java/com/example/neptune/analytics/CreateNeptuneGraphExample.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public static void main(String[] args) {
3939
executeCreateGraph(client, graphName);
4040
}
4141

42+
// snippet-start:[neptune.java2.graph.create.main]
4243
/**
4344
* Executes the process of creating a new Neptune graph.
4445
*
@@ -73,5 +74,6 @@ public static void executeCreateGraph(NeptuneGraphClient client, String graphNam
7374
client.close();
7475
}
7576
}
77+
// snippet-end:[neptune.java2.graph.create.main]
7678
}
7779

javav2/example_code/neptune/src/main/java/com/example/neptune/analytics/NeptuneAnalyticsQueryExample.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public static void main(String[] args) {
6262
executeGremlinProfileQuery(client, graphId);
6363
}
6464

65+
// snippet-start:[neptune.java2.graph.execute.main]
6566
/**
6667
* Executes a Gremlin profile query on the Neptune Analytics graph.
6768
*
@@ -99,5 +100,6 @@ public static void executeGremlinProfileQuery(NeptuneGraphClient client, String
99100
client.close();
100101
}
101102
}
103+
// snippet-end:[neptune.java2.graph.execute.main]
102104
}
103105

0 commit comments

Comments
 (0)