Re: [xml-dev] Grand Challenge: the same query, independent of how data relationships are modeled

From
Michael Kay <>
To
"Costello, Roger L." <>
Date
2014-02-20T14:30:08Z
ID
<>
Thread
Re: [xml-dev] Grand Challenge: the same query, independent of how data relationships are modeled
> 
> Fascinating!
> 
> So, we want to be able to express:
> 
> 	Give me the Title of the Book that was written by 
> 	Richard Bach.
> 
> and that should give us the correct answer, regardless of how the Book/Title relationship is modeled. 
> 
> Right?
> 
> How do we achieve this?
> 

You can encapsulate all three mechanisms behind a function (or two functions, one for each direction of the relationship), and I would certainly recommend doing that in many cases.

Michael Kay
Saxonica