rdfobjects 0.11.3 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rdf_objects/parsers.rb +3 -2
- metadata +3 -3
data/lib/rdf_objects/parsers.rb
CHANGED
@@ -333,7 +333,8 @@ module RDFObject
|
|
333
333
|
def attributes_as_assertions(attributes)
|
334
334
|
skip = ["http://www.w3.org/XML/1998/namespace/lang", "http://www.w3.org/XML/1998/namespace/base",
|
335
335
|
"http://www.w3.org/1999/02/22-rdf-syntax-ns#resource", "http://www.w3.org/1999/02/22-rdf-syntax-ns#about",
|
336
|
-
"http://www.w3.org/1999/02/22-rdf-syntax-ns#nodeID", "http://www.w3.org/1999/02/22-rdf-syntax-ns#datatype"
|
336
|
+
"http://www.w3.org/1999/02/22-rdf-syntax-ns#nodeID", "http://www.w3.org/1999/02/22-rdf-syntax-ns#datatype",
|
337
|
+
"http://purl.org/rss/1.0/resource"]
|
337
338
|
attributes.each_pair do | uri, value |
|
338
339
|
next if skip.index(uri)
|
339
340
|
lit = RDF::Literal.new(value, {:datatype=>attributes["http://www.w3.org/1999/02/22-rdf-syntax-ns#datatype"]})
|
@@ -360,7 +361,7 @@ module RDFObject
|
|
360
361
|
end
|
361
362
|
elsif attributes["http://www.w3.org/1999/02/22-rdf-syntax-ns#resource"] or attributes["http://purl.org/rss/1.0/resource"] or
|
362
363
|
(attributes['http://www.w3.org/1999/02/22-rdf-syntax-ns#nodeID'] && @hierarchy.length > 1 && @hierarchy.last[:predicate].nil?)
|
363
|
-
|
364
|
+
res = attributes['http://www.w3.org/1999/02/22-rdf-syntax-ns#resource'] || attributes["http://purl.org/rss/1.0/resource"] || attributes['http://www.w3.org/1999/02/22-rdf-syntax-ns#nodeID']
|
364
365
|
self.current_resource.assert("#{uri}#{name}", @collection.find_or_create(sanitize_uri(res)))
|
365
366
|
layer[:predicate] = layer[:name]
|
366
367
|
else
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdfobjects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 59
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 11
|
9
|
-
-
|
10
|
-
version: 0.11.
|
9
|
+
- 4
|
10
|
+
version: 0.11.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ross Singer
|