Letting all the overall agenda aside, how does this sound?
js> ds = new RDFSimpleTripleDataStore(); js> em = new RDF.Vocabulary('urn:x-moz:em#'); js> ds.assert(RDF.resources[document.location], em.title, RDF.getLiteral("Some English string", null, "en-US")); js> c = ''; ds.forEach(function(t) {c += t;}); c
<about:blank> <urn:x-moz:em#title> "Some English string"@en-US.
Did you mean |js> em = new RDF.Vocabulary(‘urn:x-moz:em#’);|?
Comment by Shawn Wilsher — October 17, 2006 @ 3:17 pm
Yes, I did.
Comment by Axel Hecht — October 17, 2006 @ 3:23 pm
[…] Fortunately, a sneak preview in Pike’s blog shows that the new API will be a great step towards remedying that problem. del.icio.us this! […]
Pingback by The Hundredth Monkey Phenomenon » RDF Support in Mozilla 2.0 — October 18, 2006 @ 12:45 pm