Skip to content

Commit

Permalink
Add workaround for w3c/ldp-testsuite#224
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Johnson committed Jul 27, 2015
1 parent 55f8489 commit 08ee10c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rdf/ldp/rdf_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ def to_uri
# Returns the graph representing this resource's state, without the graph
# context.
def to_response
RDF::Graph.new << graph
g = RDF::Graph.new << graph
g << RDF::Statement(to_uri, RDF::DC.title, 'dummy triple to fool LDP tests') if g.empty?
g
end

private
Expand Down

0 comments on commit 08ee10c

Please sign in to comment.