solis 0.84.0 → 0.85.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/model.rb +1 -10
- data/lib/solis/version.rb +1 -1
- 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: c5ae153b954901d398a8c6a517037479a328328f73ca6be4aa09329b9a3a8520
|
4
|
+
data.tar.gz: e88033fe5e255ae465ec8b8dbfa2f41e068992096d947f8c7eef1a1725c1e714
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 127c75074573b7890e27af2563059cc74cbb87e0b8d60f8d9617619cc5028458e13feecabd64691881bc33fa990dbc67b300f2eea6f4f1ed257b6ce8ee2d1890
|
7
|
+
data.tar.gz: c197b88286906b2640d2b5bf13315cff2ceafe9c2980ba8d513c948f4520de6dd692aaf821ba22356f79937e2dace79964a4297b1b2a20ddf9025bc966a12c9b
|
data/lib/solis/model.rb
CHANGED
@@ -499,16 +499,7 @@ values ?s {<#{self.graph_id}>}
|
|
499
499
|
raise Solis::Error::InvalidAttributeError, "#{hierarchy.join('.')}~#{klass.name}.#{attribute} min=#{metadata[:mincount]} and max=#{metadata[:maxcount]}" if data.nil?
|
500
500
|
end
|
501
501
|
|
502
|
-
if data
|
503
|
-
if data.nil?
|
504
|
-
uuid = id.value.split('/').last
|
505
|
-
original_klass = klass.query.filter({ filters: { id: [ uuid ] } }).find_all { |f| f.id == uuid }.first || nil
|
506
|
-
unless original_klass.nil?
|
507
|
-
klass = original_klass
|
508
|
-
data = klass.instance_variable_get("@#{attribute}")
|
509
|
-
end
|
510
|
-
end
|
511
|
-
#if data is still nil
|
502
|
+
if data && metadata.key?(:maxcount) && ( metadata[:maxcount] && metadata[:maxcount] > 0) && graph.query(SPARQL.parse("select (count(?s) as ?max_subject) where { ?s #{self.class.graph_prefix}:#{attribute} ?p}")).first.max_subject > metadata[:maxcount].to_i
|
512
503
|
raise Solis::Error::InvalidAttributeError, "#{hierarchy.join('.')}~#{klass.name}.#{attribute} min=#{metadata[:mincount]} and max=#{metadata[:maxcount]}" if data.nil?
|
513
504
|
end
|
514
505
|
|
data/lib/solis/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.85.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mehmet Celik
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-25 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: activesupport
|