#| -*-Scheme-*-
-$Id: rdf-struct.scm,v 1.6 2006/03/09 06:23:23 cph Exp $
+$Id: rdf-struct.scm,v 1.7 2006/06/22 04:48:28 cph Exp $
Copyright 2006 Massachusetts Institute of Technology
(guarantee-utf8-string text 'RDF-LITERAL)
(%make-rdf-literal text
(if (or (not type)
- (and (symbol? type)
+ (and (interned-symbol? type)
(complete-match match-language
(symbol-name type))))
type
(let ((type (%rdf-literal-type literal)))
(and (not (absolute-uri? type))
type)))
+
+(define (rdf-literal=? l1 l2)
+ (and (string=? (rdf-literal-text l1) (rdf-literal-text l2))
+ (eq? (%rdf-literal-type l1) (%rdf-literal-type l2))))
\f
(define-record-type <rdf-index>
(%make-rdf-index subjects predicates objects)
#| -*-Scheme-*-
-$Id: xml.pkg,v 1.69 2006/06/10 04:43:09 cph Exp $
+$Id: xml.pkg,v 1.70 2006/06/22 04:48:33 cph Exp $
Copyright 2001,2002,2003,2004,2005,2006 Massachusetts Institute of Technology
rdf-literal-language
rdf-literal-text
rdf-literal-type
+ rdf-literal=?
rdf-literal?
rdf-triple-object
rdf-triple-predicate