[Developers] single value properties

Augusto Callejas acallejas at appliedminds.com
Thu Nov 22 00:29:02 UTC 2007


hi-

looking at the schema for an album:

  http://www.freebase.com/view/schema/music/album

the "running time" or length property is marked as "restrict to one value".

however, when i run this query:

===========================
{
  "query":[{
    "length":null,
    "name":"Trigun media",
    "type":"/music/album"
  }]
}
===========================


i get ""Unique query may have at most one result. Got 2".

however, if i modify my query:

===========================
{
  "query":[{
    "length":[],
    "name":"Trigun media",
    "type":"/music/album"
  }]
}
===========================

then i get two values for the length property.

if the single value restriction is not respected when data is inserted,
then is there no guarantee that a query won't fail when querying as a
single value (e.g. "length":null vs "length":[]).

are there any plans on correcting data with multiple values when the single
value property restriction is checked?

thanks,
augusto.




More information about the Developers mailing list