Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Commit ea2395f

Browse files
Merge pull request #44 from mongoKart/java-labs-copy-edit
Java CRUD Workshop Copy Edits
2 parents 182e4d6 + ea11526 commit ea2395f

17 files changed

Lines changed: 110 additions & 110 deletions

‎java/00_open_mongodb.ipynb‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Open MongoDB Using the MongoDB Extension\n",
7+
"# Use the MongoDB Extension to Open MongoDB\n",
88
"\n",
9-
"1. click on the MongoDB extension on the side panel\n",
10-
"2. To connect to the local database, click on ‘Library DB’ in the list of connections on the left side"
9+
"1. Click on the MongoDB extension on the side panel.\n",
10+
"2. To connect to the local database, click on ‘Library DB’ in the list of connections on the left side."
1111
]
1212
},
1313
{
@@ -18,29 +18,29 @@
1818
"- admin\n",
1919
"- config\n",
2020
"- local\n",
21-
"- library -> __we're going to work with this one__"
21+
"- library -> __We're going to work with this one.__"
2222
]
2323
},
2424
{
2525
"cell_type": "markdown",
2626
"metadata": {},
2727
"source": [
28-
"## Open the library database\n",
28+
"## Open the library Database\n",
2929
"\n",
30-
"1. Open the library database\n",
31-
"1. Open the books collection\n",
32-
"1. Click on Documents\n",
33-
"1. Open a document"
30+
"1. Open the library database.\n",
31+
"1. Open the books collection.\n",
32+
"1. Click on Documents.\n",
33+
"1. Open a document."
3434
]
3535
},
3636
{
3737
"cell_type": "markdown",
3838
"metadata": {},
3939
"source": [
40-
"## Connecting to Atlas (or your own deployment)\n",
40+
"## Connecting to Atlas (or Your Own Deployment)\n",
4141
"\n",
42-
"- add a new connection clicking on `+` (`Add MongoDB Connection`).\n",
43-
"- enter the [MongoDB Connection String](https://www.mongodb.com/docs/manual/reference/connection-string/) of your database."
42+
"- Add a new connection by clicking on `+` (`Add MongoDB Connection`).\n",
43+
"- Enter the [MongoDB Connection String](https://www.mongodb.com/docs/manual/reference/connection-string/) of your database."
4444
]
4545
}
4646
],

‎java/01_connect_database.ipynb‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"id": "ff9ae529",
2323
"metadata": {},
2424
"source": [
25-
"We'll start with some examples to test our connection to MongoDB and how to send commands to the database."
25+
"We'll start with some examples to test our connection to MongoDB and send commands to the database."
2626
]
2727
},
2828
{
@@ -32,7 +32,7 @@
3232
"source": [
3333
"## Select the Java Kernel\n",
3434
"\n",
35-
"To run the code cells in these notebooks you need to select the appropriate kernel (programming language). In this case is Java. Click on the `Select Kernel` button at the top right, then `Jupyter Kernel` > `Java`"
35+
"To run the code cells in these notebooks, you need to select the appropriate kernel (programming language). In this case, the language is Java. Click on the `Select Kernel` button at the top right, then `Jupyter Kernel` > `Java`."
3636
]
3737
},
3838
{
@@ -42,7 +42,7 @@
4242
"source": [
4343
"## Install the MongoDB Driver\n",
4444
"\n",
45-
"We use Maven to install the [Sync version of the MongoDB database driver](https://www.mongodb.com/docs/drivers/java/sync/current/) for Java. Then we are importing all required packages."
45+
"We use Maven to install the [Sync version of the MongoDB database driver](https://www.mongodb.com/docs/drivers/java/sync/current/) for Java. Then, we import all required packages."
4646
]
4747
},
4848
{
@@ -74,9 +74,9 @@
7474
"id": "advisory-christmas",
7575
"metadata": {},
7676
"source": [
77-
"## Set your connection String below\n",
77+
"## Set Your Connection String\n",
7878
"\n",
79-
"We can just connect to `localhost` as this devcontainer is also running a MongoDB instance with some data, or you can connect to your own Atlas cluster just changing the `connectionString` below."
79+
"You can connect to `localhost`, as this devcontainer is also running a MongoDB instance with some data. Alternatively, you can connect to your own Atlas cluster by changing the `connectionString` below."
8080
]
8181
},
8282
{
@@ -98,7 +98,7 @@
9898
"id": "recovered-prospect",
9999
"metadata": {},
100100
"source": [
101-
"## Ping the Database server\n",
101+
"## Ping the Database Server\n",
102102
"\n",
103103
"The `ping()` database command fetches information about the state of the MongoDB database."
104104
]
@@ -132,9 +132,9 @@
132132
"id": "5bee7da0",
133133
"metadata": {},
134134
"source": [
135-
"## Send a Hello command\n",
135+
"## Send a Hello Command\n",
136136
"\n",
137-
"The `hello()` command returns database server details for the backend MongoDB database used in this workshop."
137+
"The `hello()` command returns database server details for the MongoDB database used in this workshop."
138138
]
139139
},
140140
{
@@ -162,9 +162,9 @@
162162
"id": "amazing-webcam",
163163
"metadata": {},
164164
"source": [
165-
"## Get a list of all databases and collections\n",
165+
"## List All Databases and Collections\n",
166166
"\n",
167-
"We'll get a list of all the databases in my cluster using `listDatabases()` and then we'll print them."
167+
"We'll get a list of all the databases in my cluster by using `listDatabases()`, and then we'll print them."
168168
]
169169
},
170170
{

‎java/100_aggregation_pipeline_match.ipynb‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"id": "dependent-boundary",
2323
"metadata": {},
2424
"source": [
25-
"## Startup code"
25+
"## Startup Code"
2626
]
2727
},
2828
{
@@ -80,9 +80,9 @@
8080
"id": "handled-symbol",
8181
"metadata": {},
8282
"source": [
83-
"## $match\n",
83+
"## `$match`\n",
8484
"\n",
85-
"We'll get all book written after 2010"
85+
"We'll get all books written after 2010."
8686
]
8787
},
8888
{
@@ -115,9 +115,9 @@
115115
"id": "9f6caab3",
116116
"metadata": {},
117117
"source": [
118-
"### $limit\n",
118+
"### `$limit`\n",
119119
"\n",
120-
"Now we want to limit just to 10 books"
120+
"Now we want to limit the results to 10 books."
121121
]
122122
},
123123
{
@@ -151,7 +151,7 @@
151151
"id": "worth-windows",
152152
"metadata": {},
153153
"source": [
154-
"### $sort"
154+
"### `$sort`"
155155
]
156156
},
157157
{

‎java/101_aggregation_pipeline_arrays.ipynb‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "3b936925-e295-489a-b508-2b99c0160217",
1414
"metadata": {},
1515
"source": [
16-
"# Aggregation Pipeline - $match arrays\n",
16+
"# Aggregation Pipeline - `$match` Arrays\n",
1717
" "
1818
]
1919
},
@@ -22,7 +22,7 @@
2222
"id": "dependent-boundary",
2323
"metadata": {},
2424
"source": [
25-
"## Startup code"
25+
"## Startup Code"
2626
]
2727
},
2828
{
@@ -84,19 +84,19 @@
8484
"id": "13926b8c",
8585
"metadata": {},
8686
"source": [
87-
"## $match - arrays"
87+
"## `$match` - Arrays"
8888
]
8989
},
9090
{
9191
"cell_type": "markdown",
9292
"id": "handled-symbol",
9393
"metadata": {},
9494
"source": [
95-
"### $match: $all\n",
95+
"### `$match`: `$all`\n",
9696
"\n",
9797
"https://mongodb-developer.github.io/aggregation-pipeline-lab/docs/using-arrays/simple-match-array \n",
9898
"\n",
99-
"If you want to search for all books that have \"Family Life\" and \"Fiction\", in any order (and possibly other genres) use:"
99+
"If you want to search for all books whose genres contain `\"Family Life\"` and `\"Fiction\"` (and possibly other genres), in any order, use:"
100100
]
101101
},
102102
{
@@ -129,9 +129,9 @@
129129
"id": "9f6caab3",
130130
"metadata": {},
131131
"source": [
132-
"### $match: $in\n",
132+
"### `$match`: `$in`\n",
133133
"\n",
134-
"Finds books that have \"Family Life\" OR \"Fiction\""
134+
"Finds books whose genres contain `\"Family Life\"` OR `\"Fiction\"`."
135135
]
136136
},
137137
{
@@ -172,7 +172,7 @@
172172
"id": "eae3a6b1",
173173
"metadata": {},
174174
"source": [
175-
"### 1. After the year 2000, which book has the most number of authors? (Using $project)\n",
175+
"### 1. After the year 2000, which book has the most authors? Use `$project`.\n",
176176
"[Solution here](https://mongodb-developer.github.io/sql-to-query-api-lab/docs/aggregation/sort-limit#-1-after-the-year-2000-which-book-has-the-most-number-of-authors)"
177177
]
178178
},
@@ -195,7 +195,7 @@
195195
"id": "652df0c6",
196196
"metadata": {},
197197
"source": [
198-
"### 2. After the year 2000, which book has the most number of authors? (Using $addFields)\n",
198+
"### 2. After the year 2000, which book has the most authors? Use `$addFields`.\n",
199199
"[Solution here](https://mongodb-developer.github.io/sql-to-query-api-lab/docs/aggregation/sort-limit#-1-after-the-year-2000-which-book-has-the-most-number-of-authors)"
200200
]
201201
},

‎java/102_aggregation_pipeline_unwind.ipynb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "3b936925-e295-489a-b508-2b99c0160217",
1414
"metadata": {},
1515
"source": [
16-
"# Aggregation Pipeline - $unwind\n",
16+
"# Aggregation Pipeline - `$unwind`\n",
1717
" "
1818
]
1919
},
@@ -22,7 +22,7 @@
2222
"id": "dependent-boundary",
2323
"metadata": {},
2424
"source": [
25-
"## Startup code"
25+
"## Startup Code"
2626
]
2727
},
2828
{
@@ -72,7 +72,7 @@
7272
"id": "handled-symbol",
7373
"metadata": {},
7474
"source": [
75-
"## $unwind"
75+
"## `$unwind`"
7676
]
7777
},
7878
{

‎java/103_aggregation_pipeline_lookup.ipynb‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "3b936925-e295-489a-b508-2b99c0160217",
1414
"metadata": {},
1515
"source": [
16-
"# Aggregation Pipeline: $lookup\n",
16+
"# Aggregation Pipeline: `$lookup`\n",
1717
" "
1818
]
1919
},
@@ -22,7 +22,7 @@
2222
"id": "dependent-boundary",
2323
"metadata": {},
2424
"source": [
25-
"## Startup code"
25+
"## Startup Code"
2626
]
2727
},
2828
{
@@ -75,7 +75,7 @@
7575
"id": "handled-symbol",
7676
"metadata": {},
7777
"source": [
78-
"## $lookup"
78+
"## `$lookup`"
7979
]
8080
},
8181
{
@@ -120,7 +120,7 @@
120120
"id": "eca1333b",
121121
"metadata": {},
122122
"source": [
123-
"### 1. Fetch books with their associated reviews\n",
123+
"### 1. Fetch books and their associated reviews.\n",
124124
"[Solution here](https://mongodb-developer.github.io/sql-to-query-api-lab/docs/aggregation/lookup#-1-fetch-books-with-their-associated-reviews)"
125125
]
126126
},

‎java/104_aggregation_pipeline_group_by.ipynb‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "3b936925-e295-489a-b508-2b99c0160217",
1414
"metadata": {},
1515
"source": [
16-
"# Aggregation Pipeline: $group\n",
16+
"# Aggregation Pipeline: `$group`\n",
1717
" "
1818
]
1919
},
@@ -22,7 +22,7 @@
2222
"id": "dependent-boundary",
2323
"metadata": {},
2424
"source": [
25-
"## Startup code"
25+
"## Startup Code"
2626
]
2727
},
2828
{
@@ -70,7 +70,7 @@
7070
"id": "handled-symbol",
7171
"metadata": {},
7272
"source": [
73-
"## $group"
73+
"## `$group`"
7474
]
7575
},
7676
{
@@ -105,7 +105,7 @@
105105
"id": "d96043ab",
106106
"metadata": {},
107107
"source": [
108-
"### 1. Find the average book rating of all books\n",
108+
"### 1. Find the average rating of all books.\n",
109109
"[Solution here](https://mongodb-developer.github.io/sql-to-query-api-lab/docs/aggregation/group#-1-find-the-average-book-rating-of-all-books)"
110110
]
111111
},
@@ -124,7 +124,7 @@
124124
"id": "2b9bb53e",
125125
"metadata": {},
126126
"source": [
127-
"### 2. Find users with the most number of reviews (Hint: use sum + sort)\n",
127+
"### 2. Find users with the most reviews. (Hint: Use `sum` + `sort`.)\n",
128128
"[Solution here](https://mongodb-developer.github.io/sql-to-query-api-lab/docs/aggregation/group#-2-find-users-with-the-most-number-of-reviews-hint-use-the-name-field-in-the-reviews-collection)"
129129
]
130130
},
@@ -143,7 +143,7 @@
143143
"id": "74e33d58",
144144
"metadata": {},
145145
"source": [
146-
"### 3. Find users with the most number of reviews (Hint: use $sortByCount)\n",
146+
"### 3. Find users with the most reviews. (Hint: Use `$sortByCount`.)\n",
147147
"[Solution here](https://mongodb-developer.github.io/sql-to-query-api-lab/docs/aggregation/group#-2-find-users-with-the-most-number-of-reviews-hint-use-the-name-field-in-the-reviews-collection)"
148148
]
149149
},

0 commit comments

Comments
 (0)