[Developers] Getting text language when reflecting

John Giannandrea jg at metaweb.com
Sun Jul 19 19:24:19 UTC 2009


Philip Kendall wrote:
> That returns one property, /book/book_edition/ISBN and a value of
> "1588467961". Is there any way I can simply extend the query to get  
> the
> language of that value as well?

yes, if the clause is of /type/text you can add lang:null

{
   "id": "/guid/9202a8c04000641f800000000af4880f",
   "/type/reflect/any_value": [{
     "value": null,
     "type":  "/type/text",
     "lang":  null,
     "link": {
       "master_property": {
         "id": null,
         "schema|=": [
           "/book/book_edition"
         ]
       }
     }
   }]
}

> (As an aside, perhaps more relevant on the data-modeling list, why is
> the ISBN an internationalised string?)

Thats a good question, seems like machine readable string might have  
been better...  Jeff?

-jg



More information about the Developers mailing list