What is an efficient implementation of the Javascript RDFa parser?

I am looking to implement client side RDFa formatting for a web application. It will be similar to the Mark Birbeck ubiquity-rdfa project .

The project mark looks fantastic, but it has at least two drawbacks:

  • It is slow. Adding RDFa formatting to a simple page causes a noticeable delay in page loading.
  • It's complicated. The ubiquity-rdfa project uses the w3c fresnel specification , which is a complex way to add simple annotations to client markup.

I'm looking for an easier way to add annotations through client code, and I don't mind doing some work to get it.

What I would like is a fast and reliable Javascript RDFa parser.

Some implementations I found include:

I am interested to know if you recommend one of them or another implementation of RDFa Javascript.

Thanks!

+6
javascript parsing rdfa
source share
2 answers

I had a good experience with the RDfa parser in rdfQuery . The source code is here .

+4
source share

VIE contains a fairly simple parser and writer RDFa. The RDFa objects on the page are made available as Backbone.js models and collections. RDFa is written by updating the contents of the Backbone model, which triggers the render action in the view.

In this case, RDFa parsing happens with jQuery.

VIE source code available at github.com/bergie/VIE

+2
source share

All Articles