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 +4 -4
- data/lib/rdf/lmdb/version.rb +1 -1
- data/lib/rdf/lmdb.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0357ac470c10b3649667a3f2fe9890dce9443dd9401b062c3662f421570b3443
|
4
|
+
data.tar.gz: 3a716964ef9cd4c6ea64fe362e0cdf695c623dd9c7b27022ec5b73494982587c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a2f42c88580b0d2d4351762f8445fc8d215078af41190996250465cab88402d3772d86844376271a88dcc7e2d500137a0bf91ea5ee0a35394f89c83d4b91183
|
7
|
+
data.tar.gz: 19b5f8bb2b11457e7be8dfc71ce8b606a3ef55af4de5bd0c7e3dce24dd010ae29bcea033b8f1fc8faaccdb764c54fb1ec2bcf7d3246087aab435aa59a9a79f8e
|
data/lib/rdf/lmdb/version.rb
CHANGED
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
|
-
|
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
|
+
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-
|
10
|
+
date: 2025-05-24 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: bundler
|