Skip to content

Commit 78c13fe

Browse files
committed
Don't write out property value both as attribute and element by expanding attribute key to a URI before removing from properties.
1 parent 6778062 commit 78c13fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdf/rdfxml/writer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def render_subject(subject, predicates, options = {}, &block)
154154
{}
155155
end
156156

157-
predicates -= attr_props.keys
157+
predicates -= attr_props.keys.map {|k| expand_curie(k).to_s}
158158
super(subject, predicates, options.merge(:attr_props => attr_props), &block)
159159
end
160160
# See if we can serialize as attribute.

0 commit comments

Comments
 (0)