Files
secondo/Optimizer/tmp/TemporalUnit.examples
2026-01-23 17:03:45 +08:00

752 lines
27 KiB
Plaintext

Database: berlintest
Restore : No
Operator : ##
Number : 1
Signature: (uT uT) -> bool
Example : query [const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] ## [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]
Result : TRUE
Operator : #
Number : 1
Signature: (uT uT) -> (stream bool)
Example : query ([const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] # [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]) the_mvalue
Result : (mbool((("2011-01-01" "2011-01-03" FALSE FALSE) FALSE)))
Operator : <<==
Number : 1
Signature: (uT uT) -> bool
Example : query [const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] <<== [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]
Result : TRUE
Operator : <<
Number : 1
Signature: (uT uT) -> bool
Example : query [const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] << [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]
Result : TRUE
Operator : <=
Number : 1
Signature: (uT uT) -> (stream bool)
Example : query ([const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] <= [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]) the_mvalue
Result : (mbool((("2011-01-01" "2011-01-03" FALSE FALSE) TRUE)))
Operator : <
Number : 1
Signature: (uT uT) -> (stream bool)
Example : query ([const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] < [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]) the_mvalue
Result : (mbool((("2011-01-01" "2011-01-03" FALSE FALSE) FALSE)))
Operator : ==
Number : 1
Signature: (uT uT) -> bool
Example : query [const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] == [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]
Result : FALSE
Operator : =
Number : 1
Signature: (uT uT) -> bool
Example : query ([const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] = [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]) the_mvalue
Result : (mbool((("2011-01-01" "2011-01-03" FALSE FALSE) TRUE)))
Operator : >=
Number : 1
Signature: (uT uT) -> (stream bool)
Example : query ([const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] >= [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]) the_mvalue
Result : (mbool((("2011-01-01" "2011-01-03" FALSE FALSE) TRUE)))
Operator : >>==
Number : 1
Signature: (uT uT) -> bool
Example : query [const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] >>== [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]
Result : FALSE
Operator : >>
Number : 1
Signature: (uT uT) -> bool
Example : query [const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] >> [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]
Result : FALSE
Operator : >
Number : 1
Signature: (uT uT) -> (stream bool)
Example : query ([const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] > [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]) the_mvalue
Result : (mbool((("2011-01-01" "2011-01-03" FALSE FALSE) FALSE)))
Operator : abs
Number : 1
Signature: uint -> uint
Example : query abs([const uint value (("2000-01-01" "2000-01-02" TRUE FALSE) -500)])
Result : (uint (("2000-01-01" "2000-01-02" TRUE FALSE) 500))
Operator : abs
Number : 2
Signature: ureal -> (stream ureal)
Example : query abs([const ureal value (("2000-01-01" "2000-01-04" TRUE TRUE) (-1.0 1.0 0.0 FALSE))]) the_mvalue
Result : (mreal ( ( ("2000-01-01" "2000-01-02" TRUE FALSE) (-1.0 1.0 0.0 FALSE)) ( ("2000-01-02" "2000-01-04" TRUE TRUE) (1.0 1.0 -0.0 FALSE))))
Operator : abs
Number : 3
Signature: uint -> uint
Example : query abs([const uint value undef])
Result : (uint undefined)
Operator : always
Number : 1
Signature: ubool -> bool
Example : query never([const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)])
Result : FALSE
Operator : always
Number : 2
Signature: stream ubool -> bool
Example : query never(units(train5) use[fun(X:upoint) the_unit(isempty(X), inst(initial(X)), inst(final(X)), TRUE, FALSE)] )
Result : TRUE
Operator : and
Number : 1
Signature: (ubool ubool) -> ubool
Example : query [const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] and [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]
Result : (ubool (("2011-01-01" "2011-01-03" FALSE FALSE)TRUE))
Operator : and
Number : 2
Signature: (ubool bool) -> ubool
Example : query [const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] and FALSE
Result : (ubool (("2010-11-11" "2011-01-03" TRUE FALSE)FALSE))
Operator : and
Number : 3
Signature: (bool ubool) -> ubool
Example : query TRUE and [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]
Result : (ubool (("2011-01-01" "2012-09-17" FALSE TRUE)TRUE))
Operator : at
Number : 1
Signature: (uT T ) -> (stream uT)
Example : query (the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, FALSE) at makepoint(10232.0, 11383.0)) the_mvalue
Result : (mpoint ((("2003-11-20-07:45" "2003-11-20-07:45" TRUE TRUE)(10232.0 11383.0 10232.0 11383.0))))
Operator : atinstant
Number : 1
Signature: (uT instant) -> iT
Example : query the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, FALSE) atinstant create_instant(1417,27900000)
Result : (ipoint ("2003-11-20-07:45" (10232.0 11383.0)))
Operator : atmax
Number : 1
Signature: uT -> uT
Example : query atmax( the_unit("test", six30, nine, TRUE, FALSE) )
Result : (ustring (("2003-11-20-06:30" "2003-11-20-09:00" TRUE FALSE)"test"))
Operator : atmax
Number : 2
Signature: ureal -> (stream ureal)
Example : query atmax(the_unit(-3.0, 2.0, -1.0, FALSE, create_instant(0,0), create_instant(3,0), TRUE, TRUE)) the_mvalue
Result : (mreal ((("2000-01-03-08:00" "2000-01-03-08:00" TRUE TRUE)(0.0 0.0 -0.6666666666666666 FALSE))))
Operator : atmin
Number : 1
Signature: uT -> uT
Example : query atmin( the_unit("test", six30, nine, TRUE, FALSE) )
Result : (ustring (("2003-11-20-06:30" "2003-11-20-09:00" TRUE FALSE)"test"))
Operator : atmin
Number : 2
Signature: ureal -> (stream ureal)
Example : query atmin(the_unit(3.0, -2.0, 1.0, FALSE, create_instant(0,0), create_instant(3,0), TRUE, TRUE)) the_mvalue
Result : (mreal ((("2000-01-03-08:00" "2000-01-03-08:00" TRUE TRUE)(0.0 0.0 0.6666666666666666 FALSE))))
Operator : atperiods
Number : 1
Signature: (uT periods) -> stream uT
Example : query (the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, FALSE) atperiods thesecond(2003,11,20,8,30,0)) the_mvalue
Result : (mpoint ((("2003-11-20-08:30" "2003-11-20-08:30:01" TRUE FALSE)(10733.6 12290.2 10733.785777777777 12290.536))))
Operator : atperiods
Number : 2
Signature: ((stream uT) periods) -> stream uT
Example : query (the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, FALSE) feed atperiods thesecond(2003,11,20,8,30,0)) the_mvalue
Result : (mpoint ((("2003-11-20-08:30" "2003-11-20-08:30:01" TRUE FALSE)(10733.6 12290.2 10733.785777777777 12290.536))))
Operator : deftime
Number : 1
Signature: ubool -> periods
Example : query deftime( the_unit(TRUE, six30, nine, FALSE, FALSE) )
Result : (periods (("2003-11-20-06:30" "2003-11-20-09:00" FALSE FALSE)))
Operator : deftime
Number : 2
Signature: uint -> periods
Example : query deftime( the_unit(-56, six30, nine, FALSE, FALSE) )
Result : (periods (("2003-11-20-06:30" "2003-11-20-09:00" FALSE FALSE)))
Operator : deftime
Number : 3
Signature: ureal -> periods
Example : query deftime( the_unit(3.0, -2.0, 1.0, TRUE, six30, nine, FALSE, TRUE) )
Result : (periods (("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE)))
Operator : deftime
Number : 4
Signature: ustring -> periods
Example : query deftime( the_unit("test", six30, nine, TRUE, FALSE) )
Result : (periods (("2003-11-20-06:30" "2003-11-20-09:00" TRUE FALSE)))
Operator : deftime
Number : 5
Signature: upoint -> periods
Example : query deftime( the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, FALSE) )
Result : (periods (("2003-11-20-06:30" "2003-11-20-09:00" FALSE FALSE)))
Operator : deftime
Number : 6
Signature: uregion -> periods
Example : query deftime( units(mrain) transformstream extract[Elem] )
Result : (periods (("2003-11-20-06:06" "2003-11-20-08:10" TRUE TRUE)))
Operator : derivable
Number : 1
Signature: mreal -> mbool
Example : query derivable(speed(train1))
Result : (mbool ((("2003-11-20-06:03" "2003-11-20-06:43" TRUE FALSE)TRUE)))
Operator : derivable
Number : 2
Signature: ureal -> ubool
Example : query derivable (the_unit(3.0, -2.0, 1.0, TRUE, six30, nine, TRUE, TRUE))
Result : (ubool (("2003-11-20-06:30" "2003-11-20-09:00" TRUE TRUE)FALSE))
Operator : derivative
Number : 1
Signature: ureal -> ureal
Example : query derivative(the_unit(3.0, -2.0, 1.0, FALSE, six30, nine, TRUE, TRUE))
Result : (ureal (("2003-11-20-06:30" "2003-11-20-09:00" TRUE TRUE)(0.0 6.0 -2.0 FALSE)))
Operator : derivative
Number : 2
Signature: mreal -> mreal
Example : query derivative(the_unit(3.0, -2.0, 1.0, FALSE, six30, nine, TRUE, TRUE) feed the_mvalue)
Result : (mreal ((("2003-11-20-06:30" "2003-11-20-09:00" TRUE TRUE)(0.0 6.0 -2.0 FALSE))))
Operator : distance
Number : 1
Signature: (uT uT) -> ureal
Example : query distance(the_unit(alexanderplatz, mehringdamm, six30, nine, TRUE, FALSE), the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE))
Result : (ureal (("2003-11-20-06:30" "2003-11-20-09:00" FALSE FALSE)(4401620582.4 -458502144.0 11940160.0 TRUE)))
Operator : distance
Number : 2
Signature: (uT T) -> ureal
Example : query distance(the_unit(alexanderplatz, mehringdamm, six30, nine, FALSE, TRUE), makepoint( (getx(mehringdamm + alexanderplatz)/2) + 100.0 , (gety(mehringdamm + alexanderplatz)/2) + 100.0))
Result : (ureal (("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE)(1.1004051456E9 -1.05609216E8 2535440.0 TRUE)))
Operator : distance
Number : 3
Signature: ( T uT) -> ureal
Example : query distance(alexanderplatz, the_unit(alexanderplatz, mehringdamm, six30, nine, FALSE, TRUE))
Result :(ureal (("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE)(1.1004051456E9 -0.0 0.0 TRUE)))
Operator : final
Number : 1
Signature: uT -> iT
Example : query final(the_unit(alexanderplatz, mehringdamm, six30, nine, FALSE, TRUE))
Result : (ipoint ("2003-11-20-09:00" (9396.0 9871.0)))
Operator : final
Number : 2
Signature: (stream uT) -> iT
Example : query final(units(train1))
Result : (ipoint ("2003-11-20-06:43" (-521.0 3925.0)))
Operator : get_duration
Number : 1
Signature: (periods) -> duration
Example : query get_duration(deftime(train1))
Result : (duration (0 2400000))
Operator : initial
Number : 1
Signature: uT -> iT
Example : query initial(the_unit(alexanderplatz, mehringdamm, six30, nine, FALSE, TRUE))
Result : (ipoint ("2003-11-20-06:30" (11068.0 12895.0)))
Operator : initial
Number : 2
Signature: (stream uT) -> iT
Example : query initial(units(train1))
Result : (ipoint ("2003-11-20-06:03" (13506.0 11159.0)))
Operator : inside
Number : 1
Signature: (upoint uregion) -> (stream ubool)
Example : query (the_unit(alexanderplatz, mehringdamm, six30, nine, FALSE, TRUE) inside ( units(mrain) head[1] transformstream extract[Elem])) the_mvalue
Result : (mbool ((("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE)FALSE)))
Operator : intersection
Number : 1
Signature: (uT uT) -> (stream uT)
Example : query intersection(the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE), the_unit(alexanderplatz, mehringdamm, six30, nine, FALSE, TRUE)) transformstream extract[Elem]
Result : (upoint (("2003-11-20-07:45" "2003-11-20-07:45" TRUE TRUE)(10232.0 11383.0 10232.0 11383.0)))
Operator : intersection
Number : 2
Signature: (uT T) -> (stream uT)
Example : query intersection(the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE), mehringdamm) count
Result : 0
Operator : intersection
Number : 3
Signature: ( T uT) -> (stream uT)
Example : query intersection(alexanderplatz, the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE)) count
Result : 1
Operator : intersection
Number : 4
Signature: (line upoint) -> (stream upoint)
Example : query intersection(strassen feed head[105] aggregateB[GeoData; fun(l1:line, l2:line) (l1 union1 l2); [const line value ()] ], the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE)) the_mvalue
Result : (mpoint ( ( ("2003-11-20-06:36:41.132" "2003-11-20-06:36:41.132" TRUE TRUE) (9470.521411555555 10005.780352 9470.521411555555 10005.780352)) ( ("2003-11-20-06:45:12.127" "2003-11-20-06:45:12.127" TRUE TRUE) (9565.452927111111 10177.474672 9565.452927111111 10177.474672)) ( ("2003-11-20-06:47:39.480" "2003-11-20-06:47:39.480" TRUE TRUE) (9592.82784 10226.98528 9592.82784 10226.98528))))
Operator : intersection
Number : 5
Signature: (upoint line) -> (stream upoint)
Example : query intersection(the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE), strassen feed head[105] aggregateB[GeoData; fun(l1:line, l2:line) (l1 union1 l2); [const line value ()] ]) the_mvalue
Result : (mpoint ( ( ("2003-11-20-06:36:41.132" "2003-11-20-06:36:41.132" TRUE TRUE) (9470.521411555555 10005.780352 9470.521411555555 10005.780352)) ( ("2003-11-20-06:45:12.127" "2003-11-20-06:45:12.127" TRUE TRUE) (9565.452927111111 10177.474672 9565.452927111111 10177.474672)) ( ("2003-11-20-06:47:39.480" "2003-11-20-06:47:39.480" TRUE TRUE) (9592.82784 10226.98528 9592.82784 10226.98528))))
Operator : intersection
Number : 6
Signature: (upoint uregion) -> (stream upoint)
Example : query intersection(the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE), units(msnow) transformstream extract[Elem]) count
Result : 0
Operator : intersection
Number : 7
Signature: (uregion upoint) -> (stream upoint)
Example : query intersection(units(msnow) transformstream extract[Elem], the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE)) count
Result : 0
Operator : intersection
Number : 8
Signature: (upoint region) -> (stream upoint)
Example : query intersection(the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE), thecenter) the_mvalue
Result : (mpoint ((("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE)(9395.999999998783 9870.999999997799 11068.0 12895.0))))
Operator : intersection
Number : 9
Signature: (region upoint) -> (stream upoint)
Example : query intersection(thecenter, the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE)) the_mvalue
Result : (mpoint ((("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE)(9395.999999998783 9870.999999997799 11068.0 12895.0))))
Operator : isempty
Number : 1
Signature: U -> bool
Example : query isempty([const uint value undef])
Result : TRUE
Operator : makemvalue
Number : 1
Signature: stream (tuple ((x1 t1)...(xi uint)...(xn tn))) xi -> mint
Example : query the_unit(123, [const instant value "2000-01-03"], [const instant value "2000-01-04"], FALSE, TRUE) feed transformstream makemvalue[Elem]
Result : (mint ((("2000-01-03" "2000-01-04" FALSE TRUE)123)))
Operator : makemvalue
Number : 2
Signature: stream (tuple ((x1 t1)...(xi ubool)...(xn tn))) xi -> mbool
Example : query the_unit(TRUE, [const instant value "2000-01-03"], [const instant value "2000-01-04"], TRUE, FALSE) feed transformstream makemvalue[Elem]
Result : (mbool ((("2000-01-03" "2000-01-04" TRUE FALSE)TRUE)))
Operator : makemvalue
Number : 3
Signature: stream (tuple ((x1 t1)...(xi ustring)...(xn tn))) xi -> mstring
Example : query the_unit("Test!", [const instant value "2000-01-03"], [const instant value "2000-01-04"], TRUE, TRUE) feed transformstream makemvalue[Elem]
Result : (mstring ((("2000-01-03" "2000-01-04" TRUE TRUE)"Test!")))
Operator : makemvalue
Number : 4
Signature: stream (tuple ((x1 t1)...(xi ureal)...(xn tn))) xi -> mreal
Example : query the_unit(-1.0, 2.3, 4.5, TRUE, [const instant value "2000-01-03"], [const instant value "2000-01-04"], FALSE, FALSE) feed transformstream makemvalue[Elem]
Result : (mreal ((("2000-01-03" "2000-01-04" FALSE FALSE)(-1.0 2.3 4.5 TRUE))))
Operator : makemvalue
Number : 5
Signature: stream (tuple ((x1 t1)...(xi upoint)...(xn tn))) xi -> mpoint
Example : query the_unit(makepoint(1000.0, -1000.0), makepoint(-2000.0, 2000.0), [const instant value "2000-01-03"], [const instant value "2000-01-04"], FALSE, FALSE) feed transformstream makemvalue[Elem]
Result : (mpoint ((("2000-01-03" "2000-01-04" FALSE FALSE)(1000.0 -1000.0 -2000.0 2000.0))))
Operator : makemvalue
Number : 6
Signature: stream (tuple ((x1 t1)...(xi uregion)...(xn tn))) xi -> movingregion
Example : query 1 * 1
Result : crashes
Operator : never
Number : 1
Signature: ubool -> bool
Example : query never([const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)])
Result : FALSE
Operator : never
Number : 2
Signature: (stream ubool) -> bool
Example : query never(units(speed(train1) > 15.0))
Result : FALSE
Operator : no_components
Number : 1
Signature: (uT) -> uint
Example : query no_components([const uint value undef])
Result : (uint undefined)
Operator : not
Number : 1
Signature: ubool -> ubool
Example : query not([const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)])
Result : (ubool (("2010-11-11" "2011-01-03" TRUE FALSE) FALSE))
Operator : or
Number : 1
Signature: (ubool ubool) -> ubool
Example : query [const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] or [const ubool value (("2011-01-01" "2012-09-17" FALSE TRUE) TRUE)]
Result : (ubool (("2011-01-01" "2011-01-03" FALSE FALSE) TRUE))
Operator : or
Number : 2
Signature: (ubool bool) -> ubool
Example : query [const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)] or FALSE
Result : (ubool (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE))
Operator : or
Number : 3
Signature: ( bool ubool) -> ubool
Example : query FALSE or [const ubool value (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE)]
Result : (ubool (("2010-11-11" "2011-01-03" TRUE FALSE) TRUE))
Operator : passes
Number : 1
Signature: (uT T) -> bool
Example : query the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE) passes alexanderplatz
Result : TRUE
Operator : point2d
Number : 1
Signature: (periods) -> point
Example : query point2d(deftime(train1))
Result : (point (1417.2520833333333 1417.2798611111111))
Operator : present
Number : 1
Signature: (mT instant) -> bool
Example : query train1 present six30
Result : TRUE
Operator : present
Number : 2
Signature: (uT instant) -> bool
Example : query the_unit(mehringdamm, alexanderplatz, six30, nine, TRUE, TRUE) present six30
Result : TRUE
Operator : present
Number : 3
Signature: (mT periods) -> bool
Example : query train1 present deftime(train1)
Result : TRUE
Operator : present
Number : 4
Signature: (uT periods) -> bool
Example : query the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE) present deftime(train1)
Result : TRUE
Operator : queryrect2d
Number : 1
Signature: (instant) -> rect
Example : query queryrect2d(six30)
Result : (rect (-106751991167.3006 1417.270833333333 1417.270833333333 106751991167.3006))
Operator : sometimes
Number : 1
Signature: ubool -> bool
Example : query sometimes(the_unit(the_ivalue(six30,TRUE), create_duration(0, 600000), TRUE, TRUE))
Result : TRUE
Operator : sometimes
Number : 2
Signature: (stream ubool) -> bool
Example : query sometimes(units(isempty(train1)))
Result : TRUE
Operator : speed
Number : 1
Signature: mpoint [x geoid] -> mreal
Example : query speed(the_unit(makepoint(13.4,52.517),makepoint(139.767, 35.7 ), six30, nine, FALSE, TRUE), create_geoid("WGS1984"))
Result : (ureal(("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE)(0.0 0.0 993.4655267048898 FALSE)))
Operator : speed
Number : 2
Signature: upoint [x geoid] -> ureal
Example : query speed(the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE))
Result : (ureal (("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE)(0.0 0.0 0.3839392956133162 FALSE)))
Operator : speed
Number : 3
Signature: upoint [x geoid] -> ureal
Example : query val(final(speed(the_unit(makepoint(13.4,52.517),makepoint(139.767, 35.7 ), six30, nine, FALSE, TRUE),create_geoid("WGS1984"))))
Result : 993.4655267048898
Tolerance: 0.0001
Operator : the_ivalue
Number : 1
Signature: instant T --> iT
Example : query the_ivalue(six30, alexanderplatz)
Result : (ipoint ("2003-11-20-06:30" (11068.0 12895.0)))
Operator : the_mvalue
Number : 1
Signature: (stream uT) -> mT
Example : query the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE) feed the_mvalue
Result : (mpoint ((("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE)(9396.0 9871.0 11068.0 12895.0))))
Operator : the_mvalue2
Number : 1
Signature: (stream uT) -> mT
Example : query the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE) feed the_mvalue2
Result : (mpoint ((("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE)(9396.0 9871.0 11068.0 12895.0))))
Operator : the_unit
Number : 1
Signature: point point instant instant bool bool --> upoint
Example : query the_unit(mehringdamm, alexanderplatz, six30, nine, FALSE, TRUE)
Result : (upoint (("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE)(9396.0 9871.0 11068.0 12895.0)))
Operator : the_unit
Number : 2
Signature: ipoint ipoint bool bool --> upoint
Example : query the_unit(the_ivalue(six30,mehringdamm), the_ivalue(six30,makepoint(10,100)), TRUE, TRUE)
Result : (upoint (("2003-11-20-06:30" "2003-11-20-06:30" TRUE TRUE)(10.0 100.0 9396.0 9871.0)))
Operator : the_unit
Number : 3
Signature: real real real bool instant instant bool bool --> ureal
Example : query the_unit(-5.6, 3.2, 4.9, TRUE, six30, nine, FALSE, TRUE)
Result : (ureal (("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE)(-5.6 3.2 4.9 TRUE)))
Operator : the_unit
Number : 4
Signature: iT duration bool bool --> uT
Example : query the_unit(the_ivalue(six30,15), create_duration(0, 600000), TRUE, TRUE)
Result : (uint (("2003-11-20-06:30" "2003-11-20-06:40" TRUE TRUE)15))
Operator : the_unit
Number : 5
Signature: T instant instant bool bool --> uT
Example : query the_unit(TRUE, six30, nine, FALSE, TRUE)
Result : (ubool (("2003-11-20-06:30" "2003-11-20-09:00" FALSE TRUE) TRUE))
Operator : the_unit
Number : 6
Signature: T interval --> uT
Example : query the_unit(TRUE, [const interval value ("2015-01-01" "2016-01-01" TRUE FALSE)])
Result : (ubool (("2015-01-01" "2016-01-01" TRUE FALSE) TRUE))
Operator : the_unit
Number : 7
Signature: point point interval --> upoint
Example : query the_unit(mehringdamm, alexanderplatz, [const interval value ("2015-01-01" "2016-01-01" TRUE FALSE)])
Result : (upoint (("2015-01-01" "2016-01-01" TRUE FALSE)(9396.0 9871.0 11068.0 12895.0)))
Operator : trajectory
Number : 1
Signature: upoint -> line
Example : query UnitTrains feed head[3] project[UTrip] transformstream use[fun(X:upoint) trajectory(X)] aggregateS[fun(Y:line, Z:line) (Y union1 Z); [const line value ()]]
Result : (line ((13244.0 10635.0 13287.0 10675.0)(13287.0 10675.0 13336.0 10785.0)(13336.0 10785.0 13506.0 11159.0)))
Operator : uint2ureal
Number : 1
Signature: uint -> ureal
Example : query uint2ureal([const uint value (("2010-11-11" "2011-01-03" TRUE FALSE) -5)])
Result : (ureal (("2010-11-11" "2011-01-03" TRUE FALSE)(0.0 0.0 -5.0 FALSE)))
Operator : velocity
Number : 1
Signature: upoint -> upoint
Example : query units(Trains feed extract[Trip]) use[fun(X:upoint) velocity(X)] count
Result : 113
Operator : velocity
Number : 2
Signature: mpoint -> mpoint
Example : query units(velocity(Trains feed extract[Trip]) at makepoint(0, 0)) count
Result : 23
Operator : length
Number : 1
Signature: upoint [x geoid] -> real
Example : query (units(Trains feed extract[Trip]) use[fun(U:upoint) length(U)] transformstream sum[Elem]) = length(Trains feed extract[Trip])
Result : TRUE
Operator : length
Number : 2
Signature: upoint [x geoid] -> real
Example : query length([const upoint value (("2011-01-01" "2011-01-02" TRUE FALSE) (0.0 0.0 180.0 0.0))],create_geoid("WGS1984")) / const_pi()
Result : (real 6378137.000)
Tolerance: 0.0000001
Operator : canmeet
Number : 1
Signature: (upoint upoint real duration) -> bool
Example : query units(train7) transformstream {x} units(train7down) transformstream {y} symmjoin[deftime(.Elem_x) intersects deftime(..Elem_y)] filter[canmeet(.Elem_x, .Elem_y, 100.0, create_duration(0, 60000))] count
Result : 6
Operator : when
Number : 1
Signature: (uT mbool) -> stream uT
Example : query units(train7) namedtransformstream[Utrain] filter[sometimes(distance(.Utrain, mehringdamm) < 50.0)] head[1] extendstream[UtrainClose: .Utrain when[distance(train7, mehringdamm) < 50.0]] extract[UtrainClose]
Result : (upoint( ("2003-11-20-06:27:46.760" "2003-11-20-06:27:50" FALSE FALSE) (9380.360189573459 9823.511848341232 9396.0 9871.0)))
Operator : when
Number : 2
Signature: ((stream uT) periods) -> stream uT
Example : query units(train7) when[speed(train7) > 24.0] the_mvalue
Result : (mpoint( ( ("2003-11-20-06:16" "2003-11-20-06:16:11.187" TRUE FALSE) (13592.0 5253.0 13540.0 5518.0)) ( ("2003-11-20-06:16:11.187" "2003-11-20-06:16:16.201" TRUE FALSE) (13540.0 5518.0 13537.0 5639.0)) ( ("2003-11-20-06:16:16.201" "2003-11-20-06:16:20.430" TRUE FALSE) (13537.0 5639.0 13552.0 5740.0)) ( ("2003-11-20-06:16:20.430" "2003-11-20-06:16:25.041" TRUE FALSE) (13552.0 5740.0 13525.0 5848.0)) ( ("2003-11-20-06:16:25.041" "2003-11-20-06:16:50" TRUE FALSE) (13525.0 5848.0 13262.0 6390.0))))
Operator : contains
Number : 1
Signature: interval x interval -> bool
Example : query [const interval value("2003-11-20-06:16" "2003-11-20-06:16:11.187" TRUE TRUE)] contains [const interval value("2003-11-20-06:16" "2003-11-20-06:16:11.187" TRUE FALSE)]
Result : TRUE
Operator : contains
Number : 2
Signature: interval x periods -> bool
Example : query [const interval value("2003-11-20-06:16" "2003-11-20-06:16:11.187" FALSE TRUE)] contains [const periods value(("2003-11-20-06:16" "2003-11-20-06:16:11.187" TRUE TRUE))]
Result : FALSE
Operator : contains
Number : 3
Signature: periods x interval -> bool
Example : query [const periods value(("2003-11-20-06:16" "2003-11-20-06:16:11.187" TRUE TRUE))] contains [const interval value("2003-11-20-06:16" "2003-11-20-06:16:11.187" FALSE FALSE)]
Result : TRUE
Operator : contains
Number : 4
Signature: periods x periods -> bool
Example : query [const periods value(("2003-11-20-06:16" "2003-11-20-06:16:11.187" TRUE TRUE))] contains [const periods value(("2003-11-20-06:16" "2003-11-20-06:16:11.187" TRUE FALSE))]
Result : TRUE
Operator : swapcoord
Number : 1
Signature: mpoint -> mpoint
Example : query always(train7 = swapcoord(train7))
Result : FALSE
Operator : atRect
Number : 1
Signature : upoint x rect -> upoint
Example : query deftime(getunit(train7,55) atRect bbox(thecenter))
Result : (periods(("2003-11-20-06:22" "2003-11-20-06:22:10.300" TRUE FALSE)))
Operator : getInterval
Number : 1
Signature : periods x TEMPORAL -> interval
Example : query compare(getInterval(deftime(train1)) , getInterval(train1) )
Result : 0