shacl 0.4.1 → 0.4.3

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: d790df44442d54fd3787914c630d9ba5f4879988ce47616dbcc2ff62c8521876
4
- data.tar.gz: bda5f350ad0393933cfe14391341de28e7cf30e6088717d555ccef43192ec28f
3
+ metadata.gz: 3f8ac48c7028a384c1a792315d4d2ae1647bdca8cf50fafe31d1470a06b1d1ff
4
+ data.tar.gz: 6e68e8ff0ecd1a1b694ddc7959867a38232a27d5d9a5253e396e8ed900dce360
5
5
  SHA512:
6
- metadata.gz: f2cd4e4e2bc3686207c430be9cc582c80cc8012fc9719e902f4d72151833b3bd3a5f25d6c2b08005d3e79409378862d3d9b01c230ed794c534e92a05e18a96d3
7
- data.tar.gz: 5c5a6d45bccecaa5cfdbb63a65b95934d42072f1bcce8f4060312ee0fb0c968f6f902bdfd7eba1263b6b67ef98471f272f6ef250db1aa0bd86e0cf3639877474
6
+ metadata.gz: 24c57a73f9d54df1682327433bb8063b84ccaf61636226b7f6e3665693f02be2d4d8fb1b6e4865986eed2961d55cedf31ff5550e216187f7fd3f1dc5bdd74acd
7
+ data.tar.gz: '037729fd05ff01f15a748cfb4a708b0ff5859dd375ee5cedbc4885b77a817359aa752440d3f8f9c72dc19da2254b558e5351226897cc61ceb7cc0b6aca9de2ab'
data/README.md CHANGED
@@ -85,13 +85,17 @@ This implementation is certainly not performant. Some things that can be be cons
85
85
  * More [SHACL Advanced Features](https://w3c.github.io/shacl/shacl-af/).
86
86
  * Support the [SHACL Compact Syntax](https://w3c.github.io/shacl/shacl-compact-syntax/).
87
87
 
88
+ ## Change Log
89
+
90
+ See [Release Notes on GitHub](https://github.com/ruby-rdf/shacl/releases)
91
+
88
92
  ## Dependencies
89
93
 
90
94
  * [Ruby](https://ruby-lang.org/) (>= 3.0)
91
95
  * [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.3)
92
96
  * [SPARQL](https://rubygems.org/gems/sparql) (~> 3.2)
93
97
  * [json-ld](https://rubygems.org/gems/json-ld) (~> 3.3)
94
- * [sxp](https://rubygems.org/gems/sxp) (~> 1.2)
98
+ * [sxp](https://rubygems.org/gems/sxp) (~> 2.0)
95
99
 
96
100
  ## Installation
97
101
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.3
@@ -18,6 +18,7 @@ module SHACL::Algebra
18
18
  options = id ? options.merge(shape: id) : options
19
19
  options[:severity] = @options[:severity] if @options[:severity]
20
20
  options[:severity] ||= RDF::Vocab::SHACL.Violation
21
+ options[:message] = @options[:message] if @options[:message]
21
22
  log_debug(NAME, depth: depth) {SXP::Generator.string({id: id, node: node}.to_sxp_bin)}
22
23
 
23
24
  # Evaluate against builtins
@@ -18,6 +18,7 @@ module SHACL::Algebra
18
18
  options = id ? options.merge(shape: id) : options
19
19
  options[:severity] = @options[:severity] if @options[:severity]
20
20
  options[:severity] ||= RDF::Vocab::SHACL.Violation
21
+ options[:message] = @options[:message] if @options[:message]
21
22
 
22
23
  path = @options[:path]
23
24
  log_debug(NAME, depth: depth) {SXP::Generator.string({id: id, node: node, path: path}.to_sxp_bin)}
@@ -145,7 +145,7 @@ module SHACL
145
145
  # @return [Boolean]
146
146
  def ==(other)
147
147
  return false unless other.is_a?(ValidationResult)
148
- %i(focus path resultSeverity component shape value).all? do |prop|
148
+ %i(focus path resultSeverity component shape value message).all? do |prop|
149
149
  ours = self.send(prop)
150
150
  theirs = other.send(prop)
151
151
  theirs.nil? || (ours && ours.node? && theirs.node?) || ours && ours.eql?(theirs)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shacl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-21 00:00:00.000000000 Z
11
+ date: 2025-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.2'
47
+ version: '2.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.2'
54
+ version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sparql
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: getoptlong
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.2'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.2'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rdf-spec
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +142,14 @@ dependencies:
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: '3.12'
145
+ version: '3.13'
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: '3.12'
152
+ version: '3.13'
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: rspec-its
141
155
  requirement: !ruby/object:Gem::Requirement
@@ -220,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
234
  - !ruby/object:Gem::Version
221
235
  version: '0'
222
236
  requirements: []
223
- rubygems_version: 3.4.19
237
+ rubygems_version: 3.2.33
224
238
  signing_key:
225
239
  specification_version: 4
226
240
  summary: Implementation of Shapes Constraint Language (SHACL) for RDF.rb