[Developers] finding multiple values on a property

Jack Alves jack.alves at gmail.com
Fri Jun 19 14:55:21 UTC 2009


I found the write query someone sent me a while back,

    "id" : "/base/popstra/sww_base/source",

    "type" : "/type/property",

    "unique" : [

      {

        "connect" : "update",

        "value" : true

      }

    ]


On Fri, Jun 19, 2009 at 10:47 AM, Jack Alves <jack.alves at gmail.com> wrote:

> Thanks there were only 11 so I was able to manually fix them. What is the
> query to set the property to unique. I suppose I need to set uniqueness in
> every type were the source property is delegated.
>
>
> On Fri, Jun 19, 2009 at 3:53 AM, Philip Kendall <
> philip-freebase at shadowmagic.org.uk> wrote:
>
>> On Thu, Jun 18, 2009 at 11:11:02PM -0400, Jack Alves wrote:
>> > Is there a way to make a delegated property unique after data has been
>> > added? And is there an easy way to find instances of multiple values on
>> a
>> > property?
>>
>> I'd do something like <http://tinyurl.com/mqpkgt>
>>
>> [{
>>  "id":   null,
>>  "type": "/base/popstra/sww_base",
>>  "source": {
>>    "return": "count"
>>  },
>>  "sort": "-source.count"
>> }]
>>
>> Cheers,
>>
>> Phil
>>
>> --
>>  Philip Kendall <philip at shadowmagic.org.uk>
>>  http://www.shadowmagic.org.uk/
>> _______________________________________________
>> Developers mailing list
>> Developers at freebase.com
>> http://lists.freebase.com/mailman/listinfo/developers
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20090619/90898e88/attachment.htm 


More information about the Developers mailing list