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 +4 -4
- data/README.md +5 -1
- data/VERSION +1 -1
- data/lib/shacl/algebra/node_shape.rb +1 -0
- data/lib/shacl/algebra/property_shape.rb +1 -0
- data/lib/shacl/validation_result.rb +1 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f8ac48c7028a384c1a792315d4d2ae1647bdca8cf50fafe31d1470a06b1d1ff
|
4
|
+
data.tar.gz: 6e68e8ff0ecd1a1b694ddc7959867a38232a27d5d9a5253e396e8ed900dce360
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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) (~>
|
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
|
+
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.
|
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:
|
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: '
|
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: '
|
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.
|
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.
|
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.
|
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
|