The Ubiquity RDFa project provides a JavaScript RDFa parser that can be used either on its own, or with other parts of the Ubiquity library.
The library is embedded into an HTML or XHTML document, and any RDFa is parsed and stored in a simple triple store. The store can be queried with a subset of SPARQL, expressed in JSON syntax, called jSPARQL.