Skip to content

Commit 0e54921

Browse files
committed
Test example for PN_LOCAL_ESC handling from #21.
1 parent bcb6b9b commit 0e54921

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

examples/pname-slash-escape.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
gem "rdf"
2+
gem "rdf-turtle"
3+
require "rdf/turtle"
4+
ttl = '@prefix p: <http://a.example/>. p:a\/a <http://a.example/p> <http://a.example/o> .'
5+
rdf=RDF::Turtle::Reader.new(ttl) {|reader|
6+
p reader.statements
7+
}

0 commit comments

Comments
 (0)