« Small update of the RDFa distiller sofware | Main | Social networks at W3C: foreseeing a 2009 success story! »

RDFa and SVG Tiny (and the RDFa distiller)

W3C has just published the SVG Tiny 1.2 recommendation. Others are much more experts than me to describe the changes in the core functionality compared to the 1.1 version, so I let them do that. However, there is an interesting aspect of the new recommendation regarding the Semantic Web, too. Indeed, SVG Tiny 1.2 has adopted RDFa as one of the means to add metadata to the SVG file itself. The semantics of the RDFa attributes are the same as for XHTML; in fact, the SVG document simply refers to the RDFa specification. Nevertheless, the fact that the host language is SVG does lead to two small differences:
  1. SVG uses xml:base, whereas XHTML1+RDFa disallows it in favor of the base element
  2. SVG inherits from earlier versions the possibility to add RDF/XML directly into the SVG content via the metadata element. An SVG+RDFa distiller ought to understand this RDF graph and merge it with the graph produced by the regular RDFa processing.
The RDFa distiller has been updated to distill SVG+RDFa files, too. To account for those two differences a separate (host=xml) option has been introduced, although the distiller would work out of the box for most of the SVG cases (ie, for those that do not make use of those two features). As an example, I have updated the SVG version of the horizontal SW cube to SVG 1.2 Tiny. It uses the metadata element for the description of the copyright statements, but reuses SVG’s title and desc elements to generate the corresponding dc:title and dc:description RDF statements using RDFa’s @property attribute. Using the RDFa distiller, one can get to the RDF content. Cool…

Filed by Ivan Herman on December 23, 2008 9:16 AM in SVG, Semantic Web, Technology, Tools, W3C・Resources
| | Comments (2) | TrackBacks (0)

Comments

Laurens Holst # 2008-12-23

RDFa disallows xml:base? Argh. Why, why.

Mark Birbeck # 2009-01-08

No...RDFa does not "disallow" @xml:base -- XHTML itself disallows it. Whatever we think of that, we can't go adding it back in, in the spec XHTML+RDFa.

However, note that the XHTML+RDFa spec also says in section 5.5:

Note that XHTML 1.1, and therefore XHTML+RDFa, does NOT permit the use of @xml:base, so the only way to change the [base] is via the base element. If some other XML dialect that supports @xml:base eventually implements RDFa, a conforming RDFa parser for that host language will likely process @xml:base and use its value to set [base].

This was a gentle pointer towards RDFa parsers for languages like SVG, that they should process @xml:base.

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