« 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)
- SVG uses xml:base, whereas XHTML1+RDFa disallows it in favor of the
baseelement - SVG inherits from earlier versions the possibility to add RDF/XML directly into the SVG content via the
metadataelement. An SVG+RDFa distiller ought to understand this RDF graph and merge it with the graph produced by the regular RDFa processing.
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
| Permalink
| Comments (2)
| TrackBacks (0)
Comments
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.
RDFa disallows xml:base? Argh. Why, why.