[Developers] creating compound topics
James Taylor
jame0taylor at gmail.com
Fri Apr 3 06:04:39 UTC 2009
Great, thanks. -JT
On Thu, Apr 2, 2009 at 10:41 PM, John Giannandrea <jg at metaweb.com> wrote:
>
> 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
>
> _______________________________________________
> 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/20090402/3cb49327/attachment.htm
More information about the Developers
mailing list