RE: Encoding an incomplete date as xsd:dateTime

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:54:04 UTC