shacl 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b8c0531333caf832e7bc49672c567cae4444736c389c569069b0abc24921a80
4
- data.tar.gz: ba80d251ecbe6168a4f8aec684381a9c5121d35473c6b6a7ef5a521ec91873fe
3
+ metadata.gz: 7163286341743b1baf6df4cb49071e39ed693a7864c377c659caf48eed0d0760
4
+ data.tar.gz: e1322902cc13e77334af96fc04e5df6f6bc36b7beb3d3d7c4342b325cb805a15
5
5
  SHA512:
6
- metadata.gz: e4b437531b70b4e58802aabcc01cde88dee8297e54df9971400c0a7cb816d119f39848afcaa06fb5b295fa606383ab92b2dd3c41a624fea6c81f20897be13c09
7
- data.tar.gz: 346ad2a174f973879e93b0b61890a0a1694673b8f9e104f4efda68781ca9337a0ba7fbc3e04f43ee8db172ce731791fffaeb54e6f3dfc6ff0d96d7d972258a12
6
+ metadata.gz: 198cf5da6f65c9e0b180ba5a54d9ef9cb66a00afc7a4a383d48d077b31e5e779236decbf1ba582f0199e2d140f283ab447fc85db0945f75378db07397e7caa40
7
+ data.tar.gz: 5cb2bc87ca22f2b7295ab498d3ad2ab1e53012a7e60ad11a799431d3f0394df4820ac2e0184c6ee4cf0b6f87eef4c102a722209164e336b19418ac9fc00ce02e
data/README.md CHANGED
@@ -82,11 +82,11 @@ This implementation is certainly not performant. Some things that can be be cons
82
82
 
83
83
  ## Dependencies
84
84
 
85
- * [Ruby](https://ruby-lang.org/) (>= 2.4)
86
- * [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.1, => 3.1.8)
87
- * [SPARQL](https://rubygems.org/gems/sparql) (~> 3.1, => 3.1.4)
88
- * [json-ld](https://rubygems.org/gems/sparql) (~> 3.1, => 3.1.7)
89
- * [sxp](https://rubygems.org/gems/sxp) (~> 1.1)
85
+ * [Ruby](https://ruby-lang.org/) (>= 2.6)
86
+ * [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.2)
87
+ * [SPARQL](https://rubygems.org/gems/sparql) (~> 3.2)
88
+ * [json-ld](https://rubygems.org/gems/json-ld) (~> 3.2)
89
+ * [sxp](https://rubygems.org/gems/sxp) (~> 1.2)
90
90
 
91
91
  ## Installation
92
92
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.2.0
data/lib/shacl/shapes.rb CHANGED
@@ -102,8 +102,12 @@ module SHACL
102
102
  [:shapes, super]
103
103
  end
104
104
 
105
- def to_sxp
106
- to_sxp_bin.to_sxp
105
+ ##
106
+ # Transform Shapes into an SXP.
107
+ #
108
+ # @return [String]
109
+ def to_sxp(**options)
110
+ to_sxp_bin.to_sxp(**options)
107
111
  end
108
112
 
109
113
  SHAPES_FRAME = JSON.parse(%({
@@ -59,8 +59,12 @@ module SHACL
59
59
  [:ValidationReport, conform?, results].to_sxp_bin
60
60
  end
61
61
 
62
- def to_sxp
63
- self.to_sxp_bin.to_sxp
62
+ ##
63
+ # Transform Report to SXP
64
+ #
65
+ # @return [String]
66
+ def to_sxp(**options)
67
+ self.to_sxp_bin.to_sxp(**options)
64
68
  end
65
69
 
66
70
  def to_s
@@ -50,8 +50,12 @@ module SHACL
50
50
  end.to_sxp_bin
51
51
  end
52
52
 
53
- def to_sxp
54
- self.to_sxp_bin.to_sxp
53
+ ##
54
+ # Transform ValidationResult to SXP
55
+ #
56
+ # @return [String]
57
+ def to_sxp(**options)
58
+ self.to_sxp_bin.to_sxp(**options)
55
59
  end
56
60
 
57
61
  ##
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.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-02 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -16,110 +16,98 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 3.1.8
19
+ version: '3.2'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '3.1'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 3.1.8
26
+ version: '3.2'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: json-ld
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '3.1'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 3.1.7
33
+ version: '3.2'
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
38
  - - "~>"
48
39
  - !ruby/object:Gem::Version
49
- version: '3.1'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 3.1.7
40
+ version: '3.2'
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: sxp
55
43
  requirement: !ruby/object:Gem::Requirement
56
44
  requirements:
57
45
  - - "~>"
58
46
  - !ruby/object:Gem::Version
59
- version: '1.1'
47
+ version: '1.2'
60
48
  type: :runtime
61
49
  prerelease: false
62
50
  version_requirements: !ruby/object:Gem::Requirement
63
51
  requirements:
64
52
  - - "~>"
65
53
  - !ruby/object:Gem::Version
66
- version: '1.1'
54
+ version: '1.2'
67
55
  - !ruby/object:Gem::Dependency
68
56
  name: sparql
69
57
  requirement: !ruby/object:Gem::Requirement
70
58
  requirements:
71
59
  - - "~>"
72
60
  - !ruby/object:Gem::Version
73
- version: '3.1'
61
+ version: '3.2'
74
62
  type: :runtime
75
63
  prerelease: false
76
64
  version_requirements: !ruby/object:Gem::Requirement
77
65
  requirements:
78
66
  - - "~>"
79
67
  - !ruby/object:Gem::Version
80
- version: '3.1'
68
+ version: '3.2'
81
69
  - !ruby/object:Gem::Dependency
82
70
  name: rdf-spec
83
71
  requirement: !ruby/object:Gem::Requirement
84
72
  requirements:
85
73
  - - "~>"
86
74
  - !ruby/object:Gem::Version
87
- version: '3.1'
75
+ version: '3.2'
88
76
  type: :development
89
77
  prerelease: false
90
78
  version_requirements: !ruby/object:Gem::Requirement
91
79
  requirements:
92
80
  - - "~>"
93
81
  - !ruby/object:Gem::Version
94
- version: '3.1'
82
+ version: '3.2'
95
83
  - !ruby/object:Gem::Dependency
96
84
  name: rdf-turtle
97
85
  requirement: !ruby/object:Gem::Requirement
98
86
  requirements:
99
87
  - - "~>"
100
88
  - !ruby/object:Gem::Version
101
- version: '3.1'
89
+ version: '3.2'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
93
  requirements:
106
94
  - - "~>"
107
95
  - !ruby/object:Gem::Version
108
- version: '3.1'
96
+ version: '3.2'
109
97
  - !ruby/object:Gem::Dependency
110
98
  name: rdf-xsd
111
99
  requirement: !ruby/object:Gem::Requirement
112
100
  requirements:
113
101
  - - "~>"
114
102
  - !ruby/object:Gem::Version
115
- version: '3.1'
103
+ version: '3.2'
116
104
  type: :development
117
105
  prerelease: false
118
106
  version_requirements: !ruby/object:Gem::Requirement
119
107
  requirements:
120
108
  - - "~>"
121
109
  - !ruby/object:Gem::Version
122
- version: '3.1'
110
+ version: '3.2'
123
111
  - !ruby/object:Gem::Dependency
124
112
  name: rspec
125
113
  requirement: !ruby/object:Gem::Requirement
@@ -203,14 +191,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
191
  requirements:
204
192
  - - ">="
205
193
  - !ruby/object:Gem::Version
206
- version: '2.4'
194
+ version: '2.6'
207
195
  required_rubygems_version: !ruby/object:Gem::Requirement
208
196
  requirements:
209
197
  - - ">="
210
198
  - !ruby/object:Gem::Version
211
199
  version: '0'
212
200
  requirements: []
213
- rubygems_version: 3.2.3
201
+ rubygems_version: 3.3.3
214
202
  signing_key:
215
203
  specification_version: 4
216
204
  summary: Implementation of Shapes Constraint Language (SHACL) for RDF.rb