rust-kgdb 0.6.51 → 0.6.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/README.md +19 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the rust-kgdb TypeScript SDK will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.6.53] - 2025-12-17
|
|
6
|
+
|
|
7
|
+
### Scalability & Deep Flashback Memory
|
|
8
|
+
|
|
9
|
+
#### Added Rust Core Scalability Numbers
|
|
10
|
+
Verified benchmark results:
|
|
11
|
+
| Operation | 1 Worker | 16 Workers | Scaling |
|
|
12
|
+
|-----------|----------|------------|---------|
|
|
13
|
+
| Concurrent Writes | 66K ops/sec | 132K ops/sec | 2.0x |
|
|
14
|
+
| GraphFrame Analytics | 6.0K ops/sec | 6.5K ops/sec | Thread-safe |
|
|
15
|
+
| Memory per Triple | 24 bytes | 24 bytes | Constant |
|
|
16
|
+
|
|
17
|
+
#### Clarified "Deep Flashback" Memory Advantage
|
|
18
|
+
- **Why it matters**: We can retrieve relevant past queries from 10,000+ history entries
|
|
19
|
+
- **Performance**: 94% Recall@10 accuracy in 16.7ms
|
|
20
|
+
- **Advantage**: Built-in vs requiring external vector DB (Pinecone, Chroma, etc.)
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## [0.6.52] - 2025-12-17
|
|
25
|
+
|
|
26
|
+
### Added W3C Standards Support
|
|
27
|
+
|
|
28
|
+
#### New Features in Architecture Table
|
|
29
|
+
- **RDF 1.2**: RDF-Star (quoted triples), TriG, N-Quads
|
|
30
|
+
- **SHACL**: W3C Shapes Constraint Language validation
|
|
31
|
+
- **PROV**: W3C Provenance ontology support
|
|
32
|
+
|
|
33
|
+
#### Added to Capabilities Comparison
|
|
34
|
+
| Capability | HyperMind | LangChain/DSPy |
|
|
35
|
+
|------------|-----------|----------------|
|
|
36
|
+
| RDF-Star | Native quoted triples | Not supported |
|
|
37
|
+
| Data Validation | SHACL constraints (W3C) | External validator |
|
|
38
|
+
| Provenance Tracking | W3C PROV ontology | Manual implementation |
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
5
42
|
## [0.6.51] - 2025-12-17
|
|
6
43
|
|
|
7
44
|
### Factual Capabilities Comparison
|
package/README.md
CHANGED
|
@@ -53,6 +53,9 @@
|
|
|
53
53
|
| Component | What It Does | Performance |
|
|
54
54
|
|-----------|--------------|-------------|
|
|
55
55
|
| **SPARQL 1.1** | W3C-compliant query engine, 64 builtin functions | 449ns lookups |
|
|
56
|
+
| **RDF 1.2** | RDF-Star (quoted triples), TriG, N-Quads | W3C compliant |
|
|
57
|
+
| **SHACL** | W3C Shapes Constraint Language validation | Constraint engine |
|
|
58
|
+
| **PROV** | W3C Provenance ontology support | Audit trail |
|
|
56
59
|
| **WCOJ Joins** | Worst-case optimal joins for multi-way patterns | O(N^(ρ/2)) |
|
|
57
60
|
| **Datalog** | Semi-naive evaluation with recursion | Incremental |
|
|
58
61
|
| **Sparse Matrix** | CSR/CSC-based reasoning for OWL 2 RL | Memory-efficient |
|
|
@@ -62,6 +65,16 @@
|
|
|
62
65
|
| **ARCADE Cache** | 1-hop neighbor pre-caching | O(1) context |
|
|
63
66
|
| **Storage** | InMemory, RocksDB, LMDB backends | 24 bytes/triple |
|
|
64
67
|
|
|
68
|
+
**Scalability Numbers (Verified Benchmark)**:
|
|
69
|
+
|
|
70
|
+
| Operation | 1 Worker | 16 Workers | Scaling |
|
|
71
|
+
|-----------|----------|------------|---------|
|
|
72
|
+
| Concurrent Writes | 66K ops/sec | 132K ops/sec | 2.0x |
|
|
73
|
+
| GraphFrame Analytics | 6.0K ops/sec | 6.5K ops/sec | Thread-safe |
|
|
74
|
+
| Memory per Triple | 24 bytes | 24 bytes | Constant |
|
|
75
|
+
|
|
76
|
+
Reproduce: `node concurrency-benchmark.js`
|
|
77
|
+
|
|
65
78
|
### Layer 2: HyperMind Agent Framework (JavaScript)
|
|
66
79
|
|
|
67
80
|
| Component | What It Does |
|
|
@@ -155,7 +168,9 @@
|
|
|
155
168
|
| **Data Storage** | Built-in QuadStore | None (BYODB) |
|
|
156
169
|
| **Query Execution** | Native SPARQL/Datalog | External DB needed |
|
|
157
170
|
| **Agent Memory** | Built-in (Working + Episodic + KG-backed) | External vector DB needed |
|
|
158
|
-
| **
|
|
171
|
+
| **Deep Flashback** | 94% Recall@10 at 10K query depth (16.7ms) | Limited by external provider |
|
|
172
|
+
|
|
173
|
+
**Why Agent Memory Matters**: We can retrieve relevant past queries from 10,000+ history entries with 94% accuracy in 16.7ms. This enables "flashback" to any past interaction - LangChain/DSPy require external vector DBs for this capability.
|
|
159
174
|
|
|
160
175
|
**Built-in Capabilities (No External Dependencies)**:
|
|
161
176
|
|
|
@@ -168,6 +183,9 @@
|
|
|
168
183
|
| **OWL 2 RL Reasoning** | Sparse matrix CSR/CSC (native) | External reasoner needed |
|
|
169
184
|
| **Vector Similarity** | HNSW + ARCADE 1-hop cache | External vector DB (Pinecone, etc.) |
|
|
170
185
|
| **Transitive Closure** | `ancestor(?X,?Z) :- parent(?X,?Y), ancestor(?Y,?Z)` | Loop implementation |
|
|
186
|
+
| **RDF-Star** | Native quoted triples (RDF 1.2) | Not supported |
|
|
187
|
+
| **Data Validation** | SHACL constraints (W3C) | External validator needed |
|
|
188
|
+
| **Provenance Tracking** | W3C PROV ontology (native) | Manual implementation |
|
|
171
189
|
|
|
172
190
|
**Database Performance (vs Industry Leaders)**:
|
|
173
191
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rust-kgdb",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.53",
|
|
4
4
|
"description": "High-performance RDF/SPARQL database with AI agent framework. GraphDB (449ns lookups, 35x faster than RDFox), GraphFrames analytics (PageRank, motifs), Datalog reasoning, HNSW vector embeddings. HyperMindAgent for schema-aware query generation with audit trails. W3C SPARQL 1.1 compliant. Native performance via Rust + NAPI-RS.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|