Skip to content

Commit db1a1f7

Browse files
committed
Dump graph with :ttl, if available, otherwise :ntriples.
1 parent c8e691a commit db1a1f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdf/spec/inspects.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def inspect
2222

2323
class RDF::Graph
2424
def inspect
25-
"\n" + dump(:n3) + "\n"
25+
"\n" + dump(RDF.const_defined?(:Turtle) ? :ttl : :ntriples, standard_prefixes: true) + "\n"
2626
end
2727
end
2828

0 commit comments

Comments
 (0)