Maggot Brain

Free your mind and your ass will follow.

« PreviousNext »

sneak preview

17 October 2006

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.

Posted in RDF | Trackback | del.icio.us | Top Of Page

    3 Responses to “sneak preview”

  1. Shawn Wilsher Says:

    Did you mean |js> em = new RDF.Vocabulary(’urn:x-moz:em#’);|?

  2. Axel Hecht Says:

    Yes, I did.

  3. The Hundredth Monkey Phenomenon » RDF Support in Mozilla 2.0 Says:

    [...] 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! [...]