W3C home > Mailing lists > Public > public-rdf-comments@w3.org > September 2012

Re: Use of XSD namespace in RDF recommendations

From: Dan Brickley <danbri@danbri.org>
Date: Tue, 4 Sep 2012 21:37:48 +0800
Message-ID: <CAFfrAFrSHtcuaQCgCe8t1snOz-tQj0vwRZv9zMu4EPVNHJ5UhQ@mail.gmail.com>
To: Antoine Zimmermann <antoine.zimmermann@emse.fr>
Cc: public-rdf-comments@w3.org, richard@ex-parrot.com
On 4 September 2012 21:11, Antoine Zimmermann
<antoine.zimmermann@emse.fr> wrote:
> FWIW, OWL 2 has a feature to define custom datatypes that can be written
> completely in RDF, without using XML Schema.
>
> Your example for Chapman codes can be written as follows, in Turtle syntax:
>
> @prefix geo: <http://www.example.com/geo#>
> @prefix xsd: <http://www.w3.org/2001/XMLSchema#>
> @prefix owl: <http://www.w3.org/2002/07/owl#>
> @prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>
>
> geo:chapman-code  a  rdfs:Datatype;
>     owl:equivalentClass  [
>         a  rdfs:Datatype;
>         owl:onDatatype  xsd:string;
>         owl:withRestriction ( [xsd:pattern "[a-zA-Z]{3}"] )
>     ] .

Interesting! Are many of these showing up "in the wild" yet?

Dan
Received on Tuesday, 4 September 2012 13:38:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:29:54 UTC