Re: [RSP-QL] Regarding standalone keyword 'NOW'

Hi again!

I realised that perhaps the interpretation of CQELS 'NOW' is really something more along the lines of "the triples of the last reported timestamp of this stream". This would mean that it is the equivalent of a physical window (sliding as data comes in) but with the window defined by a timestamp rather than as a number of triples. If this is the case then is it possible to model without further exploring some stateful operators? Anyone involved in the CQELS project who could clarify this a bit?

Cheers,
Robin

From: Robin Keskisärkkä <robin.keskisarkka@liu.se<mailto:robin.keskisarkka@liu.se>>
Date: Wednesday 16 December 2015 15:47
To: Daniele Dell'Aglio <daniele.dellaglio@polimi.it<mailto:daniele.dellaglio@polimi.it>>, Wetz Peter <peter.wetz@tuwien.ac.at<mailto:peter.wetz@tuwien.ac.at>>, "public-rsp@w3.org<mailto:public-rsp@w3.org>" <public-rsp@w3.org<mailto:public-rsp@w3.org>>
Subject: Re: [RSP-QL] Regarding standalone keyword 'NOW'

Hi!
One use of the 'NOW' keyword would be filtering of a rapid stream, basically using it in a preprocessing step where a window interval might not be relevant to the filter. However, from my perspective I can not come up with no scenario where it could not equally well be replaced by a small window range with a small step parameter. The example could then be rewritten as:

REGISTER STREAM :filtered AS

CONSTRUCT ISTREAM { ?person :in ?room }
FROM NAMED WINDOW :w ON :superFastStream [RANGE PT0.0001S STEP RANGE PT0.000001S]
WHERE {
    WINDOW :w {
       ?event a :Observation ;
                    :observedPerson ?person ;
                    :sensorLocation ?room .
   }
}

What I like about this way of expressing it is that the meaning is more intuitive since the interval is stated clearly. The reason I brought it up was to see if there were any strong proponents for this, in particular I had in mind the implementors of CQELS who may have a different take on this issue, especially with regard to Istream.

Cheers,
Robin

From: Daniele Dell'Aglio <daniele.dellaglio@polimi.it<mailto:daniele.dellaglio@polimi.it>>
Date: Wednesday 16 December 2015 15:23
To: Wetz Peter <peter.wetz@tuwien.ac.at<mailto:peter.wetz@tuwien.ac.at>>, Robin Keskisärkkä <robin.keskisarkka@liu.se<mailto:robin.keskisarkka@liu.se>>, "public-rsp@w3.org<mailto:public-rsp@w3.org>" <public-rsp@w3.org<mailto:public-rsp@w3.org>>
Subject: Re: [RSP-QL] Regarding standalone keyword 'NOW'

In general I share the concerns of Peter. We introduced NOW in [1] to enable the possiblity to declare windows in the past, e.g., a window in the interval (NOW-24H,NOW-23H].

If we are planning to use NOW in other situations (i.e., not in the context of a window definition), can you point out the use case on where it is needed?

Regards,

Daniele

Il giorno mer 16 dic 2015 alle ore 13:14 Wetz Peter <peter.wetz@tuwien.ac.at<mailto:peter.wetz@tuwien.ac.at>> ha scritto:
For me, NOW was always a bit misleading. Which timepoint does it define exactly?

As you say, “CQELS defines the keyword NOW for windows to include data from the current timestamp”: But what defines the current timestamp? In my opinion NOW is only True in an infinitesimal point in time making it useless, if we use your definition. What I mean is that, if you say NOW at t0 (timestamp 0) then at “t1” it is not true/valid anymore.

But maybe I am just misinterpreting the definition of NOW. Generally I would not like to use it, since it seems intransparent to me.

However, and this is taken (and adapted) from Emanuelle’s example query at [1], we could use something like [NOW-PT35M]. This means to include every triple between “35min in the past” to “NOW”. This makes more sense to me than just using NOW in a window definition, e.g. [NOW].

[1] http://www.w3.org/community/rsp/wiki/Example_of_RSP-QL_query

Best,
Peter

Von: Robin Keskisärkkä [mailto:robin.keskisarkka@liu.se<mailto:robin.keskisarkka@liu.se>]
Gesendet: Mittwoch, 16. Dezember 2015 10:58
An: public-rsp@w3.org<mailto:public-rsp@w3.org>
Betreff: [RSP-QL] Regarding standalone keyword 'NOW'

Hi!
Do we think that the keyword NOW for logical windows will be supported in the RSP-QL specification? I haven't heard it be pushed as a proposal, nor is it any of the sample queries. CQELS defines the keyword NOW for windows to include data from the current timestamp, e.g.:

CONSTRUCT { ?person :in ?room }
WHERE {
   STREAM <http://room.sensor><http://room.sensor%3e> [NOW] {
      ?event a :Observation ;
                   :observedPerson ?person ;
                   :sensorLocation ?room .
   }
}

One possible interpretation of the keyword is that it is syntactic sugar for the minimal range of a logical window in an RSP engine (e.g. an interval limit related to the precision of the engine, or some property set by the user). I'm interested to hear any arguments for keeping the keyword as it is used in CQELS, as opposed to only allowing a window range to be defined as a range (with an optional STEP).

Cheers,
Robin

Best regards,
Robin Keskisärkkä
PhD Student
[Das Bild wurde vom Absender entfernt. Linköping University]

Department
581 83 Linköping
Mobile: +46 (0)70 49 09 179
Please visit us at www.liu.se<http://www.liu.se/>

Received on Friday, 18 December 2015 06:59:42 UTC