[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Geospatial and XQuery?

Xia Li xli at galdosinc.com
Tue Oct 4 12:05:46 PDT 2005


inurl 000803.html
I did a bit exploration for extending XQuery to support query on
spatial, spatial temporal and spatial network data types defined in GML
(Geographic Markup Language) last year and an experimental
implementation study on a particular XQuery engine Saxon. I chose to add
all operations and functions defined for the GML types to the system
built-in function library. The way to achieve this in Saxon is to
register those functions and bind those function definitions with the
function call in query so that these function will be processed just
like any other system built-in functions. I remember one advantage of
this approach is that once integrating the functions into the existing
architecture we can focus on the implementation of computation logic of
the function itself and do not need to pay attention to do the type
checking for the parameters of the functions which requires the entire
implementation of XQuery sequence type matching. 

 

Another thing I found is that to support spatial network query, one have
to extend XQuery into a high order functional language. 

 

 

Lisa

 

 

________________________________

From: http://xquery.com/mailman/listinfo/talk [mailto:http://xquery.com/mailman/listinfo/talk] On Behalf
Of Michael Kay
Sent: Tuesday, October 04, 2005 9:06 AM
To: http://xquery.com/mailman/listinfo/talk; http://xquery.com/mailman/listinfo/talk
Subject: RE:  Geospatial and XQuery?

 

Good point: though I don't think it proves that you need such functions
in the core (standardized) language, only that you need the XQuery
engine to be aware of the functions so that it can optimize them.

 

Michael Kay

http://www.saxonica.com/ 

	Without a standard how would an XQuery optimizer know how to
deal with a third-party geospatial function? Execution plans would
differ drastically depending on the cost or absence of spatial indexes,
etc.  I recall seeing a sepecialized XQuery extension standard for text
search. It seems like there's an opprotunity to do the same with
geospatial data, especially if it was written w.r.t common XML
geospatial data formats.

	 

	-Kevin

	
	
	 

	On 10/4/05, Martin Probst <http://xquery.com/mailman/listinfo/talk> wrote: 

	Real-To:  Martin Probst <http://xquery.com/mailman/listinfo/talk>
	Real-Cc:   http://xquery.com/mailman/listinfo/talk <mailto:http://xquery.com/mailman/listinfo/talk> 
	
	Hi,
	
	> If so, what would the geospatial functions look like in a
query?
	
	> Have any of the XQuery or XML database products (commercial or
open-
	> source) implemented geospatial functions ahead of the spec? If
so, 
	> what do these look like?
	
	X-Hive/DB is used by Galdos (http://www.galdosinc.com/) in
Cartalinea.
	They did not need custom functions that much as fast range
queries on 
	XML attributes, e.g. to find certain specific elements that are
within
	(in the spatial, not in the XML sense) a set of coordinates.
	
	So basically they needed fast range index lookups on XQuery,
XPointer
	and XPath queries. 
	
	I don't think there is a need for a standardisation on specific
	geospatial functions, especially as you can extend nearly every
XQuery
	implementation with your own custom functions so you can use
these
	custom functions as an adaptor-like wrapper around a library in
e.g.
	Java.
	
	Martin
	
	_______________________________________________
	http://xquery.com/mailman/listinfo/talk
	http://xquery.com/mailman/listinfo/talk 

	 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xquery.com/pipermail/talk/attachments/20051004/c27a1994/attachment-0001.htm


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.