W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > November 2011

Default Vocabulary for datatype: datatypeLibrary attribute

From: Dominik Tomaszuk <ddooss@wp.pl>
Date: Tue, 22 Nov 2011 22:02:14 +0100
Message-ID: <4ECC0DD6.7010403@wp.pl>
To: public-rdfa-wg@w3.org
Hi RDFa WG,

We use only one datatype library in @datatype very often. Also in many 
cases it is just XML Schema Datatypes. I propose @datatypeLibrary to 
declare datatype vocabluary to use in @datatype. It is something like 
@vocab and very similar to RELAX NG datatyping [1] For instance:
<div vocab="http://dbpedia.org/property/" 
datatypeLibrary="http://www.w3.org/2001/XMLSchema#" 
about="http://dbpedia.org/resource/Albert_Einstein">
   <span property="dateOfBirth" datatype="date">1879-03-14</span>
</div>
Instead of:
<div prefix="dbp: http://dbpedia.org/property/
xsd: http://www.w3.org/2001/XMLSchema#" 
about="http://dbpedia.org/resource/Albert_Einstein">
   <span property="dateOfBirth" datatype="xsd:date">1879-03-14</span>
</div>

[1] http://relaxng.org/spec-20011203.html#IDAXYYR

Best regards,
Dominik 'domel' Tomaszuk
Received on Tuesday, 22 November 2011 21:04:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:55:18 GMT