- From: Toby Inkster <tai@g5n.co.uk>
- Date: Wed, 11 Aug 2010 00:09:52 +0100
- To: www-font@w3.org
Why does WOFF invent its own metadata format rather than reusing one of
the W3C's existing ones? RDF/XML or RDFa could easily express the kind of
data that WOFF seems to need.
The example in appendix A could be expressed in RDF/XML as:
<woff:WOFF
xmlns="http://purl.org/dc/terms/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:woff="http://example.org/woff#"
rdf:about="">
<identifier>com.example.fontvendor.demofont.rev12345</identifier>
<publisher>
<foaf:Organization foaf:name="Font Vendor">
<foaf:homepage rdf:resource="http://fontvendor.example.com" />
</foaf:Organization>
</publisher>
<creator>
<foaf:Person foaf:name="Font Designer"
<foaf:homepage rdf:resource="http://fontdesigner.example.com" />
</foaf:Person>
</creator>
<contributor>
<foaf:Person foaf:name="Another Font Designer"
<foaf:homepage rdf:resource="http://anotherdesigner.example.org" />
</foaf:Person>
</contributor>
<contributor>
<foaf:Person foaf:name="Yet Another" />
</contributor>
<description xml:lang="en">A member of the Demo font family.
This font is a humanist sans serif style designed
for optimal legibility in low-resolution environments.
It can be obtained from fontvendor.example.com.
</description>
<license>
<rdf:Description rdf:about="http://fontvendor.example.com/license">
<identifier>fontvendor-web-corporate-v2</identifier>
<description xml:lang="en">A license goes here.</description>
<description xml:lang="fr">Un permis va ici.</description>
</rdf:Description>
</license>
<rights xml:lang="en">Copyright ©2009 Font Vendor</rights>
<rights xml:lang="ko">저작권 ©2009 Font Vendor</rights>
<woff:trademark xml:lang="en">Demo Font is a trademark of
Font Vendor
</woff:trademark>
<woff:trademark xml:lang="fr">Demo Font est une marque
déposée de Font Vendor
</woff:trademark>
<woff:trademark xml:lang="de">Demo Font ist ein eingetragenes
Warenzeichen der Font Vendor
</woff:trademark>
<woff:trademark xml:lang="ja">Demo FontはFont
Vendorの商標である</woff:trademark>
<woff:licensee foaf:name="Wonderful Websites, Inc." />
</woff:WOFF>
I've not included the example extension - RDF is inherently extensible -
indeed, the "woff:" vocab in the above is an off-the-cuff extension to the
well-established Dublin Core vocab.
It seems a mistake to reinvent the wheel when you could leverage a large
body of existing parsers, serialisers and other tools.
-Toby
Received on Tuesday, 10 August 2010 23:10:28 UTC