Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Processing
Motivation
Applications (Cont.)
Location-based Store Finder / Advertisement
n Where is my nearest Gas station?
GIS Interface
Spatio-temporal
GIS DBMS
ST Query
DBMS Processing
ST-Index
n Case Study
n Features:
n Huge number of historical trajectories
n Persistent read-only data
n The ability to query the spatial and/or
temporal dimensions
n Features:
n Continuously changing data
n Real-time query support is required
n Index structures should be update-
tolerant
n Features:
n Predict the movement through a
velocity vector
n Prediction could be valid for only a
limited time horizon in the future
Red: Future
Blue: Past
Green: Present
Brown: All
Tutorial Outline
nn Location
Location-aware
Location- aware Environments
nn Location
Location-aware
aware Snapshot Query
Query Processing
n Case Study
Answer
Data
Query
n Continuous Queries
Answer
Query Data
Query
Data
Mar., 2006 EDBT Tutorial 19
n Naïve Approach
n Abstract the continuous queries to a series of
snapshot queries evaluated periodically
n Result Validation
n Result Caching
n Result Prediction
n Incremental Evaluation
n K-NN query
n Initially, retrieve more than k
n Range query
n Evaluate the query with a larger range
nn Location
Location-aware
Location-aware Snapshot
Snapshot Query
Query Processing
Processing
nn Location
Location-aware
Location-aware Continuous
Continuous Query
Query Processing
Processing
n Case Study
Continuous
K-NN Query
Location-aware Continuous
Range Query
Keep me updated by Database Server
nearest 3 hospitals How many cars in
the highlighted
area?
Split
D- D- D- D- Q-
Index Index Index Index Index
Moving Objects
n Idea:
n Server will ship some of its processing to the moving
objects
n Server will act as a mediator among moving objects
n Motivation: Very high arrival rates that are beyond the system
capability to store
n Idea: Only store those objects that are likely to produce query
results, i.e., only significant objects are stored, all other data are
simply dropped
n An object is considered
significant if it is either in the
query area or the cache area
Stream of
Moving Objects Stream of Stream of
Moving Objects Moving Queries
Tutorial Outline
nn Location-aware Environments
nn Location
Location--aware Snapshot
Snapshot Query Processing
nn Location
Location--aware Continuous Query
Query Processing
nn Scalable Execution
Execution of Continuous Queries
n Case Study
Scalar functions
(Stored procedure)
Only produce objects in
the areas of interest SELECT O. ID
The performance Database
FROM Objects O
of scalar functions
WHERE O.type = truck Engine
is limited
Database
INSIDE Area A Spatio-temporal
Engine Operators
Spatio-temporal
Scalar Function 1000
Operators
500
+/- +/-
INSIDE JOIN 0
+/- 2 4 8 16 32 64
Query Size
JOIN AvisCars INSIDE
SELECT ObjectID
FROM MovingObjects M
WHERE Type = Truck
INSIDE Region R
INSIDE
SELECT
INSIDE SELECT
x x
t V
10%
6.25%
6.98%
Q1 6.25%
6.98% 6.25%
6.01% 6.25%
6.01%
Query
Spatio-temporal 6.25%
6.98% 6.25%
6.98% 6.25%
6.01% 6.25%
6.01%
Query Optimizer
Histogram
Query plan 6.25%
6.01% 6.25%
6.01% 6.25%
6.01% 6.25%
6.01%
Feedback
Query Executer
6.25%
6.01% 6.25%
6.01% 6.25%
6.01% 6.25%
6.01%
Tutorial Outline
nn Location-aware Environments
nn Location
Location--aware Snapshot
Snapshot Query Processing
nn Location
Location--aware Continuous Query
Query Processing
nn Scalable Execution
Execution of Continuous Queries
n Case Study
n Sources of uncertainty:
n Sampling. A moving object sends its location information
once every t time units. Within any two consecutive
locations, we have no clue about the object’s exact
location
n Reading accuracy. Location-aware devices do not
provide the exact location
n Object movement and network delay. By the time that a
certain reading is received by the server, the moving
object has already changed his location
n Current data
T01+ 2
0
1
n Constraint:
n An object would report its location only if it is deviated by
a certain distance r from the predicted trajectory
n Examples:
n What are the objects that are possibly sometimes within area
R at time interval T?
n What are the objects that definitely passed through a certain
region?
n Retrieve all the objects that are always inside a certain region
n Retrieve all the objects that are sometimes definitely inside
region R
Q2
Q3
Q1
n Assumptions:
n Objects can lie anywhere uniformly within their
uncertainty region
A E
C
F
B
n Query Answer:
n (B, 50%)
n (C, 90%)
n D
n E
n (F, 30%)
A E
C
F
B
Tutorial Outline
nn Location
Location--aware
aware Environments
Environments
nn Location
Location-aware
Location-aware Snapshot
Snapshot Query
Query Processing
Processing
nn Location
Location--aware
aware Continuous
Continuous Query
Query Processing
Processing
nn Scalable
Scalable Execution
Execution of
of Continuous
Continuous Queries
Queries
nn Location
Location--aware
aware Query
Query Optimizer
Optimizer
nn Uncertainty
Uncertainty in
in Location
Location--aware
aware Query
Query Processing
Processing
n Case Studies
n DOMINO
n SECONDO
n PLACE
DOMINO Architecture
n Example:
SELECT oid
FROM MovingObjects
WHERE Possibly_Always_Inside (trajectory, region,
time interval)
Case Study II
SECONDO
n SECONDO: An Extensible DBMS Architecture and Prototype
Optimizer
PROLOG
n Incremental evaluation of
continuous queries
PLACE Architecture
PLACE
A Query Processor for Real-time Spatio-temporal Data Streams
NILE Continuous
A Query Processing Engine for Data Streams Predicate-based
Window Queries
Continuous time-based
PREDATOR Sliding Window Queries Moving Queries
n inside_clause:
n Stationary query: (x1,y1,x2,y2)
n Moving query: (‘M’,OID, width, length)
n knn_clause:
n Stationary query: (k,x,y)
n Moving query: (‘M’, OID, k)
Tutorial Outline
nn Location
Location-aware
Location- aware Environments
nn Location
Location-aware
Location- aware Snapshot Query
Query Processing
nn Location
Location-aware
Location- aware Continuous Query Processing
nn Scalable
Scalable Execution of
of Continuous Queries
nn Location
Location-aware
aware Query Optimizer
nn Uncertainty
Uncertainty in Location--aware Query
Query Processing
nn Case
Case Study
Study
YOU ARE
TRACKED…
!!!!
“New technologies can pinpoint your location at any time and place.
They promise safety and convenience but threaten privacy and security”
Cover story, IEEE Spectrum, July 2003
Mar., 2006 EDBT Tutorial 69
n Analysis of tsunami,
hurricanes, or earthquakes
References
n Overview Papers:
1. Ouri Wolfson, Bo Xu, Sam Chamberlain, and Liqin Jiang. Moving Objects Databases: Issues
and Solutions. In Proceeding of the International Conference on Scientific and Statistical
Database Management, SSDBM, pages 111-122, Capri, Italy, July 1998.
2. Mohamed F. Mokbel, Walid G. Aref, Susanne E. Hambrusch, and Sunil Prabhakar. Towards
Scalable Location-aware Services: Requirements and Research Issues. In Proceeding of the
ACM Symposium on Advances in Geographic Information Systems, ACM GIS, pages 110-117,
New Orleans, LA, November 2003.
3. Christian S. Jensen. Database Aspects of Location-based Services. In Location-based
Services, pages 115-148. Morgan Kaufmann, 2004.
4. Dik Lun Lee, Manli Zhu, and Haibo Hu. When Location-based Services Meet Databases.
Mobile Information Systems, 1(2):81-90, 2005.
References
n Spatio-temporal Access Methods (Cont.):
19. Dieter Pfoser and Christian S. Jensen. Trajectory Indexing Using Movement Constraints.
GeoInformatica, 9(2):93-115, June 2005.
20. Jinfeng Ni and Chinya V. Ravishankar. PA-Tree: A Parametric Indexing Scheme for Spatio-temporal
Trajectories. In Proceeding of the International Symposium on Advances in Spatial and Temporal
Databases, SSTD, pages 254-272, Angra dos Reis, Brazil, August 2005.
21. Mario A. Nascimento, Jeerson R. O. Silva, and Yannis Theodoridis. Evaluation of Access Structures for
Discretely Moving Points. In Proceeding of the International Workshop on Spatio-temporal Database
Management, STDBM, pages 171-188, Edinburgh, UK, September 1999.
22. Zhexuan Song and Nick Roussopoulos. Hashing Moving Objects. In Proceeding of the International
Conference on Mobile Data Management, MDM, pages 161-172, Hong Kong, January 2001.
23. Dongseop Kwon, Sangjun Lee, and Sukho Lee. Indexing the Current Positions of Moving Objects
Using the Lazy Update R-Tree. In Proceeding of the International Conference on Mobile Data
Management, MDM, pages 113-120, Singapore, January 2002.
24. Mahdi Abdelguer, Julie Givaudan, Kevin Shaw, and Roy Ladner. The 2-3 TR-Tree, A Trajectory-
Oriented Index Structure for Fully Evolving Valid-time Spatio-temporal Datasets. In Proceeding of the
ACM Symposium on Advances in Geographic Information Systems, ACM GIS, pages 29-34, McLean,
VA, November 2002.
25. Mong-Li Lee, Wynne Hsu, Christian S. Jensen, Bin Cui, and Keng Lik Teo. Supporting Frequent
Updates in R-Trees: A Bottom-Up Approach. In Proceeding of the International Conference on Very
Large Data Bases, VLDB, pages 608-619, Berlin, Germany, September 2003.
26. Yuni Xia and Sunil Prabhakar. Q+R-Tree: Efficient Indexing for Moving Object Database. In Proceeding
of the International Conference on Database Systems for Advanced Applications, DASFAA, pages 175-
182, Kyoto, Japan, March 2003.
27. Christian S. Jensen, Dan Lin, and Beng Chin Ooi. Query and Update Efficient B+-Tree Based Indexing
of Moving Objects. In Proceeding of the International Conference on Very Large Data Bases, VLDB,
pages 768-779, Toronto, Canada, August 2004.
References
n Spatio-temporal Access Methods (Cont.):
37. Kriengkrai Porkaew, Iosif Lazaridis, and Sharad Mehrotra. Querying Mobile Objects in Spatio-temporal
Databases. In Proceeding of the International Symposium on Advances in Spatial and Temporal
Databases, SSTD, pages 59-78, Redondo Beach, CA, July 2001.
38. Cecilia Magdalena Procopiuc, Pankaj K. Agarwal, and Sariel Har-Peled. STAR-Tree: An Efficient Self-
Adjusting Index for Moving Objects. In Proceeding of the International Workshop on Algorithm
Engineering and Experimentation, ALENEX, pages 178-193, San Francisco, CA, January 2002.
39. Simonas Saltenis and Christian S. Jensen. Indexing of Moving Objects for Location-based Services. In
Proceeding of the International Conference on Data Engineering, ICDE, pages 463-472, San Jose, CA,
February 2002.
40. Khaled M. Elbassioni and Ibrahim Kamel Amr Elmasry. An Efficient Indexing Scheme for Multi-
dimensional Moving Objects. In Proceeding of the International Conference on Database Theory,
ICDT, pages 425-439, Siena, Italy, January 2003.
41. Yufei Tao, Dimitris Papadias, and Jimeng Sun. The TPR*-Tree: An Optimized Spatio-temporal Access
Method for Predictive Queries. In Proceeding of the International Conference on Very Large Data
Bases, VLDB, pages 129-140, Berlin, Germany, September 2003.
42. Jignesh M. Patel, Yun Chen, and V. Prasad Chakka. STRIPES: An Efficient Index for Predicted
Trajectories. In Proceeding of the ACM International Conference on Management of Data, SIGMOD,
pages 637-646, Paris, France, June 2004.
43. George Kollios, Dimitris Papadopoulos, Dimitrios Gunopulos, and Vassilis J. Tsotras. Indexing Mobile
Objects Using Dual Transformations. VLDB Journal, 14(2):238-256, April 2005.
44. Dan Lin, Christian S. Jensen, Beng Chin Ooi, and Simonas Saltenis. Efficient Indexing of the Historical,
Present, and Future Positions of Moving Objects. In Proceeding of the International Conference on
Mobile Data Management, MDM, pages 59-66, Ayia Napa, Cyprus, May 2005.
45. Zhao-Hong Liu, Xiao-Li Liu, Jun-Wei Ge, and Hae-Young Bae. Indexing Large Moving Objects from
Past to Future with PCFI+-Index. In Proceeding of the International Conference on Management of
Data, COMAD, pages 131-137, January 2005.
References
n Location-aware Snapshot Query Processing (Cont.):
53. Bin Lin and Jianwen Su. Shapes Based Trajectory Queries for Moving Objects. In Proceeding of the
ACM Symposium on Advances in Geographic Information Systems, ACM GIS, pages 21-30, Bremen,
Germany, November 2005.
54. Panfeng Zhou, Donghui Zhang, Betty Salzberg, Gene Cooperman, and George Kollios. Close Pair
Queries in Moving Object Databases. In Proceeding of the ACM Symposium on Advances in
Geographic Information Systems, ACM GIS, pages 2-11, Bremen, Germany, November 2005.
55. Yufei Tao and Dimitris Papadias. Historical Spatio-temporal Aggregation. ACM Transactions on
Information Systems, TOIS, 23(1):61-102, January 2005.
56. Man Lung Yiu, Nikos Mamoulis, and Dimitris Papadias. Aggregate Nearest Neighbor Queries in Road
Networks. IEEE Transactions on Knowledge and Data Engineering, TKDE, 17(6):820-833, June 2005.
57. Elias Frentzos, Kostas Gratsias, Nikos Pelekis, and Yannis Theodoridis. Nearest Neighbor Search on
Moving Object Trajectories. In Proceeding of the International Symposium on Advances in Spatial and
Temporal Databases, SSTD, pages 328-345, Angra dos Reis, Brazil, August 2005.
58. Hyung-Ju Cho and Chin-Wan Chung. An Efficient and Scalable Approach to CNN Queries in a Road
Network. In Proceeding of the International Conference on Very Large Data Bases, VLDB, pages 865-
876, Trondheim, Norway, August 2005.
59. Marios Hadjieleftheriou, George Kollios, Petko Bakalov, and Vassilis J. Tsotras. Complex Spatio-
temporal Pattern Queries. In Proceeding of the International Conference on Very Large Data Bases,
VLDB, pages 877-888, Trondheim, Norway, August 2005.
60. Lei Chen, M. Tamer Ozsu, and Vincent Oria. Robust and Fast Similarity Search for Moving Object
Trajectories. In Proceeding of the ACM International Conference on Management of Data, SIGMOD,
pages 491-502, Baltimore, MD, June 2005.
References
n Location-aware Continuous Query Processing (Cont.):
68. Jun Zhang, Manli Zhu, Dimitris Papadias, Yufei Tao, and Dik Lun Lee. Location-based Spatial Queries.
In Proceeding of the ACM International Conference on Management of Data, SIGMOD, pages 443-454,
San Diego, CA, June 2003.
69. Bugra Gedik, Kun-Lung Wu, Philip S. Yu, and Ling Liu. Motion Adaptive Indexing for Moving Continual
Queries over Moving Objects. In Proceeding of the International Conference on Information and
Knowledge Management, CIKM, pages 427-436, Washington, DC, November 2004.
70. Mohamed F. Mokbel, Xiaopeng Xiong, and Walid G. Aref. SINA: Scalable Incremental Processing of
Continuous Queries in Spatio-temporal Databases. In Proceeding of the ACM International Conference
on Management of Data, SIGMOD, pages 623-634, Paris, France, June 2004.
71. Ying Cai, Kien A. Hua, and Guohong Cao. Processing Range-Monitoring Queries on Heterogeneous
Mobile Objects. In Proceeding of the International Conference on Mobile Data Management, MDM,
page January, Berkeley, CA, 2004.
72. Bugra Gedik and Ling Liu. MobiEyes: Distributed Processing of Continuously Moving Queries on
Moving Objects in a Mobile System. In Proceeding of the International Conference on Extending
Database Technology, EDBT, Crete, Greece, March 2004.
73. Xiaopeng Xiong, Mohamed F. Mokbel, Walid G. Aref, Susanne Hambrusch, and Sunil Prabhakar.
Scalable Spatio-temporal Continuous Query Processing for Location-aware Services. In Proceeding of
the International Conference on Scientific and Statistical Database Management, SSDBM, pages 317-
328, Santorini Island, Greece, June 2004.
74. Haibo Hu, Jianliang Xu, and Dik Lun Lee. A Generic Framework for Monitoring Continuous Spatial
Queries over Moving Objects. In Proceeding of the ACM International Conference on Management of
Data, SIGMOD, pages 479-490, Baltimore, MD, June 2005.
75. Kyriakos Mouratidis, Dimitris Papadias, and Marios Hadjieleftheriou. Conceptual Partitioning: An
Efficient Method for Continuous Nearest Neighbor Monitoring. In Proceeding of the ACM International
Conference on Management of Data, SIGMOD, pages 634-645, Baltimore, MD, June 2005.
References
n Location-aware Query Optimization:
84. Yong-Jin Choi and Chin-Wan Chung. Selectivity Estimation for Spatio-temporal Queries to Moving
Objects. In Proceeding of the ACM International Conference on Management of Data, SIGMOD, pages
440-451, Madison, WI, June 2002.
85. Yufei Tao, Jimeng Sun, and Dimitris Papadias. Selectivity Estimation for Predictive Spatio-temporal
Queries. In Proceeding of the International Conference on Data Engineering, ICDE, pages 417-428,
Bangalore, India, March 2003.
86. Marios Hadjieleftheriou, George Kollios, and Vassilis J. Tsotras. Performance Evaluation of Spatio-
temporal Selectivity Estimation Techniques. In Proceeding of the International Conference on Scientific
and Statistical Database Management, SSDBM, pages 202-211, Cambridge, MA, July 2003.
87. Qing Zhang and Xuemin Lin. Clustering Moving Objects for Spatio-temporal Selectivity Estimation. In
Proceedings of the Australasian Database Conference, pages 123-130, Dunedin, New Zealand,
January 2004.
88. Yufei Tao, Dimitris Papadias, Jian Zhai, and Qing Li. Venn Sampling: A Novel Prediction Technique for
Moving Objects. In Proceeding of the International Conference on Data Engineering, ICDE, pages 680-
691, Tokyo, Japan, April 2005.
89. Hicham G. Elmongui, Mohamed F. Mokbel, and Walid G. Aref. Spatio-temporal Histograms. In
Proceeding of the International Symposium on Advances in Spatial and Temporal Databases, SSTD,
pages 19-36, Angra dos Reis, Brazil, August 2005.
90. Slobodan Rasetic, J org Sander, James Elding, and Mario A. Nascimento. A Trajectory Splitting Model
for Efficient Spatio-temporal Indexing. In Proceeding of the International Conference on Very Large
Data Bases, VLDB, pages 934-945, Trondheim, Norway, August 2005.
References
n Case Studies:
101.Mohamed F. Mokbel, Xiaopeng Xiong, Walid G. Aref, Susanne Hambrusch, Sunil Prabhakar, and Moustafa Hammad.
PLACE: A Query Processor for Handling Real-time Spatio-temporal Data Streams (Demo). In Proceeding of the International
Conference on Very Large Data Bases, VLDB, pages 1377{1380, Toronto, Canada, August 2004.
102.Mohamed F. Mokbel, Xiaopeng Xiong, Moustafa A. Hammad, and Walid G. Aref. Continuous Query Processing of Spatio-
temporal Data Streams in PLACE. In Proceedings of the International Workshop on Spatio-temporal Database Management,
STDBM, pages 57{64, Toronto, Canada, August 2004.
103.Mohamed F. Mokbel and Walid G. Aref. PLACE: A Scalable Location-aware Database Server for Spatiotemporal Data
Streams. IEEE Data Engineering Bulletin, 28(3):3{10, September 2005.
104.Mohamed F. Mokbel, Xiaopeng Xiong, Moustafa A. Hammad, and Walid G. Aref. Continuous Query Processing of Spatio-
temporal Data Streams in PLACE. GeoInformatica, 9(4):343{365, December 2005.
105.Stefan Dieker and Ralf Hartmut G uting. Plug and Play with Query Algebras: SECONDO-A Generic DBMS Development
Environment. In Proceeding of the International Database Engineering and Applications Symposium, IDEAS, pages 380{392,
Yokohoma, Japan, September 2000.
106.Ralf Hartmut Guting, Thomas Behr, Victor Teixeira de Almeida, Zhiming Ding, Frank Homann, and Markus Spiekermann.
SECONDO: An Extensible DBMS Architecture and Prototype. Technical Report Informatik- Report 313, Fernuniversit at
Hagen, March 2004.
107.Thomas Behr and Ralf Hartmut Guting. Fuzzy Spatial Objects: An Algebra Implementation in SECONDO. In Proceeding of
the International Conference on Data Engineering, ICDE, pages 1137{1139, Tokyo, Japan, April 2005.
108.Ralf Hartmut Guting, Victor Teixeira de Almeida, Dirk Ansorge, Thomas Behr, Zhiming Ding, Thomas Hose, Frank Homann,
Markus Spiekermann, and Ulrich Telle. SECONDO: An Extensible DBMS Platform for Research Prototyping and Teaching. In
Proceeding of the International Conference on Data Engineering, ICDE, pages 1115{1116, Tokyo, Japan, April 2005.
109.Goce Trajcevski, Ouri Wolfson, Hu Cao, Hai Lin, Fengli Zhang, and Naphtali Rishe. Managing Uncertain Trajectories of
Moving Objects with Domino. In Proceeding of the International Conference on Enterprise Information Systems, ICEIS, pages
218{225, Ciudad Real, Spain, April 2002.
110.Ouri Wolfson, A. Prasad Sistla, Bo Xu, Jutai Zhou, and Sam Chamberlain. DOMINO: Databases fOr MovINg Objects tracking
(Demo). In Proceeding of the ACM International Conference on Management of Data, SIGMOD, pages 547{549, Philadephia,
PA, June 1999.
111.Ouri Wolfson, Hu Cao, Hai Lin, Goce Trajcevski, Fengli Zhang, and Naphtali Rishe. Management of Dynamic Location
Information in DOMINO (Demo). In Proceeding of the International Conference on Extending Database Technology, EDBT,
pages 769{771, Prague, Czech Republic, March 2002.