W3C home > Mailing lists > Public > public-xg-webid@w3.org > November 2011

Re: WebID-ISSUE-61 (xsd): xsd datatypes [ontologies]

From: Dominik Tomaszuk <ddooss@wp.pl>
Date: Sat, 19 Nov 2011 22:33:20 +0100
Message-ID: <4EC820A0.3070601@wp.pl>
To: WebID Incubator Group WG <public-xg-webid@w3.org>
CC: Henry Story <henry.story@bblfish.net>
On 16.11.2011 17:19, WebID Incubator Group Issue Tracker wrote:
>   - xsd:base64Binary
-1 This datatype allows to incorrect values. For example:
rsa:modulus "XX YY ZZ"^^xsd:base64Binary;
Formally it is correct, but it isn''t hex value.
>   - xsd:hexBinary
But I propose more readable and full-validate datatype based on 
xsd:string and restrictions to hex and "-" sign:
<rdfs:Datatype http://www.w3.org/ns/auth/cert#hex>
   <label xml:lang="en">hexadecimal</label>
   <xsd:base rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
An example:
rsa:modulus "00-cb-24...91-a1"""^^cert:hex
As you can see it is modification of cert#hex, but now it is defined 
strictly and based on well-known xsd:string.

Best regards,
Dominik 'domel' Tomaszuk
Received on Saturday, 19 November 2011 21:33:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:39:48 UTC