[Developers] Results in [ ]

Christopher R. Maden crism at metaweb.com
Fri Feb 1 09:52:51 UTC 2008


Arthur van Hoff <AVH at zing.net> wrote:
> Thanks Christopher. I'm curious why the default is set to "id" for media types. The name (i.e. the mime type) would have been a very reasonable choice in this case. 

This is the case for nearly all of the Metaweb system types, that is, the types in the /type domain.  /type/object has “name” as its default property, but the rest of the non-literal types have “id” as the default to eliminate ambiguity.

{
  "query" : [
    {
      "default_property" : null,
      "domain" : "/type",
      "id" : null,
      "type" : "/type/type"
    }
  ]
}

~Chris
-- 
Christopher R. Maden
Data Architect
Metaweb Technologies, Inc.
<URL: http://www.metaweb.com/ >


More information about the Developers mailing list