Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

Commit 385fe05

Browse files
author
Alexander Patrikalakis
authored
Update README.md to include a checkout step
1 parent 91827a8 commit 385fe05

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

README.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,13 @@ Log out and back in to effect changes on ec2-user.
5151
curl https://raw.githubusercontent.com/awslabs/dynamodb-janusgraph-storage-backend/master/src/test/resources/install-reqs.sh | bash
5252
exit
5353
```
54-
2. Use Docker and Docker Compose to bake DynamoDB Local into a container and start Gremlin Server with the DynamoDB Storage Backend for
55-
JanusGraph installed.
54+
2. Clone the repository and change directories.
55+
56+
```bash
57+
git clone https://github.com/awslabs/dynamodb-janusgraph-storage-backend.git && cd dynamodb-janusgraph-storage-backend
58+
```
59+
3. Use Docker and Docker Compose to bake DynamoDB Local into a container and start Gremlin Server with the DynamoDB
60+
Storage Backend for JanusGraph installed.
5661

5762
```bash
5863
docker build -t awslabs/dynamodblocal ./src/test/resources/dynamodb-local-docker \
@@ -62,53 +67,53 @@ JanusGraph installed.
6267
&& docker-compose -f src/test/resources/docker-compose.yml up -d \
6368
&& docker exec -i -t dynamodb-janusgraph /var/jg/bin/gremlin.sh
6469
```
65-
3. After the Gremlin shell starts, set it up to execute commands remotely.
70+
4. After the Gremlin shell starts, set it up to execute commands remotely.
6671

6772
```groovy
6873
:remote connect tinkerpop.server conf/remote.yaml session
6974
:remote console
7075
```
71-
4. Load the first 100 lines of the Marvel graph using the Gremlin shell.
76+
5. Load the first 100 lines of the Marvel graph using the Gremlin shell.
7277

7378
```groovy
7479
com.amazon.janusgraph.example.MarvelGraphFactory.load(graph, 100, false)
7580
```
76-
5. Print the characters and the comic-books they appeared in where the
81+
6. Print the characters and the comic-books they appeared in where the
7782
characters had a weapon that was a shield or claws.
7883

7984
```groovy
8085
g.V().has('weapon', within('shield','claws')).as('weapon', 'character', 'book').select('weapon', 'character','book').by('weapon').by('character').by(__.out('appeared').values('comic-book'))
8186
```
82-
6. Print the characters and the comic-books they appeared in where the
87+
7. Print the characters and the comic-books they appeared in where the
8388
characters had a weapon that was not a shield or claws.
8489

8590
```groovy
8691
g.V().has('weapon').has('weapon', without('shield','claws')).as('weapon', 'character', 'book').select('weapon', 'character','book').by('weapon').by('character').by(__.out('appeared').values('comic-book'))
8792
```
88-
7. Print a sorted list of the characters that appear in comic-book AVF 4.
93+
8. Print a sorted list of the characters that appear in comic-book AVF 4.
8994

9095
```groovy
9196
g.V().has('comic-book', 'AVF 4').in('appeared').values('character').order()
9297
```
93-
8. Print a sorted list of the characters that appear in comic-book AVF 4 that
98+
9. Print a sorted list of the characters that appear in comic-book AVF 4 that
9499
have a weapon that is not a shield or claws.
95100

96101
```groovy
97102
g.V().has('comic-book', 'AVF 4').in('appeared').has('weapon', without('shield','claws')).values('character').order()
98103
```
99-
9. Exit remote mode and Control-C to quit.
104+
10. Exit remote mode and Control-C to quit.
100105
101106
```groovy
102107
:remote console
103108
```
104-
10. Clean up the composed Docker containers.
109+
11. Clean up the composed Docker containers.
105110
106111
```bash
107112
docker-compose -f src/test/resources/docker-compose.yml stop
108113
```
109114
110115
### Load the Graph of the Gods
111-
1. Repeat steps 1 through 3 of the Marvel graph section.
116+
1. Repeat steps 3 and 4 of the Marvel graph section, cleaning up the server directory beforehand with `rm -rf server`.
112117
2. Load the Graph of the Gods.
113118
114119
```groovy
@@ -203,7 +208,7 @@ CloudFormation template that you just downloaded.
203208
CloudFormation to create IAM resources." Then, click Create.
204209
8. Start the Gremlin console on the host through SSH. You can just copy paste the `GremlinShell` output of the
205210
CloudFormation template and run it on your command line.
206-
9. Repeat step 3 of the Marvel graph section above.
211+
9. Repeat steps 4 and onwards of the Marvel graph section above.
207212
208213
## Data Model
209214
The Amazon DynamoDB Storage Backend for JanusGraph has a flexible data model that

0 commit comments

Comments
 (0)