rust-kgdb 0.6.34 → 0.6.35

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/README.md CHANGED
@@ -14,6 +14,42 @@
14
14
 
15
15
  ## Results (Verified December 2025)
16
16
 
17
+ ### End-to-End Capability Benchmark
18
+
19
+ ```
20
+ ┌─────────────────────────────────────────────────────────────────────────────┐
21
+ │ CAPABILITY COMPARISON: HyperMind vs Other Frameworks │
22
+ │ (LangChain, DSPy, Vanilla OpenAI) │
23
+ ├─────────────────────────────────────────────────────────────────────────────┤
24
+ │ │
25
+ │ Capability │ HyperMind │ LangChain/DSPy │
26
+ │ ───────────────────────────────────────────────────────── │
27
+ │ Generate Motif Pattern │ ✅ │ ✅ │
28
+ │ Generate Datalog Rules │ ✅ │ ✅ │
29
+ │ Execute Motif on Data │ ✅ │ ❌ │
30
+ │ Execute Datalog Rules │ ✅ │ ❌ │
31
+ │ Execute SPARQL Queries │ ✅ │ ❌ │
32
+ │ GraphFrame Analytics │ ✅ │ ❌ │
33
+ │ Deterministic Results │ ✅ │ ❌ │
34
+ │ Audit Trail/Provenance │ ✅ │ ❌ │
35
+ │ ───────────────────────────────────────────────────────── │
36
+ │ TOTAL │ 8/8 │ 2/8 │
37
+ │ │ 100% │ 25% │
38
+ │ │
39
+ │ DIFFERENTIAL: +75% MORE CAPABILITIES │
40
+ │ │
41
+ │ KEY INSIGHT: All frameworks can GENERATE text patterns. │
42
+ │ ONLY HyperMind can EXECUTE them on real data and get RESULTS. │
43
+ │ │
44
+ │ Other frameworks are "prompt libraries." │
45
+ │ HyperMind is an "execution engine." │
46
+ │ │
47
+ │ Reproduce: node benchmark-e2e-execution.js │
48
+ └─────────────────────────────────────────────────────────────────────────────┘
49
+ ```
50
+
51
+ ### SPARQL Generation Benchmark (With Schema Injection)
52
+
17
53
  ```
18
54
  ┌─────────────────────────────────────────────────────────────────────────────┐
19
55
  │ BENCHMARK: LUBM (Lehigh University Benchmark) │
@@ -29,8 +65,8 @@
29
65
  │ ───────────────────────────────────────────────────────────── │
30
66
  │ AVERAGE 4.8% 71.4% +66.7 pp │
31
67
  │ │
32
- KEY INSIGHT: Schema injection improves ALL frameworks equally.
33
- │ HyperMind's value = architecture, not framework.
68
+ NOTE: Schema injection improves ALL frameworks equally on generation.
69
+ │ HyperMind's value = full execution stack, not just generation.
34
70
  │ │
35
71
  │ Reproduce: python3 benchmark-frameworks.py │
36
72
  └─────────────────────────────────────────────────────────────────────────────┘
@@ -801,6 +801,7 @@ class SchemaContext {
801
801
  // STRATEGY 3: Extract property morphisms with domain/range
802
802
  if (ctx.properties.size < 10) {
803
803
  const propQuery = `
804
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
804
805
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
805
806
  PREFIX owl: <http://www.w3.org/2002/07/owl#>
806
807
  SELECT DISTINCT ?prop ?domain ?range ?label WHERE {
@@ -852,7 +853,9 @@ class SchemaContext {
852
853
 
853
854
  ctx._computeSignature()
854
855
  } catch (err) {
855
- // Schema extraction failed - return empty context
856
+ // Schema extraction failed - LOG the error, don't hide it!
857
+ console.error('[SchemaContext.fromKG] Schema extraction error:', err.message)
858
+ console.error('[SchemaContext.fromKG] Stack:', err.stack)
856
859
  }
857
860
 
858
861
  return ctx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rust-kgdb",
3
- "version": "0.6.34",
3
+ "version": "0.6.35",
4
4
  "description": "Production-grade Neuro-Symbolic AI Framework with Schema-Aware GraphDB, Context Theory, and Memory Hypergraph: +86.4% accuracy over vanilla LLMs. Features Schema-Aware GraphDB (auto schema extraction), BYOO (Bring Your Own Ontology) for enterprise, cross-agent schema caching, LLM Planner for natural language to typed SPARQL, ProofDAG with Curry-Howard witnesses. High-performance (2.78µs lookups, 35x faster than RDFox). W3C SPARQL 1.1 compliant.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",