rdf-lmdb 0.3.4 → 0.3.5

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: 0357ac470c10b3649667a3f2fe9890dce9443dd9401b062c3662f421570b3443
4
+ data.tar.gz: 3a716964ef9cd4c6ea64fe362e0cdf695c623dd9c7b27022ec5b73494982587c
5
5
  SHA512:
6
- metadata.gz: e1dfec2d450287001e0bd2ee8998844f66ea4196fab3d644a5dfc12104b482e43cbff882e2697f6661b5f8bedb6bf9f5d07e9bb94f2edebb9813faf7da23e10a
7
- data.tar.gz: 46aec34649aaff508943353d7de50288b9a2eed00083b37204f65969ea9401ab58fb39a904935a8aefac7b39a62d394cbd65c8e34734a53127b1a24265735fee
6
+ metadata.gz: 0a2f42c88580b0d2d4351762f8445fc8d215078af41190996250465cab88402d3772d86844376271a88dcc7e2d500137a0bf91ea5ee0a35394f89c83d4b91183
7
+ data.tar.gz: 19b5f8bb2b11457e7be8dfc71ce8b606a3ef55af4de5bd0c7e3dce24dd010ae29bcea033b8f1fc8faaccdb764c54fb1ec2bcf7d3246087aab435aa59a9a79f8e
@@ -1,5 +1,5 @@
1
1
  module RDF
2
2
  module LMDB
3
- VERSION = "0.3.4"
3
+ VERSION = "0.3.5"
4
4
  end
5
5
  end
data/lib/rdf/lmdb.rb CHANGED
@@ -516,7 +516,7 @@ Currently you have to dump from the old layout and reload the new one. Sorry!
516
516
  pattern = pattern.to_h
517
517
 
518
518
  # flag if the graph is a variable
519
- gv = pattern[:graph_name] && pattern[:graph_name].variable?
519
+ gv = !pattern[:graph_name].nil? && pattern[:graph_name].variable?
520
520
 
521
521
  # hash of terms we get from the pattern
522
522
  thash = pattern.reject { |_, v| !v or v.variable? }
@@ -585,15 +585,19 @@ Currently you have to dump from the old layout and reload the new one. Sorry!
585
585
  anchor = [ix].pack ?J
586
586
  return unless db.has? anchor
587
587
 
588
+ # warn "ix: #{ix} #{ihash.inspect} orr bug here?"
589
+
588
590
  db.each_value anchor do |spack|
589
591
  spo = @dbs[:statement][spack]
592
+ # warn "node: #{spack.unpack1 ?J} spo: #{spo.unpack 'J*'}"
590
593
  gpack = [ihash[:graph_name]].pack ?J
591
- return unless @dbs[:stmt2g].has? spack, gpack
594
+ next unless @dbs[:stmt2g].has? spack, gpack
592
595
  spo = resolve_terms spo
593
596
  yield RDF::Statement(*spo, graph_name: thash[:graph_name])
594
597
  end
595
598
  else
596
599
  # okay we will have either two or three terms
600
+ # warn 'lol bug here?'
597
601
 
598
602
  # select the pair of term keys with the lowest non-zero
599
603
  # 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.5
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-05-24 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler