lib/rdf/vocab/extensions.rb in rdf-vocab-2.1.0 vs lib/rdf/vocab/extensions.rb in rdf-vocab-2.1.1
- old
+ new
@@ -353,10 +353,10 @@
# Create HTML for values (Helper method, needs to be public)
def value_to_html(property, value, tag)
value.map do |v|
%(<#{tag} property="#{property}") +
if v['@value']
- (v['@language'] ? %( language="#{v['@language']}") : "") +
+ (v['@language'] ? %( lang="#{v['@language']}") : "") +
(v['@type'] ? %( datatype="#{RDF::URI(v['@type']).pname}") : "") +
%(>#{v['@value']})
elsif v['@id']
%( resource="#{RDF::URI(v['@id']).pname}">#{RDF::URI(v['@id']).pname})
else