Skip to content

Commit 807b101

Browse files
Move xcom from /gaming to /games
1 parent 44f7506 commit 807b101

25 files changed

+26
-26
lines changed

.factory/automation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ build:
7575
bazel run //:typedb-extractor -- dist/typedb-all-linux
7676
sudo systemd-run ./dist/typedb-all-linux/typedb server
7777
sleep 60
78-
bazel test //gaming/xcom:test --test_output=errors
78+
bazel test //games/xcom:test --test_output=errors
7979
performance:
8080
test-performance-typedb-core-server:
8181
machine: 16-core-64-gb
@@ -165,4 +165,4 @@ build:
165165
bazel run //:typedb-extractor -- dist/typedb-all-linux
166166
sudo systemd-run ./dist/typedb-all-linux/typedb server
167167
sleep 60
168-
bazel test //gaming/xcom:test --test_output=errors --runs_per_test=20 --jobs=1
168+
bazel test //games/xcom:test --test_output=errors --runs_per_test=20 --jobs=1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ Read the [README](commerce/bookstore/README.md) file for instructions. Check [th
3030
or the initial [dataset](commerce/bookstore/python/data) for additional information. All logic accessible in the script
3131
files in the [python](commerce/bookstore/python) directory.
3232

33-
### [Gaming: XCOM Project](gaming/xcom)
33+
### [Games: XCOM Project](games/xcom)
3434

3535
The XCOM 2 example contains a database of interdependent research tasks in the game XCOM 2, featuring automatic
36-
inference of available research based on completed tasks and available items. See [the schema](gaming/xcom/schema.tql)
36+
inference of available research based on completed tasks and available items. See [the schema](games/xcom/schema.tql)
3737
for the examples of reasoner rules inferring attributes.
3838

3939
### [Software: GitHub](software/github)
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ java_library(
4545

4646
java_test(
4747
name = "test",
48-
classpath_resources = ["//gaming/xcom/config:logback-xml"],
49-
test_class = "com.vaticle.typedb.example.gaming.xcom.XCOMTest",
48+
classpath_resources = ["//games/xcom/config:logback-xml"],
49+
test_class = "com.vaticle.typedb.example.games.xcom.XCOMTest",
5050
srcs = [
5151
"XCOMTest.java"
5252
],
@@ -68,8 +68,8 @@ java_test(
6868

6969
java_binary(
7070
name = "migration",
71-
classpath_resources = ["//gaming/xcom/config:logback-xml"],
72-
main_class = "com.vaticle.typedb.example.gaming.xcom.Migration",
71+
classpath_resources = ["//games/xcom/config:logback-xml"],
72+
main_class = "com.vaticle.typedb.example.games.xcom.Migration",
7373
srcs = ["Migration.java"],
7474
deps = [
7575
"@vaticle_typedb_client_java//:client-java",
@@ -84,8 +84,8 @@ java_binary(
8484

8585
java_binary(
8686
name = "queries",
87-
classpath_resources = ["//gaming/xcom/config:logback-xml"],
88-
main_class = "com.vaticle.typedb.example.gaming.xcom.Queries",
87+
classpath_resources = ["//games/xcom/config:logback-xml"],
88+
main_class = "com.vaticle.typedb.example.games.xcom.Queries",
8989
srcs = ["Queries.java", "TransactionMode.java", "ResearchTask.java", "InventoryItem.java", "Result.java"],
9090
deps = [
9191
"@vaticle_typedb_client_java//:client-java",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* under the License.
2020
*/
2121

22-
package com.vaticle.typedb.example.gaming.xcom;
22+
package com.vaticle.typedb.example.games.xcom;
2323

2424
public class InventoryItem {
2525
public InventoryItem(String name, long quantity) {
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* under the License.
2020
*/
2121

22-
package com.vaticle.typedb.example.gaming.xcom;
22+
package com.vaticle.typedb.example.games.xcom;
2323

2424
import com.univocity.parsers.csv.CsvParser;
2525
import com.univocity.parsers.csv.CsvParserSettings;
@@ -82,7 +82,7 @@ static void connectAndMigrate(Collection<Input> inputs, String databaseName) thr
8282
TypeDBSession schemaSession = client.session(databaseName, TypeDBSession.Type.SCHEMA);
8383
TypeDBTransaction schemaTransaction = schemaSession.transaction(TypeDBTransaction.Type.WRITE);
8484
Writer queryBuffer = new StringWriter();
85-
getReader("gaming/xcom/schema.tql").transferTo(queryBuffer);
85+
getReader("games/xcom/schema.tql").transferTo(queryBuffer);
8686
schemaTransaction.query().define(queryBuffer.toString());
8787
schemaTransaction.commit();
8888
System.out.println("\nCreated the database.\n");
@@ -111,7 +111,7 @@ static Collection<Input> initialiseInputs() {
111111

112112
/** define template for constructing a research project TypeQL insert query */
113113
static Input initialiseTechInput() {
114-
return new Input("gaming/xcom/data/tech") {
114+
return new Input("games/xcom/data/tech") {
115115
@Override
116116
public String template(Json researchProject) {
117117
return "insert $research_project isa research-project, has name " + researchProject.at("name") + ";";
@@ -121,7 +121,7 @@ public String template(Json researchProject) {
121121

122122
/** define template for constructing a research project tech requirement TypeQL insert query */
123123
static Input initialiseResearchProjectTechRequirementInput() {
124-
return new Input("gaming/xcom/data/tech_required_tech") {
124+
return new Input("games/xcom/data/tech_required_tech") {
125125
@Override
126126
public String template(Json techRequirement) {
127127
// match tech
@@ -137,7 +137,7 @@ public String template(Json techRequirement) {
137137

138138
/** define template for constructing an item TypeQL insert query */
139139
static Input initialiseItemInput() {
140-
return new Input("gaming/xcom/data/resource") {
140+
return new Input("games/xcom/data/resource") {
141141
@Override
142142
public String template(Json item) {
143143
return "insert $item isa item, has name " + item.at("name") + ";";
@@ -147,7 +147,7 @@ public String template(Json item) {
147147

148148
/** define template for constructing a research project resource cost TypeQL insert query */
149149
static Input initialiseResearchResourceCostInput() {
150-
return new Input("gaming/xcom/data/tech_required_resource") {
150+
return new Input("games/xcom/data/tech_required_resource") {
151151
@Override
152152
public String template(Json researchCost) {
153153
// match tech
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* under the License.
2020
*/
2121

22-
package com.vaticle.typedb.example.gaming.xcom;
22+
package com.vaticle.typedb.example.games.xcom;
2323

2424
import com.vaticle.typedb.client.TypeDB;
2525
import com.vaticle.typedb.client.api.TypeDBClient;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ is able to fetch the correct answer in one simple query.
5555

5656
1. Checkout this repository: `git clone https://github.com/vaticle/typedb-examples && cd typedb-examples`
5757
2. Start the [TypeDB Server](http://docs.vaticle.com/docs/running-typedb/install-and-run#start-the-typedb-server).
58-
3. Build the example: `bazel build //gaming/xcom/...`.
59-
4. Migrate the dataset into TypeDB: `bazel run //gaming/xcom:migration`.
60-
5. Launch the interactive query runner: `bazel run //gaming/xcom:queries`.
58+
3. Build the example: `bazel build //games/xcom/...`.
59+
4. Migrate the dataset into TypeDB: `bazel run //games/xcom:migration`.
60+
5. Launch the interactive query runner: `bazel run //games/xcom:queries`.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* under the License.
2020
*/
2121

22-
package com.vaticle.typedb.example.gaming.xcom;
22+
package com.vaticle.typedb.example.games.xcom;
2323

2424
public class ResearchTask {
2525
public ResearchTask(String name, double progressPercent) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* under the License.
2020
*/
2121

22-
package com.vaticle.typedb.example.gaming.xcom;
22+
package com.vaticle.typedb.example.games.xcom;
2323

2424
public class Result<T> {
2525
public Result() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* under the License.
2020
*/
2121

22-
package com.vaticle.typedb.example.gaming.xcom;
22+
package com.vaticle.typedb.example.games.xcom;
2323

2424
public enum TransactionMode {
2525
READ,

0 commit comments

Comments
 (0)