[Developers] write grammar questions: question 1 -- user-defined types

Dae Park daepark at metaweb.com
Tue Jun 3 19:12:41 UTC 2008


Also mql does not allow keys to begin with a number, so we also  
prepend an "x".

Remember, when you create a type through the client, you are actually  
specifying the display name of your type.

So your display name would be the english string: "/test/note"
and your type key value is: "x_test_note"

You can always change the key value through the schema editor. This  
also applies to the properties you create for a type.

-dae

On Jun 3, 2008, at 12:09 PM, Dae Park wrote:

> Starting with "/test/note",
>
> 1. all non-alphanumeric characters are converted to underscore:
> "_test_note"
> 2. any two or more sequences of "_" is converted to a single "_"
> 3. mql does not allow a key to begin with "_", therefore we prepend
> an "x" in these cases: "x_test_note"
>
> -dae
>
> On Jun 3, 2008, at 3:13 AM, Will Fitzgerald wrote:
>
>> (First in a series of questions)
>>
>> I created a new type '/test/note'. It appears that the actual name  
>> for
>> my type is 'user/wf/default_domain/x_test_note'. (This is on the
>> sandbox)
>>
>> Is there documentation for this somewhere? Is the general rule that
>> '/' converts to space, and an 'x' is prepended? Under what conditions
>> is a x_-style type converted to the form I created?
>>
>> -- 
>> Will Fitzgerald
>> weblog: <http://www.entish.org/willwhim>
>> Stop US torture: <http://www.unsubscribe-me.org>
>> _______________________________________________
>> 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



More information about the Developers mailing list