rdf 1.1.16.1 → 1.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rdf/format.rb +2 -2
- data/lib/rdf/mixin/enumerable.rb +15 -15
- data/lib/rdf/model/graph.rb +6 -2
- data/lib/rdf/model/list.rb +7 -7
- data/lib/rdf/model/node.rb +1 -2
- data/lib/rdf/model/statement.rb +26 -21
- data/lib/rdf/model/uri.rb +20 -8
- data/lib/rdf/query.rb +1 -1
- data/lib/rdf/query/solution.rb +2 -2
- data/lib/rdf/query/solutions.rb +4 -4
- data/lib/rdf/repository.rb +4 -4
- data/lib/rdf/vocab/schema.rb +5137 -5140
- data/lib/rdf/vocabulary.rb +2 -2
- metadata +2 -2
data/lib/rdf/vocabulary.rb
CHANGED
@@ -607,7 +607,7 @@ module RDF
|
|
607
607
|
#
|
608
608
|
# @yield statement
|
609
609
|
# @yieldparam [RDF::Statement]
|
610
|
-
def each_statement
|
610
|
+
def each_statement
|
611
611
|
attributes.reject {|p| p == :vocab}.each do |prop, values|
|
612
612
|
prop = RDF::Vocabulary.expand_pname(prop) unless prop.is_a?(Symbol)
|
613
613
|
next unless prop
|
@@ -646,7 +646,7 @@ module RDF
|
|
646
646
|
v = RDF::Vocabulary.expand_pname(value)
|
647
647
|
value = v.valid? ? v : RDF::Literal(value)
|
648
648
|
end
|
649
|
-
|
649
|
+
yield RDF::Statement(self, prop, value)
|
650
650
|
rescue KeyError
|
651
651
|
# Skip things eroneously defined in the vocabulary
|
652
652
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-10-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: link_header
|