« Ensuring Accessibility Support in HTML5 | Main | Workshop Tackles the Hard Problem of Identity in the Browser »

RDFa 1.1 distiller and validator (beta)


The distiller for RDFa 1.0 has been around for quite some time now, and has been widely used. With the advance of RDFa 1.1, I have made a fairly extensive re-write of the distiller, though, which is now available as a “shadow” RDFa 1.1 distiller. “Shadow”, because it is still beta and it does not (yet) replace the current, “official” distiller. Furthermore, RDFa 1.1 is still in evolution and hence the shadow version may still change.

Apart from the obvious changes in implementing the new RDFa features (profiles, @vocab, usage of @prefix instead of @xmlns, possibility to use full URI-s everywhere, etc.), the package has also been restructured and some old problems have been taken care of. For example, the current code looks at the HTTP return message for the content type, and decides whether the code is to be run through Python’s XML parser or through the HTML5 parser accordingly; the character encoding field of the return message is also taken into account to set the right encoding when parsing, etc.

There is also a validator service now. Although this looks like a separate service, it is, in fact, just a shell on top of the same distiller code. Indeed, RDFa 1.1 cleanly defines an error mechanism by returning RDF error triples as part of a separate graph; the only job of the validator service is to interpret these triples and display them on the screen in a human readable way. Hopefully this may become useful, too.

And a blatant self-promotion: I will give a presentation on RDFa next week, at the SemTech conference in San Francisco…

Filed by Ivan Herman on May 31, 2011 5:10 PM in Semantic Web, Tools, Web Design
| | Comments (2) | TrackBacks (0)

Comments

Dan Brickley # 2011-06-10

Cool! Will you contrib / integrate this with rdflib? Pretty please? :)

Does it work with all of RDFa 1.1 profiles yet? specifically those that declare terms...

Ivan Herman # 2011-06-11

Dan,

when the time comes, ie, when the code is final, I will see what I can do to replace the current RDFa1.0 code in RDFLib with this one. It should be doable... But I do not want to do that until the code is final, ie, RDFa 1.1 is final.

As for the profiles: it should work, modulo bugs...

I.

Leave a comment

Note: this blog is intended to foster polite on-topic discussions. Comments failing these requirements and spam will not get published. Please, enter your real name and email address. Every individual comment is reviewed by the W3C staff. This may take some time, thank you for your patience.

You can use the following HTML markup (a href, b, i, br/, p, strong, em, ul, ol, li, blockquote, pre) and/or Markdown syntax.

Your comment


About you

This blog is written by W3C staff and working group participants,
 and maintained by Coralie Mercier.
Authorized parties may log in to create a new entry.
Powered by Movable Type, magpierss and a lot of Web Technology