- From: Martin Hepp <martin.hepp@unibw.de>
- Date: Thu, 15 Jan 2015 08:28:56 +0100
- To: James M Snell <jasnell@gmail.com>
- Cc: W3C Web Schemas Task Force <public-vocabs@w3.org>
Hi all: Note that QuantitativeValue already allows for open and closed intervals: foo:ClosedInterval a schema:QuantitativeValue; schema:minValue 3; schema:maxValue 7. foo:RightOpenInterval a schema:QuantitativeValue; schema:minValue 3. foo:LeftOpenInterval a schema:QuantitativeValue; schema:maxValue 7. foo:PointValue a schema:QuantitativeValue; schema:value 3. (which a reasoner should expand to foo:ClosedInterval a schema:QuantitativeValue; schema:value 3; schema:minValue 3; schema:maxValue 3. thanks to value being a subproperty of both minValue and maxValue - these subproperty axioms are not yet in schema.org, because at the time of the GoodRelations integration, there was no notion of subproperties in schema.org. The nice thing about this is that you can handle point values and intervals with the same queries - a search for a car with 3 seats will also find a car that has 2 - 4 seats, because you will simply search for a car with at least 3 seats). This is suitable for all quantities except for datetime and date intervals (hours, seconds, months is fine thanks to respective unit codes for schema:unitCode). foo:AtLeastOneMinute a schema:QuantitativeValue; schema:minValue 3; schema:unitCode "MIN". foo:UpToThreeHours a schema:QuantitativeValue; schema:maxValue 3; schema:unitCode "HUR". For datetime and date intervals, I decided back then that dedicated pairs of properties like validFrom and validThrough were more useful. Martin -------------------------------------------------------- martin hepp e-business & web science research group universitaet der bundeswehr muenchen e-mail: martin.hepp@unibw.de phone: +49-(0)89-6004-4217 fax: +49-(0)89-6004-4620 www: http://www.unibw.de/ebusiness/ (group) http://www.heppnetz.de/ (personal) skype: mfhepp twitter: mfhepp On 15 Jan 2015, at 04:37, James M Snell <jasnell@gmail.com> wrote: > FYI... > > ---------- Forwarded message ---------- > From: James M Snell <jasnell@gmail.com> > Date: Wed, Jan 14, 2015 at 4:55 PM > Subject: FYI: Interval Vocabulary > To: "public-socialweb@w3.org" <public-socialweb@w3.org> > > > Just wanted to make folks aware of this.. > > http://ns.jasnell.me/interval > > It's a small vocabulary for representing bounded intervals (totally > ordered sets). It is born out of various Activity Streams use case > including the ability to indicate validity date ranges for certain > types of objects, identifying filter ranges for Collection items and > other wonderful things. > > It ought to be fairly straightforward. Would eventually be interested > in seeing this become a WG Note but definitely not a priority. > > - James >
Received on Thursday, 15 January 2015 07:29:28 UTC