Change unparser for bnodes so that is shows the name.
authorChris Hanson <org/chris-hanson/cph>
Mon, 6 Mar 2006 02:32:15 +0000 (02:32 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 6 Mar 2006 02:32:15 +0000 (02:32 +0000)
v7/src/xml/rdf-struct.scm

index 26ca943deb781e63b3158f6befae6f88b68af544..9131b701944f2183e884017a5c69b2eecb8eb5ae 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: rdf-struct.scm,v 1.2 2006/03/06 02:29:33 cph Exp $
+$Id: rdf-struct.scm,v 1.3 2006/03/06 02:32:15 cph Exp $
 
 Copyright 2006 Massachusetts Institute of Technology
 
@@ -53,6 +53,12 @@ USA.
 
 (define-guarantee rdf-bnode "RDF bnode")
 
+(set-record-type-unparser-method! <rdf-bnode>
+  (standard-unparser-method 'RDF-BNODE
+    (lambda (bnode port)
+      (write-char #\space port)
+      (write (rdf-bnode-name bnode)))))
+
 (define (make-rdf-bnode #!optional name)
   (%make-rdf-bnode
    (cond ((default-object? name)