[Developers] [Data-modeling] is everyone married to themselves?
John Giannandrea
jg at metaweb.com
Mon Dec 17 19:45:47 UTC 2007
spouse is symmetric, so its hard to eliminate the thing that you are
constraining by without a forward reference.
this gets you close, but it wont deal with Hillary if she wins:
"query" : [
{
"p:spouse" : [
{
"name" : null,
"type" : "/government/us_president"
}
],
"spouse" : [
{
"education" : [
{
"institution" : null
}
],
"name" : null,
"type" : {
"id" : "/government/us_president",
"optional" : "forbidden"
}
}
],
"type" : "/people/marriage"
}
]
Jason Douglas wrote:
> I was just trying to do a query for what schools the various U.S.
> first ladies attended and ran into an interesting problem:
More information about the Developers
mailing list