[Developers] /type/link queries and reverses
Scott Meyer
sm at metaweb.com
Fri Dec 19 22:47:16 UTC 2008
augusto callejas wrote:
> hi-
>
> i don't understand why i can't query for links
> using one property, but i can for its reverse property.
> in the example below, i'm querying for spouse_s links
> going out from mel gibson, and in the second query
> i'm querying for /people/marriage/spouse links going
> into mel gibson.
You've run into a limitation of /type/link: it only works
with master properties, hence the "master_property" keyword.
> ===
> [
> {
> "master_property" : "/people/person/spouse_s",
> "source" : {
> "id" : "/en/mel_gibson",
> "type" : "/people/person"
> },
> "type" : "/type/link"
> }
> ]
> ---
> []
> ===
In order for this to work we'd need to make MQL smarter
and have a keyword named "property" or add "reverse_property".
I've filed a bug.
-Scott
More information about the Developers
mailing list