Axel Hecht Mozilla in Your Language

October 17, 2006

sneak preview

Filed under: RDF — Axel Hecht @ 1:42 pm

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.

3 Comments

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

    Comment by Shawn Wilsher — October 17, 2006 @ 3:17 pm

  2. Yes, I did.

    Comment by Axel Hecht — October 17, 2006 @ 3:23 pm

  3. […] 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

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress