@@ -38,8 +38,7 @@ class Writer
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
- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
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 @@ class Writer
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
- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
64
- - haml_tag(property, "", "rdf:nodeID" => object.id)
62
+ - haml_tag(property, :"/", "rdf:nodeID" => object.id)
65
63
- else
66
- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
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 @@ class Writer
78
75
- if recurse && res = yield(object)
79
76
= res
80
77
- elsif object.node?
81
- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
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
- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
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 }
0 commit comments