[Developers] creating compound topics

John Giannandrea jg at metaweb.com
Fri Apr 3 05:41:19 UTC 2009


Hi
If you know you want to create a new webpage, i.e. you are not trying  
to find one with an existing URL or title then you can use  
"create":"unconditional" with no name clause.
-jg


On Apr 2, 2009, at 10:09 PM, James Taylor wrote:

> Hi,
> I'm wondering if someone can point me to the proper mql query for  
> creating compound topics.  For instance, say I want to create a  
> webpage topic.  I initially thought that the following query was the  
> way to go:
>
> {
>      "create":"unless_exists",
>      "type": "/common/webpage",
>      "name":"",
>      "id":null
> }
>
> However, I'm not sure how to manage the fact that the name property  
> is not really a used value (i.e. there isn't a proper or unique  
> value for "name").  Without a unique value for name, this query  
> cannot create unique properties.  Same thing happens when the name  
> property is removed:
> {
>      "create":"unless_exists",
>      "type": "/common/webpage",
>      "id":null
> }
>
> Thanks for the help.
> -JT
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers



More information about the Developers mailing list