From e61577d2093d8bacf9ab8d655179fba1b5a5c395 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 23 Jun 2006 18:50:03 +0000 Subject: [PATCH] Register qname prefixes when reading file. --- v7/src/xml/turtle.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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)))))) -- 2.25.1