From: Chris Hanson Date: Fri, 23 Jun 2006 18:50:03 +0000 (+0000) Subject: Register qname prefixes when reading file. X-Git-Tag: 20090517-FFI~991 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=e61577d2093d8bacf9ab8d655179fba1b5a5c395;p=mit-scheme.git Register qname prefixes when reading file. --- diff --git a/v7/src/xml/turtle.scm b/v7/src/xml/turtle.scm index 12bff0c00..4a5625bcd 100644 --- a/v7/src/xml/turtle.scm +++ b/v7/src/xml/turtle.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: turtle.scm,v 1.2 2006/06/23 17:20:28 cph Exp $ +$Id: turtle.scm,v 1.3 2006/06/23 18:50:03 cph Exp $ Copyright 2006 Massachusetts Institute of Technology @@ -465,8 +465,11 @@ USA. (define (post-process-parser-output stmts base-uri) (let ((prefixes (map (lambda (p) - (cons (cadr p) - (uri->string (merge-uris (caddr p) base-uri)))) + (let ((prefix (cadr p)) + (v (uri->string (merge-uris (caddr p) base-uri)))) + (if prefix + (register-rdf-qname-prefix (symbol prefix ':) v)) + (cons prefix v))) (keep-matching-items stmts (lambda (stmt) (eq? (car stmt) 'prefix))))))