- From: Gavin Carothers <gavin@carothers.name>
- Date: Mon, 16 Dec 2013 07:21:36 -0800
- To: Guus Schreiber <guus.schreiber@vu.nl>
- Cc: RDF WG <public-rdf-wg@w3.org>
- Message-ID: <CAPqY83x_09MBHMYfymJ+9nALzB6h9mKVxxahy7Q_RVREzdRBUA@mail.gmail.com>
Yes, sorry. RDF/XML defines parseType literal in terms of creating the lexical value for the XMLLiteral datatype. Previously the LEXICAL value was required to be c14n XML, this is no longer the case. http://www.w3.org/TR/REC-rdf-syntax/#parseTypeLiteralPropertyElt Proposed new algorithm in terms of most recent XPath: For element e and the literal l that is the rdf:parseType="Literal" content. l is not transformed by the syntax data model mapping into events (as noted in 6 Syntax Data Model) but remains an XML Infoset of XML Information items. l is transformed into the lexical form of an XML literal in the RDF graph x (a Unicode string) by the following algorithm. This does not mandate any implementation method — any other method that gives the same result may be used. Use l to construct an XPath sequence ( http://www.w3.org/TR/xpath-datamodel-30/#sequences) Apply http://www.w3.org/TR/xpath-functions-30/#func-serialize to this sequence to give a xs:string x The Unicode string x is used as the lexical form of l This Unicode string x SHOULD be in NFC Normal Form C[NFC] 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-string-value o.string-value . Advantages: No longer requires encoding and decoding of bytes to Unicode strings No longer requires c14n Old algorithm is equivalent but more complex in all cases XPath 3 is already at PR. On Sun, Dec 15, 2013 at 5:06 PM, Guus Schreiber <guus.schreiber@vu.nl>wrote: > Gavin, > > Would it be possible for you to prioritize this action? > > ACTION-333 Make proposal to change rdf/xml to deal with rdf:xmlliteral > > Thanks, > Guus >
Received on Monday, 16 December 2013 15:22:04 UTC