[Developers] Getting text language when reflecting
Scott Meyer
sm at metaweb.com
Mon Jul 20 22:20:01 UTC 2009
Philip Kendall wrote:
> Is there a way to do it while still getting any values with types other
> than /type/text? For example, consider...
>
> {
> "id": "/guid/9202a8c04000641f800000000451473c",
> "/type/reflect/any_value": [{
> "value": null,
> "link": {
> "master_property": {
> "id": null,
> "schema|=": [
> "/book/pagination"
> ]
> }
> }
> }]
> }
>
> Putting a "/type/text/lang":null clause in there seems to be silently
> ignored.
>
> I think I can do what I'm after with two clauses, one with
> "type":"/type/text" and one with "type":{"id":"/type/text",
> optional":"forbidden"} if there's no better way.
Unfortunately, this is a MQL bug. Using two optional
clauses, or two separate queries if the clauses cannot
be optional is the best workaround.
https://bugs.freebase.com/browse/MQL-563
-Scott
More information about the Developers
mailing list