W3C home > Mailing lists > Public > semantic-web@w3.org > February 2014

RE: Encoding an incomplete date as xsd:dateTime

From: Svensson, Lars <L.Svensson@dnb.de>
Date: Tue, 11 Feb 2014 08:53:28 +0000
To: Michael Brunnbauer <brunni@netestate.de>, Renato Iannella <ri@semanticidentity.com>
Cc: Semantic Web <semantic-web@w3.org>, "public-lod@w3.org community" <public-lod@w3.org>
Message-ID: <24637769D123E644A105A0AF0E1F92EFA43DE7B7@dnbf-ex1.AD.DDB.DE>
Hi all,

 
> On Tue, Feb 11, 2014 at 01:55:07PM +1000, Renato Iannella wrote:
> > We can add xsd:gYear to the range for the birthdate data property to
> support "year-only" birth dates.
> > (and possibly to the anniversary property too)
> 
> This would cause all values to be xsd:gYear *and* xsd:dateTime. Those two
> do
> not intersect, or do they ?

We can encode the range thus:

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<> rdfs:range [
	a owl:Class;
	owl:unionOf (
		xsd:dateTime 
		xsd:gYear
	)
] .

That way the range is the union of xsd:dateTime and xsd:gYear and not their intersection.

Best,

Lars
Received on Tuesday, 11 February 2014 08:53:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 11 February 2014 08:54:03 UTC