I've a Data Property ShowTime with domain Show and range xsd:dateTime
. I'd like to know if there is a way to assert that the dataTime range must be included in "2018-01-01TX:X:X", in order to have a fixed date and a variable hour on that date.
I've tried with Manchester Syntax:
xsd:dateTime[>="2018-01-01T00:00:00"^^xsd:dateTime, <"2018-01-01T00:00:00"^^xsd:dateTime]
But told me that the syntax is not correct.
P.S. I'm using HermiT.
Can someone help me? Thanks.
edited
Concrete example. Suppose we have a Show
class, which represents the concept of a cinema show. Each show has date and a start time. So, we can trivially represent these informations through a data property showDateTime
with domain Show
and range xsd:dateTime
(something like "2018-01-16T18:00:00").
The problem is that i need to categorize each show in a daily time slot (morning, afternoon, early evening, late night) according to the start time only. I tried with SWRL, property restriction... I haven't found a way to tell the reasoner not to consider the date, which obviously takes precedence over the time and messes me up.
So, i thought of dividing date and time into two separate properties (showDate
and showTime
), always of type xsd: dateTime, and placing a restriction on showTime
binding it to have a fixed date (ex. 2018-01-01). In this way I could define the MorningShow class as follow:
showTime some xsd:dateTime[>= "2018-01-01T07:00:00"^^xsd:dateTime ,
<= "2018-01-01T13:00:00"^^xsd:dateTime]
This is the reason for my question.