[Developers] finding multiple values on a property

Jack Alves jack.alves at gmail.com
Fri Jun 19 15:46:48 UTC 2009


thanks to everyone for the quick responses. All is fixed and appears to be
working.

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

> 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/9420d405/attachment-0001.htm 


More information about the Developers mailing list