rdf-lmdb 0.3.4 → 0.3.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af391230f651d1a891379a96c2ce2fd5a28dc0fc1e094c61bdfa285d0f5778d3
4
- data.tar.gz: da776b5c1acff8e8184f99955868124aecdcc386f48a4fb7d2710fef77a9bfb5
3
+ metadata.gz: 8bd37a5a5b62c89a2096f857dea6461798dc5bfc48d155b902979d97cf949214
4
+ data.tar.gz: f332981a1cfb15aa127d3a73b1356a5664221f057944ec21febf1c8c863de261
5
5
  SHA512:
6
- metadata.gz: e1dfec2d450287001e0bd2ee8998844f66ea4196fab3d644a5dfc12104b482e43cbff882e2697f6661b5f8bedb6bf9f5d07e9bb94f2edebb9813faf7da23e10a
7
- data.tar.gz: 46aec34649aaff508943353d7de50288b9a2eed00083b37204f65969ea9401ab58fb39a904935a8aefac7b39a62d394cbd65c8e34734a53127b1a24265735fee
6
+ metadata.gz: cbda446d51f8d780de5bee1aa772a05ded8263eb820aa758c320f96cdd892b8fedb3925e409225d315bf17570604c4a63097e62bb8d9e776025042eb98b54776
7
+ data.tar.gz: 50f8483a107b10593bcc527ec7f25ef5e3505ebe1d21b6ee2cde2286142bf308036130365e2e810e0a498a6e283f6cb2c17d3c2b1c4fc3f302de86fb2daa4966
@@ -1,5 +1,5 @@
1
1
  module RDF
2
2
  module LMDB
3
- VERSION = "0.3.4"
3
+ VERSION = "0.3.6"
4
4
  end
5
5
  end
data/lib/rdf/lmdb.rb CHANGED
@@ -463,6 +463,8 @@ Currently you have to dump from the old layout and reload the new one. Sorry!
463
463
 
464
464
  @dbs[:stmt2g].each_value spack do |gpack|
465
465
  gint = gpack.unpack1 ?J
466
+ # setting the default graph to zero seems like something
467
+ # i would do
466
468
  next if has_graph and gint == 0
467
469
  graph = resolve_term gpack, cache: cache, write: true
468
470
  block.call RDF::Statement(*spo, graph_name: graph)
@@ -585,15 +587,19 @@ Currently you have to dump from the old layout and reload the new one. Sorry!
585
587
  anchor = [ix].pack ?J
586
588
  return unless db.has? anchor
587
589
 
590
+ # warn "ix: #{ix} #{ihash.inspect} orr bug here?"
591
+
588
592
  db.each_value anchor do |spack|
589
593
  spo = @dbs[:statement][spack]
594
+ # warn "node: #{spack.unpack1 ?J} spo: #{spo.unpack 'J*'}"
590
595
  gpack = [ihash[:graph_name]].pack ?J
591
- return unless @dbs[:stmt2g].has? spack, gpack
596
+ next unless @dbs[:stmt2g].has? spack, gpack
592
597
  spo = resolve_terms spo
593
598
  yield RDF::Statement(*spo, graph_name: thash[:graph_name])
594
599
  end
595
600
  else
596
601
  # okay we will have either two or three terms
602
+ # warn 'lol bug here?'
597
603
 
598
604
  # select the pair of term keys with the lowest non-zero
599
605
  # cardinality
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-lmdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Taylor
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-05-07 00:00:00.000000000 Z
10
+ date: 2025-06-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler