[deepamehta-devel] Get complete data from dm4.contacts.person

Jörg Richter jri at deepamehta.de
Fri Feb 20 14:38:02 CET 2015


Hi Juergen,

good you've found out :-)

Let me do one correction/simplification here.
I wrote:

>            dm4.contacts.phone_entry: [
>                {
>                    type_uri: "dm4.contacts.phone_entry",
>                    childs: {
>                        dm4.contacts.phone_label: "ref_uri:dm4.contacts.mobile",
>                        dm4.contacts.phone_number: "0177 123456789"
>                    }
>                }
>            ]


You actually don't need the "canonic" format here.
You can simply write:

            dm4.contacts.phone_entry: [
                {
                    dm4.contacts.phone_label: "ref_uri:dm4.contacts.mobile",
                    dm4.contacts.phone_number: "0177 123456789"
                }
            ]

That looks more straight-forward, right?

You only need the canonic format when you want e.g. give the new Phone Entry child topic a dedicated URI. In that case you would write:

           dm4.contacts.phone_entry: [
               {
                   uri: "my.phone_entry.uri",
                   type_uri: "dm4.contacts.phone_entry",
                   childs: {
                       dm4.contacts.phone_label: "ref_uri:dm4.contacts.mobile",
                       dm4.contacts.phone_number: "0177 123456789"
                   }
               }
           ]

You do NOT need the canonic format just because you're dealing with a composite child topic (as I've written by mistake).

Cheers,
Jörg


On Feb 19, 2015, at 18:52, Juergen Neumann wrote:

> OK, got it. The URI's are:
> 
> ref_uri:dm4.contacts.mobile
> ref_uri:dm4.contacts.home_phone
> ref_uri:dm4.contacts.home_fax
> ref_uri:dm4.contacts.work_phone
> ref_uri:dm4.contacts.work_fax
> 
> Cheers,
> 
> JuergeN



More information about the devel mailing list