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 +4 -4
- data/README.md +5 -5
- data/VERSION +1 -1
- data/lib/shacl/shapes.rb +6 -2
- data/lib/shacl/validation_report.rb +6 -2
- data/lib/shacl/validation_result.rb +6 -2
- metadata +18 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7163286341743b1baf6df4cb49071e39ed693a7864c377c659caf48eed0d0760
|
4
|
+
data.tar.gz: e1322902cc13e77334af96fc04e5df6f6bc36b7beb3d3d7c4342b325cb805a15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
86
|
-
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.
|
87
|
-
* [SPARQL](https://rubygems.org/gems/sparql) (~> 3.
|
88
|
-
* [json-ld](https://rubygems.org/gems/
|
89
|
-
* [sxp](https://rubygems.org/gems/sxp) (~> 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
|
+
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
|
-
|
106
|
-
|
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
|
-
|
63
|
-
|
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
|
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
|
+
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|