Skip to content

Commit a6a7056

Browse files
authoredAug 2, 2024
Merge for 2.28.5 release (#349)
## Usage and product changes Merge for 2.28.5 release
2 parents 0f9e9d1 + 500bf34 commit a6a7056

File tree

12 files changed

+69
-44
lines changed

12 files changed

+69
-44
lines changed
 

‎.factory/automation.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ config:
1212
build:
1313
quality:
1414
filter:
15-
owner: vaticle
15+
owner: typedb
1616
branch: [master, development]
1717
dependency-analysis:
1818
image: vaticle-ubuntu-22.04
@@ -50,7 +50,7 @@ build:
5050
bazel test //rust/tests/behaviour:test_behaviour --test_output=errors
5151
deploy-crate-snapshot:
5252
filter:
53-
owner: vaticle
53+
owner: typedb
5454
branch: [master, development]
5555
image: vaticle-ubuntu-22.04
5656
dependencies: [build, build-dependency, test-rust]
@@ -60,7 +60,7 @@ build:
6060
bazel run --define version=$(git rev-parse HEAD) //rust:deploy_crate -- snapshot
6161
deploy-maven-snapshot:
6262
filter:
63-
owner: vaticle
63+
owner: typedb
6464
branch: [master, development]
6565
image: vaticle-ubuntu-22.04
6666
dependencies: [build, build-dependency, test-java]
@@ -78,7 +78,7 @@ build:
7878
bazel run --define version=$(git rev-parse HEAD) //common/java:deploy-maven -- snapshot
7979
deploy-pip-snapshot:
8080
filter:
81-
owner: vaticle
81+
owner: typedb
8282
branch: [master, development]
8383
image: vaticle-ubuntu-20.04
8484
dependencies: [ build, build-dependency ]
@@ -88,7 +88,7 @@ build:
8888
bazel run --define version=$(git rev-parse HEAD) //grammar/python:deploy-pip -- snapshot
8989
test-deployment-maven:
9090
filter:
91-
owner: vaticle
91+
owner: typedb
9292
branch: [master, development]
9393
image: vaticle-ubuntu-22.04
9494
dependencies: [deploy-maven-snapshot]
@@ -98,7 +98,7 @@ build:
9898
sync-dependencies:
9999
image: vaticle-ubuntu-22.04
100100
filter:
101-
owner: vaticle
101+
owner: typedb
102102
branch: [master, development]
103103
dependencies:
104104
- build
@@ -115,7 +115,7 @@ build:
115115
116116
release:
117117
filter:
118-
owner: vaticle
118+
owner: type
119119
branch: master
120120
validation:
121121
validate-release-notes:
@@ -167,7 +167,7 @@ release:
167167
sync-dependencies-release:
168168
image: vaticle-ubuntu-22.04
169169
filter:
170-
owner: vaticle
170+
owner: typedb
171171
branch: [master, development]
172172
dependencies:
173173
- deploy-github

‎README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
# Introducing TypeQL
1212

13-
TypeQL is the query language of **[TypeDB](https://github.com/vaticle/typedb)**.
13+
TypeQL is the query language of **[TypeDB](https://github.com/vaticle/typedb)**. It is based on a novel, elegant, and declarative querying paradigm described in [recent research](https://typedb.com/papers/typeql-theory). TypeQL is designed to be intuitive and mirror natural language, making it straightforward to compose complex queries using high-level abstractions.
1414

15-
- **Conceptual and intuitive**. TypeQL is based directly on the [conceptual data model](https://development.typedb.com/philosophy) of TypeDB. Its queries comprise sequences of statements that assemble into [patterns](https://development.typedb.com/features#modern-language). This mirrors natural language and makes it easy and intuitive to express even highly complex queries.
16-
- **Fully declarative and composable** TypeQL is fully declarative, allowing us to define query patterns without considering execution strategy. The user only composes sets of requirements, and TypeDB finds all matching data to process.
17-
- **A fully variablizable language**. Any concept in TypeQL has a type, and so any concept in TypeQL can be variablized in a query – even types! This enables TypeQL to express powerful [parametric](https://typedb.com/features#polymorphic-queries) database operations.
18-
- **Built for consistency**. TypeQL patterns are underpinned by a powerful type system that ensure safety and consistency of database applications.
15+
- Get started by [installing TypeDB](https://typedb.com/docs/home/install/overview).
16+
- Explore the basics of TypeDB in our easy [Crash Course](https://typedb.com/docs/home/crash-course).
17+
- Discover more of TypeDB’s unique [features](https://typedb.com/features).
18+
- Master TypeDB with our end-to-end [Learning Course](https://typedb.com/docs/learn/overview).
19+
- Learn more at TypeDB's [Learning Center](https://typedb.com/learn).
1920

20-
For a quick overview of the range of statements that are available in TypeQL check out our [TypeQL in 20 queries guide](https://typedb.com/docs/).
2121

2222
> **IMPORTANT NOTE:** > > TypeDB & TypeQL are in the process of being rewritten in [Rust](https://www.rust-lang.org). There will be significant refinement to the language, and minor breaks in backwards compatibility. Learn about the changes on our [roadmap issue on GitHub](https://github.com/vaticle/typedb/issues/6764). The biggest change to TypeDB 3.0 will be our storage data structure and architecture that significantly boosts performance. We’re aiming to release 3.0 in the summer this year, along with preliminary benchmarks of TypeDB.
2323

‎RELEASE_NOTES_LATEST.md

+32-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Available through https://crates.io/crates/typeql.
55
```
6-
cargo add typeql@2.28.1
6+
cargo add typeql@2.28.5
77
```
88

99
## TypeQL Grammar and Language Library distributions for Java
@@ -20,12 +20,12 @@ cargo add typeql@2.28.1
2020
<dependency>
2121
<groupId>com.vaticle.typeql</groupId>
2222
<artifactId>typeql-grammar</artifactId>
23-
<version>2.28.1</version>
23+
<version>2.28.5</version>
2424
</dependency>
2525
<dependency>
2626
<groupId>com.vaticle.typeql</groupId>
2727
<artifactId>typeql-lang</artifactId>
28-
<version>2.28.1</version>
28+
<version>2.28.5</version>
2929
</dependency>
3030
</dependencies>
3131
```
@@ -35,9 +35,35 @@ cargo add typeql@2.28.1
3535
Available through https://pypi.org
3636

3737
```
38-
pip install typeql-grammar==2.28.1
38+
pip install typeql-grammar==2.28.5
3939
```
4040

41+
42+
## New Features
43+
44+
45+
## Bugs Fixed
46+
47+
48+
## Code Refactors
49+
50+
4151
## Other Improvements
42-
- **Bump snake-yaml maven dependency to 2.2**
43-
Bump snake-yaml maven dependency to 2.2
52+
- **Make the author of the Python grammar and TypeQL Rust "TypeDB Community"**
53+
54+
The `author` field of our Python grammar and Rust library is now **TypeDB Community** with the email being **community@typedb.com**.
55+
56+
57+
- **Update error messages to match Rust and Java implementations**
58+
We fixed various logical and grammatical issues in the Java and Rust error messages, aiming to have similar errors from both implementations.
59+
60+
61+
- **Java and Rust error messages: grammatical fixes**
62+
63+
We fixed various grammatical issues in the Java and Rust error messages.
64+
65+
66+
- **Update readme**
67+
68+
69+

‎VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.28.1
1+
2.28.5

‎WORKSPACE

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ rust_analyzer_dependencies()
5353
load("@rules_rust//rust:defs.bzl", "rust_common")
5454
rust_register_toolchains(
5555
edition = "2021",
56-
versions = ["1.70.0"],
56+
versions = ["1.80.0"],
5757
)
5858

5959
rust_analyzer_toolchain_tools_repository(

‎dependencies/maven/artifacts.snapshot

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@maven//:com_google_guava_failureaccess_1_0_1
1010
@maven//:com_google_guava_guava_30_1_jre
1111
@maven//:com_google_guava_listenablefuture_9999_0_empty_to_avoid_conflict_with_guava
12-
@maven//:com_google_http_client_google_http_client_1_34_2
12+
@maven//:com_google_http_client_google_http_client_1_41_4
1313
@maven//:com_google_j2objc_j2objc_annotations_1_3
1414
@maven//:com_vdurmont_semver4j_3_1_0
1515
@maven//:commons_codec_commons_codec_1_13
@@ -26,15 +26,15 @@
2626
@maven//:io_cucumber_datatable_3_2_1
2727
@maven//:io_cucumber_docstring_5_1_3
2828
@maven//:io_cucumber_tag_expressions_2_0_4
29-
@maven//:io_grpc_grpc_context_1_22_1
30-
@maven//:io_opencensus_opencensus_api_0_24_0
31-
@maven//:io_opencensus_opencensus_contrib_http_util_0_24_0
29+
@maven//:io_grpc_grpc_context_1_27_2
30+
@maven//:io_opencensus_opencensus_api_0_31_0
31+
@maven//:io_opencensus_opencensus_contrib_http_util_0_31_0
3232
@maven//:junit_junit_4_12
3333
@maven//:org_antlr_antlr4_runtime_4_8
3434
@maven//:org_apache_commons_commons_compress_1_21
3535
@maven//:org_apache_commons_commons_lang3_3_9
36-
@maven//:org_apache_httpcomponents_httpclient_4_5_11
37-
@maven//:org_apache_httpcomponents_httpcore_4_4_13
36+
@maven//:org_apache_httpcomponents_httpclient_4_5_13
37+
@maven//:org_apache_httpcomponents_httpcore_4_4_15
3838
@maven//:org_apiguardian_apiguardian_api_1_1_0
3939
@maven//:org_checkerframework_checker_qual_3_5_0
4040
@maven//:org_hamcrest_hamcrest_core_1_3

‎dependencies/vaticle/repositories.bzl

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
77
def vaticle_dependencies():
88
git_repository(
99
name = "vaticle_dependencies",
10-
remote = "https://github.com/vaticle/dependencies",
11-
commit = "729d960a92e145e03794395bbe59e02f122f1aee", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_dependencies
10+
remote = "https://github.com/typedb/dependencies",
11+
commit = "5387f4df1c571e5c3e6dd1139a3e3b321f3538cd", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_dependencies
1212
)
1313

1414
def vaticle_typedb_behaviour():
1515
git_repository(
1616
name = "vaticle_typedb_behaviour",
17-
remote = "https://github.com/vaticle/typedb-behaviour",
18-
commit = "d7066eef79bd9ae2d4ac5b16c1867d72ed73a8b8", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_behaviour
17+
remote = "https://github.com/typedb/typedb-behaviour",
18+
commit = "8098e03c3c7be016e709b51744ebfd5c2c06cda1", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_behaviour
1919
)

‎grammar/python/BUILD

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ assemble_pip(
6262
"Topic :: Database :: Front-Ends"
6363
],
6464
url = "https://github.com/vaticle/typeql",
65-
author = "Vaticle",
66-
author_email = "community@vaticle.com",
65+
author = "TypeDB Community",
66+
author_email = "community@typedb.com",
6767
license = "AGPLv3",
6868
requirements_file = "//:requirements.txt",
6969
keywords = ["typeql", "typedb", "database", "strongly-typed"],

‎java/common/exception/ErrorMessage.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class ErrorMessage extends com.vaticle.typedb.common.exception.ErrorMessa
1919
public static final ErrorMessage MISSING_PATTERNS =
2020
new ErrorMessage(5, "The query has not been provided with any patterns.");
2121
public static final ErrorMessage VARIABLE_NAME_CONFLICT =
22-
new ErrorMessage(6, "The variable(s) named '%s' cannot be used for both concept variables and a value variables.");
22+
new ErrorMessage(6, "The variable(s) named '%s' cannot be used for both a concept variable and a value variable.");
2323
public static final ErrorMessage MISSING_DEFINABLES =
2424
new ErrorMessage(7, "The query has not been provided with any definables.");
2525
public static final ErrorMessage MATCH_HAS_NO_BOUNDING_NAMED_VARIABLE =
@@ -29,7 +29,7 @@ public class ErrorMessage extends com.vaticle.typedb.common.exception.ErrorMessa
2929
public static final ErrorMessage MATCH_PATTERN_STATEMENT_HAS_NO_NAMED_VARIABLE =
3030
new ErrorMessage(10, "The pattern '%s' has no named variable.");
3131
public static final ErrorMessage MATCH_HAS_UNBOUNDED_NESTED_PATTERN =
32-
new ErrorMessage(11, "The match query contains a nested pattern is not bounded: '%s'.");
32+
new ErrorMessage(11, "The match query contains an unbounded nested pattern: '%s'.");
3333
public static final ErrorMessage MISSING_GET_FILTER =
3434
new ErrorMessage(12, "The get query cannot be constructed with NULL filter variable collection.");
3535
public static final ErrorMessage INVALID_IID_STRING =
@@ -59,7 +59,7 @@ public class ErrorMessage extends com.vaticle.typedb.common.exception.ErrorMessa
5959
public static final ErrorMessage INVALID_CONSTRAINT_DATETIME_PRECISION =
6060
new ErrorMessage(26, "Attempted to assign DateTime value of '%s' which is more precise than 1 millisecond.");
6161
public static final ErrorMessage INVALID_DEFINE_QUERY_VARIABLE =
62-
new ErrorMessage(27, "Invalid define/undefine query. User defined variables are not accepted in define/undefine query.");
62+
new ErrorMessage(27, "Invalid define/undefine query. User-defined variables are not accepted in a define/undefine query.");
6363
public static final ErrorMessage INVALID_UNDEFINE_QUERY_RULE =
6464
new ErrorMessage(28, "Invalid undefine query: the rule body of '%s' ('when' or 'then') cannot be undefined. The rule must be undefined entirely by referring to its label.");
6565
public static final ErrorMessage INVALID_RULE_WHEN_MISSING_PATTERNS =
@@ -89,7 +89,7 @@ public class ErrorMessage extends com.vaticle.typedb.common.exception.ErrorMessa
8989
public static final ErrorMessage ILLEGAL_GRAMMAR =
9090
new ErrorMessage(41, "Illegal grammar: '%s'");
9191
public static final ErrorMessage INVALID_TYPE_LABEL =
92-
new ErrorMessage(42, "The type label '%s' is invalid. Type labels must be valid unicode identifiers.");
92+
new ErrorMessage(42, "The type label '%s' is invalid. Type labels must be valid Unicode identifiers with restrictions on the leading character.");
9393
public static final ErrorMessage INVALID_ANNOTATION =
9494
new ErrorMessage(43, "Invalid annotation '%s' on '%s' constraint");
9595

‎rust/BUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ assemble_crate(
4949
homepage = "https://github.com/vaticle/typeql",
5050
repository = "https://github.com/vaticle/typeql",
5151
keywords = ["typeql", "typedb", "database", "strongly-typed"],
52-
authors = ["Vaticle <community@vaticle.com>"]
52+
authors = ["TypeDB Community <community@typedb.com>"]
5353
)
5454

5555
deploy_crate(

‎rust/common/error/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ error_messages! { TypeQLError
9393
MatchHasNoBoundingNamedVariable =
9494
7: "The match query does not have named variables to bound the nested disjunction/negation pattern(s).",
9595
VariableNameConflict { names: String } =
96-
8: "The variable names {names} cannot be used for both concept variables and value variables.",
96+
8: "The variable(s) named {names} cannot be used for both a concept variable and a value variable.",
9797
MatchStatementHasNoNamedVariable { pattern: Pattern } =
9898
9: "The statement '{pattern}' has no named variable.",
9999
MatchHasUnboundedNestedPattern { pattern: Pattern } =
100-
10: "The match query contains a nested pattern is not bounded: '{pattern}'.",
100+
10: "The match query contains an unbounded nested pattern: '{pattern}'.",
101101
InvalidIIDString { iid: String } =
102102
11: "Invalid IID: '{iid}'. IIDs must follow the regular expression: '0x[0-9a-f]+'.",
103103
InvalidAttributeTypeRegex { regex: String } =
@@ -129,7 +129,7 @@ error_messages! { TypeQLError
129129
InvalidConstraintDatetimePrecision { date_time: NaiveDateTime } =
130130
25: "Attempted to assign DateTime value of '{date_time}' which is more precise than 1 millisecond.",
131131
InvalidDefineQueryVariable =
132-
26: "Invalid define/undefine query. User defined variables are not accepted in define/undefine query.",
132+
26: "Invalid define/undefine query. User-defined variables are not accepted in a define/undefine query.",
133133
InvalidUndefineQueryRule { rule_label: Label } =
134134
27: "Invalid undefine query: the rule body of '{rule_label}' ('when' or 'then') cannot be undefined. The rule must be undefined entirely by referring to its label.",
135135
InvalidRuleWhenMissingPatterns { rule_label: Label } =
@@ -153,5 +153,5 @@ error_messages! { TypeQLError
153153
IllegalGrammar { input: String } =
154154
37: "Illegal grammar: '{input}'",
155155
InvalidTypeLabel { label: String } =
156-
38: "The type label '{label}' is invalid. Type labels must be valid utf-8 identifiers without a leading underscore.",
156+
38: "The type label '{label}' is invalid. Type labels must be valid Unicode identifiers with restrictions on the leading character.",
157157
}

‎rust/pattern/statement/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ pub use thing::ThingStatement;
1616
pub use type_::TypeStatement;
1717
pub use value::ValueStatement;
1818

19-
pub use crate::variable::{variable::Variable, variable_concept::ConceptVariable, variable_value::ValueVariable};
2019
use crate::{
2120
common::{error::TypeQLError, validatable::Validatable, Result},
2221
enum_wrapper,

0 commit comments

Comments
 (0)