You can better understand how the API works by looking at the unit
tests found in the openanzo.js project. There is a foaf browser
example in the 'examples' directory you can also look at. I can't
give you specifics on how to use openanzo.js in a firefox extension
because i have never written one, but from what i've read it seems
like it's not difficult to embed or reference javascript. If you get
really stuck and can't find any way to do this let me know.
cheers,
-Rouben Meschian (rubo)
> --
> You received this message because you are currently subscribed to the "OpenAnzo" group.
>
> To post to this group, send email to open...@googlegroups.com
> To unsubscribe from this group, send email to openanzo-u...@googlegroups.com
>
> For more options, visit this group at http://groups.google.com/group/openanzo?hl=en
Hi Charlie,
The Open Anzo JavaScript API supports serializing RDF into the N-Triples
format. It can serialize to a string. As for writing that string to a
file, you'll have to use whatever mechanisms exist in Firefox extensions
for that.
The relevant method for serialization is:
anzo.rdf.serializer.NTripleSerializer.serialize(graph)
See the NTripleSerializerTest.js file for example usage:
http://www.openanzo.org/projects/openanzo/browser/openanzo/trunk/org.openanzo.js/src/main/resources/docroot/anzo/tests/rdf/serializer/NTripleSerializerTest.js
--
Jordi Albornoz Mulligan
Founding Engineer - Cambridge Semantics
jo...@cambridgesemantics.com
(617) 401-7321