solis 0.109.0 → 0.111.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/construct.rb +2 -2
- data/lib/solis/query/run.rb +1 -1
- data/lib/solis/query.rb +1 -1
- 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: 35623eaf326ad7c4ebd6010d14d882d4d65bd7839f797834d3cc91eca31b700b
|
|
4
|
+
data.tar.gz: 48129e7ba7cca9fd3b7891bdbd0ddce16ee5b80e3efb7a32e8fc32f8f477c9f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c65075967d819db5dc12e0e17d5dcc02468eb58cf1277452c89f8edcd865a65801ea77ef972c07c139aea250307edc71b8d534c1192131a6b46d236dd4b06e3
|
|
7
|
+
data.tar.gz: 23722f10edaf173597b60aa58b77650e35f17027eccb522cbe8b6ac666a14dd2bad0601208f628ee8f38e239018ab9bbfabf9d6f39497a521e6abd2e9e9044a1
|
|
@@ -23,7 +23,7 @@ module Solis
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def file_path
|
|
26
|
-
"#{ConfigFile.path}/constructs/#{@model.
|
|
26
|
+
"#{ConfigFile.path}/constructs/#{@model.model_class_name.tableize.singularize}.sparql"
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def file_path_hash
|
|
@@ -66,7 +66,7 @@ module Solis
|
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
def construct_graph_name
|
|
69
|
-
"#{parsed_graph_name.scheme}://#{@model.
|
|
69
|
+
"#{parsed_graph_name.scheme}://#{@model.model_class_name.underscore}.#{parsed_graph_name.host}/"
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
def created_at
|
data/lib/solis/query/run.rb
CHANGED
|
@@ -108,7 +108,7 @@ class Solis::Query::Runner
|
|
|
108
108
|
def self.find_root_subjects(grouped, entity)
|
|
109
109
|
# Find subjects that match the requested entity type
|
|
110
110
|
grouped.select do |subject, triples|
|
|
111
|
-
type_triple = triples.find { |t| t[:predicate]
|
|
111
|
+
type_triple = triples.find { |t| t[:predicate] == RDF::RDFV.type }
|
|
112
112
|
next false unless type_triple
|
|
113
113
|
|
|
114
114
|
type_name = type_triple[:object].to_s.split('/').last
|
data/lib/solis/query.rb
CHANGED
|
@@ -136,7 +136,7 @@ module Solis
|
|
|
136
136
|
private
|
|
137
137
|
|
|
138
138
|
def model_construct?
|
|
139
|
-
construct_name = @model.
|
|
139
|
+
construct_name = @model.model_class_name.tableize.singularize rescue @model.class.name.tableize.singularize
|
|
140
140
|
File.exist?("#{ConfigFile.path}/constructs/#{construct_name}.sparql")
|
|
141
141
|
rescue StandardError => e
|
|
142
142
|
false
|
data/lib/solis/version.rb
CHANGED