W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > August 2003

Draft of XML Literal words for RDF/XML syntax doc

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Mon, 4 Aug 2003 17:18:25 +0100
To: w3c-rdfcore-wg@w3.org
Message-Id: <20030804171825.2b5b555c.dave.beckett@bristol.ac.uk>

The words below are to replace the content of 7.2.17 Production parseTypeLiteralPropertyElt at
  http://www.w3.org/2001/sw/RDFCore/TR/WD-rdf-syntax-grammar-20030117/#parseTypeLiteralPropertyElt

It's HTML but I've used lynx to make it text

Dave

----

For element e and the literal l.

l is an XML Infoset of XML Information items and is not transformed by
the  mapping  to  the  syntax  data  model. l (rdf:parseType="Literal"
content) is mapped to an [1]XML literal in the RDF graph.

This  mapping  from  the XML information items in l to the XML literal
Unicode  string  x is done as follows, or by any method that gives the
same result:
  * Use  l  to construct an XPath[XPATH] [2]node-set (a [3]document
    subset)
  * Apply   [4]Exclusive  XML  Canonicalization  [XML-XC14N])  with
    comments  and with empty [5]InclusiveNamespaces PrefixList to this
    node-set to give a sequence of octets s
  * This sequence of octets s can be considered to be a UTF-8 encoding
    of some Unicode string x (sequence of Unicode characteres)
  * The Unicode string x is used as the lexical form of l

Then  o := typed-literal(literal-value := x, literal-datatype :=
http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral    )   and   the
following statement is added to the graph:

e.parent.subject.string-value <e.URI> o.string-value .
 
---
References
 
   1. http://www.w3.org/2001/sw/RDFCore/TR/WD-rdf-concepts-20030117/#dfn-rdf-XMLLiteral
   2. http://www.w3.org/TR/1999/REC-xpath-19991116#infoset
   3. http://www.w3.org/TR/2002/REC-xml-exc-c14n-20020718/#def-document-subset
   4. http://www.w3.org/TR/2002/REC-xml-exc-c14n-20020718/
   5. http://www.w3.org/TR/2002/REC-xml-exc-c14n-20020718/#def-InclusiveNamespaces-PrefixList
Received on Monday, 4 August 2003 12:21:32 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:59:33 EDT