rdf-isomorphic 3.0.0 → 3.1.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 +2 -2
- data/VERSION +1 -1
- data/lib/rdf/isomorphic.rb +5 -5
- metadata +12 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e25f1613aa5b3314793fc7580133ffc1fac6c339e030fef988247bbefcaecd68
|
4
|
+
data.tar.gz: eee5b445570acb74b91d168f56a17388cf80282220d41f87547bbd92aa9119d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ecbe77b671e660c26b12a55b5641b253968c0c840263df5723fdf55a6be71dba729bd12b4583c12ec70bdf3ccf50d9de52d42ae948a5646ac425cf83aacbb0f
|
7
|
+
data.tar.gz: 9ada5a5bf99875835776da02a709b644a1482d5b8bd2a12e748fde8848470d155d2287ba9ce6184de758758b20df7b526036a4b91a33d888fcb42148c9bcefe2
|
data/README.md
CHANGED
@@ -66,8 +66,8 @@ specs in RDF libraries. Try this in your tests:
|
|
66
66
|
### Information
|
67
67
|
* Author: Ben Lavender <blavender@gmail.com> - <http://bhuga.net>
|
68
68
|
* Author: Arto Bendiken <arto.bendiken@gmail.com> - <http://ar.to>
|
69
|
-
* Source: <http://github.com/
|
70
|
-
* Issues: <http://github.com/
|
69
|
+
* Source: <http://github.com/ruby-rdf/rdf-isomorphic>
|
70
|
+
* Issues: <http://github.com/ruby-rdf/rdf-isomorphic/issues>
|
71
71
|
|
72
72
|
### See also
|
73
73
|
* RDF.rb: <http://ruby-rdf.github.com>
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.1.0
|
data/lib/rdf/isomorphic.rb
CHANGED
@@ -26,8 +26,8 @@ module RDF
|
|
26
26
|
# @return [Boolean]
|
27
27
|
# @example
|
28
28
|
# repository_a.isomorphic_with repository_b #=> true
|
29
|
-
def isomorphic_with?(other, opts
|
30
|
-
!(bijection_to(other, opts).nil?)
|
29
|
+
def isomorphic_with?(other, **opts)
|
30
|
+
!(bijection_to(other, **opts).nil?)
|
31
31
|
end
|
32
32
|
|
33
33
|
alias_method :isomorphic?, :isomorphic_with?
|
@@ -47,7 +47,7 @@ module RDF
|
|
47
47
|
# @param other [RDF::Enumerable]
|
48
48
|
# @param opts [Hash<Symbol => Any>] options
|
49
49
|
# @return [Hash, nil]
|
50
|
-
def bijection_to(other, opts
|
50
|
+
def bijection_to(other, **opts)
|
51
51
|
|
52
52
|
grounded_stmts_match = (count == other.count)
|
53
53
|
|
@@ -65,7 +65,7 @@ module RDF
|
|
65
65
|
|
66
66
|
nodes = RDF::Isomorphic.blank_nodes_in(blank_stmts)
|
67
67
|
other_nodes = RDF::Isomorphic.blank_nodes_in(other_blank_stmts)
|
68
|
-
build_bijection_to blank_stmts, nodes, other_blank_stmts, other_nodes, {}, {}, opts
|
68
|
+
build_bijection_to blank_stmts, nodes, other_blank_stmts, other_nodes, {}, {}, **opts
|
69
69
|
else
|
70
70
|
nil
|
71
71
|
end
|
@@ -91,7 +91,7 @@ module RDF
|
|
91
91
|
# @param [Hash] opts
|
92
92
|
# @return [nil,Hash]
|
93
93
|
# @private
|
94
|
-
def build_bijection_to(anon_stmts, nodes, other_anon_stmts, other_nodes, these_grounded_hashes = {}, other_grounded_hashes = {}, opts
|
94
|
+
def build_bijection_to(anon_stmts, nodes, other_anon_stmts, other_nodes, these_grounded_hashes = {}, other_grounded_hashes = {}, **opts)
|
95
95
|
|
96
96
|
# Create a hash signature of every node, based on the signature of
|
97
97
|
# statements it exists in.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-isomorphic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Lavender
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-12-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdf
|
@@ -17,56 +17,56 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '3.
|
20
|
+
version: '3.1'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '3.
|
27
|
+
version: '3.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rdf-spec
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '3.
|
34
|
+
version: '3.1'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '3.
|
41
|
+
version: '3.1'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '3.
|
48
|
+
version: '3.9'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '3.
|
55
|
+
version: '3.9'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: yard
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.9.
|
62
|
+
version: 0.9.20
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.9.
|
69
|
+
version: 0.9.20
|
70
70
|
description: RDF.rb extension for graph bijections and isomorphic equivalence.
|
71
71
|
email: public-rdf-ruby@w3.org
|
72
72
|
executables: []
|
@@ -91,15 +91,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
91
|
requirements:
|
92
92
|
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: 2.
|
94
|
+
version: '2.4'
|
95
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
97
|
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|
101
|
-
|
102
|
-
rubygems_version: 2.7.3
|
101
|
+
rubygems_version: 3.0.6
|
103
102
|
signing_key:
|
104
103
|
specification_version: 4
|
105
104
|
summary: RDF Graph/Dataset Isomorphism as defined in RDF 1.1 Concepts.
|