solis 0.124.0 → 0.125.0
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/solis/query.rb +7 -2
- data/lib/solis/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c29d1cb5fcfe9ad5579f22c3971aa794edc602b6afa3679a2113e0caecd01aa4
|
|
4
|
+
data.tar.gz: e067c8d0ad39a30dd49c921f5beded800d0f93de83817911c6fafd32486b89dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 939e20fe0909c981ee02d29766b5ac43446db72d94df6a49ca68208a4a7c8d969a543c859b9f8c9e18bb843f5dd34e186356cdd245aa0abb8120b3bee0a7e4ad
|
|
7
|
+
data.tar.gz: 5fb1ae2ea0fd011eb0aab4d306252a27f9f238a0b908fe458895bd1d238974da59ee57d4520dc14a34e49e2fe2fa60bb6b4d8366f3cd4b9fed4c63ce15594527
|
data/lib/solis/query.rb
CHANGED
|
@@ -214,10 +214,16 @@ module Solis
|
|
|
214
214
|
core_query += " LIMIT #{limit} OFFSET #{offset}"
|
|
215
215
|
end
|
|
216
216
|
|
|
217
|
+
# ?o is bound via BIND(?o_raw AS ?o) instead of being projected directly from the
|
|
218
|
+
# triple pattern. Some Virtuoso builds (e.g. 08.03.3335) mis-bind ?o to the wrong
|
|
219
|
+
# object when the open `?s ?p ?o` pattern is combined with the disjunctive
|
|
220
|
+
# language_filter, returning the rdf:type object for every row. Aliasing through
|
|
221
|
+
# BIND blocks that optimizer rewrite and is a no-op on engines without the bug.
|
|
217
222
|
query = %(
|
|
218
223
|
#{prefixes}
|
|
219
224
|
SELECT ?s ?p ?o WHERE {
|
|
220
|
-
?s ?p ?
|
|
225
|
+
?s ?p ?o_raw .
|
|
226
|
+
BIND(?o_raw AS ?o)
|
|
221
227
|
{
|
|
222
228
|
#{core_query}
|
|
223
229
|
}
|
|
@@ -271,7 +277,6 @@ order by ?s
|
|
|
271
277
|
core_query = %(
|
|
272
278
|
SELECT distinct (?concept AS ?s) WHERE {
|
|
273
279
|
#{@filter[:values].join("\n")}
|
|
274
|
-
?concept ?role ?objects.
|
|
275
280
|
#{relationship}
|
|
276
281
|
#{@filter[:concepts].join("\n")}
|
|
277
282
|
|
data/lib/solis/version.rb
CHANGED