[Developers] /type/link/target_value doesn't support optional:true
Augusto Callejas
acallejas at appliedminds.com
Thu Oct 23 23:36:17 UTC 2008
perfect, thanks :)
augusto
On 10/23/08 4:33 PM, "John Giannandrea" <jg at metaweb.com> wrote:
>
> just use "target_value" : null, its optional by default.
> -jg
>
> On Oct 23, 2008, at 4:31 PM, Augusto Callejas wrote:
>
>> hi-
>>
>> it looks like "/type/link/target_value" doesn't support optional:true.
>> any idea if this will be removed in the future at all?
>>
>> basically, what i would like to do is query for all "/type/link"s
>> but regardless if they are value properties (target_value) or
>> object properties (target). is there some way i can do this
>> without optional:true support in target_value?
>>
>>
>> thanks,
>> augusto.
>>
>> ===
>> [
>> {
>> "master_property" : null,
>> "operation" : null,
>> "sort" : "timestamp",
>> "source" : {
>> "guid" : null,
>> "type" : "/people/person"
>> },
>> "target_value" : {
>> "optional" : true,
>> "value" : null
>> },
>> "timestamp" : null,
>> "timestamp>=" : "2008-10-23T22:23:00.000Z",
>> "type" : "/type/link",
>> "valid" : null
>> }
>> ]
>> ---
>> {
>> "code" : "/api/status/ok",
>> "q1" : {
>> "code" : "/api/status/error",
>> "messages" : [
>> {
>> "code" : "/api/status/error/mql/parse",
>> "info" : {
>> "key" : "optional",
>> "value" : true
>> },
>> "message" : "Can't use optional on /type/link/target_value
>> (this
>> limitation may be removed in the future)",
>> "path" : "target_value",
>> "query" : [
>> {
>> "master_property" : null,
>> "operation" : null,
>> "sort" : "timestamp",
>> "source" : {
>> "guid" : null,
>> "type" : "/people/person"
>> },
>> "target_value" : {
>> "error_inside" : ".",
>> "optional" : true,
>> "value" : null
>> },
>> "timestamp" : null,
>> "timestamp>=" : "2008-10-23T22:23:00.000Z",
>> "type" : "/type/link",
>> "valid" : null
>> }
>> ]
>> }
>> ]
>> },
>> "status" : "200 OK",
>> "transaction_id" :
>> "cache;cache01.p01.sjc1:8101;2008-10-23T23:27:01Z;0005"
>> }
>> ===
>>
>>
>> _______________________________________________
>> Developers mailing list
>> Developers at freebase.com
>> http://lists.freebase.com/mailman/listinfo/developers
>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
More information about the Developers
mailing list