From 9d218252022d5663626443fff9f672e880808b9f Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 6 Mar 2006 02:32:15 +0000 Subject: [PATCH] Change unparser for bnodes so that is shows the name. --- v7/src/xml/rdf-struct.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/v7/src/xml/rdf-struct.scm b/v7/src/xml/rdf-struct.scm index 26ca943de..9131b7019 100644 --- a/v7/src/xml/rdf-struct.scm +++ b/v7/src/xml/rdf-struct.scm @@ -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! + (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) -- 2.25.1