sneak preview
October 17, 2006 on 1:42 pm | In RDF | 3 CommentsLetting 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.
3 Comments
Sorry, the comment form is closed at this time.
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^
Did you mean |js> em = new RDF.Vocabulary(’urn:x-moz:em#’);|?
Comment by Shawn Wilsher — October 17, 2006 #
Yes, I did.
Comment by Axel Hecht — October 17, 2006 #
[...] 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 #