rdf-rdfxml 2.1.0 → 2.2.0
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/rdfxml/writer/haml_templates.rb +5 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8310f26e09171c0aceb847061bf5208733d3ec7
|
4
|
+
data.tar.gz: cc188f02a0b0c950cdcd96e406fa3a9574940509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 726c8a2f593b0c43c18e752a658d0208bb2e4f3397e3672c5a38052881e9fee845e32370c7f3d4310dccb0cc8f5c84f5eeb3244adf6d24b49608c0a215858c90
|
7
|
+
data.tar.gz: 1140cf589d9b9a678f9ed7e1b761729276c1c0fc3a1f37504894b23d8d05bb37b6acb4425b4a4d317ba6206e78be3c23473857fa3fc82b87cb6580b02d016c95
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.2.0
|
@@ -38,8 +38,7 @@ module RDF::RDFXML
|
|
38
38
|
- if expanded_type.start_with?('_:')
|
39
39
|
- haml_tag(get_qname(RDF.type), "rdf:nodeID" => expanded_type[2..-1])
|
40
40
|
-else
|
41
|
-
-
|
42
|
-
- haml_tag(get_qname(RDF.type), "", "rdf:resource" => expanded_type)
|
41
|
+
- haml_tag(get_qname(RDF.type), "rdf:resource" => expanded_type)
|
43
42
|
- predicates.each do |p|
|
44
43
|
= yield(p)
|
45
44
|
),
|
@@ -60,11 +59,9 @@ module RDF::RDFXML
|
|
60
59
|
- haml_tag(property, :"<", "xml:lang" => object.language, "rdf:datatype" => (object.datatype unless object.plain?)) do
|
61
60
|
= object.value.to_s.encode(xml: :text)
|
62
61
|
- elsif object.node?
|
63
|
-
-
|
64
|
-
- haml_tag(property, "", "rdf:nodeID" => object.id)
|
62
|
+
- haml_tag(property, :"/", "rdf:nodeID" => object.id)
|
65
63
|
- else
|
66
|
-
-
|
67
|
-
- haml_tag(property, "", "rdf:resource" => relativize(object))
|
64
|
+
- haml_tag(property, :"/", "rdf:resource" => relativize(object))
|
68
65
|
),
|
69
66
|
|
70
67
|
# Outpust for a list
|
@@ -78,11 +75,9 @@ module RDF::RDFXML
|
|
78
75
|
- if recurse && res = yield(object)
|
79
76
|
= res
|
80
77
|
- elsif object.node?
|
81
|
-
-
|
82
|
-
- haml_tag(get_qname(RDF.Description), "", "rdf:nodeID" => (object.id if ref_count(object) > 1))
|
78
|
+
- haml_tag(get_qname(RDF.Description), :"/", "rdf:nodeID" => (object.id if ref_count(object) > 1))
|
83
79
|
- else
|
84
|
-
-
|
85
|
-
- haml_tag(get_qname(RDF.Description), "", "rdf:about" => relativize(object))
|
80
|
+
- haml_tag(get_qname(RDF.Description), :"/", "rdf:about" => relativize(object))
|
86
81
|
),
|
87
82
|
}
|
88
83
|
HAML_TEMPLATES = {base: BASE_HAML}
|