#| -*-Scheme-*-
-$Id: rdf-nt.scm,v 1.5 2006/03/07 02:52:49 cph Exp $
+$Id: rdf-nt.scm,v 1.6 2006/06/10 03:52:00 cph Exp $
Copyright 2006 Massachusetts Institute of Technology
\f
;;;; Encoder
+(define (write-rdf/nt-file triples pathname)
+ (call-with-output-file pathname
+ (lambda (port)
+ (for-each (lambda (triple)
+ (write-rdf/nt triple port))
+ triples))))
+
(define (write-rdf/nt triple port)
(let ((s (rdf-triple-subject triple)))
(cond ((uri? s) (write-uri-ref s port))
#| -*-Scheme-*-
-$Id: xml.pkg,v 1.67 2006/03/07 06:16:26 cph Exp $
+$Id: xml.pkg,v 1.68 2006/06/10 03:52:00 cph Exp $
Copyright 2001,2002,2003,2004,2005,2006 Massachusetts Institute of Technology
read-rdf/nt
read-rdf/nt-file
rdf/nt-file->source
- write-rdf/nt))
\ No newline at end of file
+ write-rdf/nt
+ write-rdf/nt-file))
\ No newline at end of file