topological relationship.
The ChildrenWithinParent function can be called
for a specific state or for all states. Next, we show an
example of this call displaying a message instead of
taking some specific action:
declare StName State.Name%type;
cursor RetrieveState is
select S.Name from State S;
begin open RetrieveState;
loop fetch RetrieveState into StName;
exit when RetrieveState%notfound;
if (ChildrenWithinParent (StName) = 1) then
dbms output.put line(StName ||
’ is totally covered by its counties’);
else dbms output.put line(StName ||
’ is not totally covered by its counties’);
end if; end loop;
close RetrieveState;
end;
Since the branch else indicates that some (or all)
counties intersect their state member
2
, we must
check the topological relationships of individual child
members. These topological relationships can be
easily retrieved in Oracle using, e.g., the follow-
ing function for a state member S in the State
table and every related child member C in the
County table: sdo geom.relate(S.Geometry, ’deter-
mine’, C.Geometry, 0.005). Based on that and accord-
ing to user requirements, an appropriate aggregation
procedure can be developed.
5 CONCLUSIONS
The MultiDimER model provides the multidimen-
sional view of data and allows spatial support in lev-
els, hierarchies, fact relationships, and measures. In
particular, spatial hierarchies are important since they
allow to see detailed and aggregated measures while
traversing different levels. However, to ensure cor-
rect measure aggregation, topological relationships
between spatial hierarchy levels must be considered.
Furthermore, even though the model captures
users’ requirements for SDW applications, the result-
ing conceptual schemas must be translated to specific
implementation platforms (DBMSs). However, the
semantics can be lost during this translation process
due to limited expression power of current DBMSs.
This paper presented a transformation of spatial
hierarchies to the OR implementation model using as
an example Oracle 10g with its spatial extension. We
2
In a real situation, counties are included in states, i.e.,
this topological relationship is equal, however we use the
same example to shorten the paper’s size.
also referred to integrity constraints that allow to pre-
serve the semantics of a more expressive conceptual
schema while transforming to a physical schema.
The proposed mappings to the OR model along
with the examples using a commercial system, show
the applicability of the given solutions in real-world
situations and the feasibility of implementing SDWs
in current commercial DBMSs.
REFERENCES
Bimonte, S., Tchounikine, A., and Miquel, M. (2005). To-
wards a spatial multidimensional model. In Proc. of
the 8th ACM Int. Workshop on Data Warehousing and
OLAP, pages 39–46.
Fidalgo, R., Times, V., Silva, J., and Souza, F. (2004).
GeoDWFrame: A framework for guiding the design
of geographical dimensional schemes. In Proc. of the
6th Int Conf. on Data Warehousing and Knowledge
Discovery, pages 26–37.
Han, J., Koperski, K., and Stefanovic, N. (1997). Ge-
oMiner: a system prototype for spatial data mining.
In Proc. of the ACM SIGMOD Int. Conf. on Manage-
ment of Data, pages 553–556.
Jensen, C., Klygis, A., Pedersen, T., and Timko, I. (2004).
Multidimensional data modeling for location-based
services. VLDB Journal, 13(1):1–21.
Lenz, H. and Shoshani, A. (1997). Summarizability in
OLAP and statistical databases. In Proc. of the 9th
Int. Conf. on Scientific and Statistical Database Man-
agement, pages 132–143.
Malinowski, E. and Zim
´
anyi, E. (2004). Representing spa-
tiality in a conceptual multidimensional model. In
Proc. of the 12th ACM Symposium on Advances in Ge-
ographic Information Systems, pages 12–21.
Malinowski, E. and Zim
´
anyi, E. (2005). Spatial hierar-
chies and topological relationships in the Spatial Mul-
tiDimER model. In Proc. of the 22nd British Nat.
Conf. on Databases, pages 17–28.
Pedersen, T., Jensen, C., and Dyreson., C. (2001). A foun-
dation for capturing and querying complex multidi-
mensional data. Information Systems, 26(5):383–423.
Pedersen, T. and Tryfona, N. (2001). Pre-aggregation in
spatial data warehouses. In Proc. of the 7th Int.
Symposium on Advances in Spatial and Temporal
Databases, pages 460–478.
Rivest, S., B
´
edard, Y., and Marchand, P. (2001). Toward
better suppport for spatial decision making: Defin-
ing the characteristics of spatial on-line analytical pro-
cessing (SOLAP). Geomatica, 55(4):539–555.
Shekhar, S. and Chawla, S. (2003). Spatial Databases: A
Tour. Prentice Hall.
Stefanovic, N., Han, J., and Koperski, K. (2000). Object-
based selective materialization for efficient implemen-
tation of spatial data cubes. TKDE, 12(6):938–958.
IMPLEMENTING SPATIAL DATAWAREHOUSE HIERARCHIES IN OBJECT-RELATIONAL DBMSs
191