- From: Adrian Gschwend <ktk@netlabs.org>
- Date: Fri, 17 Jan 2014 16:00:04 +0100
- To: "public-rdfjs@w3.org" <public-rdfjs@w3.org>
- Message-ID: <52D94574.4000002@netlabs.org>
Hi group, Can anyone help me understanding how proper handling of Literal should work in the RDF Interfaces API? I refer to: http://www.w3.org/TR/rdf-interfaces/#widl-RDFEnvironment-createLiteral-Literal-DOMString-value-DOMString-language-NamedNode-datatype and http://www.w3.org/TR/rdf-interfaces/#idl-def-Literal In rdfstore the functions look like this: https://github.com/antoniogarrote/rdfstore-js/blob/a894cd7d5aa68de569b4dfd65b18b0ed583a50c7/src/js-query-engine/src/rdf_js_interface.js#L244 and https://github.com/antoniogarrote/rdfstore-js/blob/a894cd7d5aa68de569b4dfd65b18b0ed583a50c7/src/js-query-engine/src/rdf_js_interface.js#L366 When my Literal contains double quotes this results in a broken Literal (like HTML code as Literal). Do I have to take care of that or should this be handled by RDF Interfaces? I am not really sure about that after reading the specs. And related to that, what is the difference between toString and valueOf in that regard? I see the specs but I don't understand it. regards Adrian -- Adrian Gschwend @ netlabs.org ktk [a t] netlabs.org ------- Open Source Project http://www.netlabs.org
Received on Friday, 17 January 2014 15:00:40 UTC