[Data-modeling] trouble writing CVTs

marc slayton gangofnuns at yahoo.com
Fri May 15 23:07:28 UTC 2009


Hopefully this is an easy answer for somebody....

I'm using mql to write topics that contain a custom CVT.

I've reviewed the tutorials, but cannot get the correct syntax 
for writing CVT values to a new topic. 

EXAMPLE:

I create a topic like so: 

{
  "create":"unless_exists",
  "name": "32-33 MHz",
  "type": "/base/electromagneticspectrum/frequency_band",
  "id": null
}

which returns success, and a new guid: 

http://www.freebase.com/view/guid/9202a8c04000641f800000000bde9c8c

My type: /base/electromagneticspectrum/frequency_band  
contains a custom CVT called "frequency_range", comprised of two 
floating point values:

{ low_value: "32000000", high_value: "33000000" }  


The problem:  Write a mql insert that adds the two 
                        float values above to the CVT for this guid.

After various attempts, I haven't found the proper syntax. 

Could somebody write me a quick example?


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/data-modeling/attachments/20090515/e776d96e/attachment.htm 


More information about the Data-modeling mailing list