Hi William,

Try this:

<swon:Value arg:name="broadestNode">
    <swon:Object>
        <swon:Value arg:name="node" arg:value="value"/>
    </swon:Object>
</swon:Value>

Best, 
Richard



> On 30 Oct 2018, at 17:16, William Ramos <wwilscr...@gmail.com> wrote:
> 
> Hi, community; could you please help me with the following question?
> 
> I've been following the documentation on: http://uispin.org/swon.html in 
> order to familiarize with SWON objects and how to create them, at the moment 
> I'm looking to replicate the following JSON structure:
> 
> 
> {
>     "_id": "taxonomies",
>     "_href": "https://www.xyz.com/";,
>     "_api_version": "0",
>     "_items": [{
>         "taxonomy_name": "0",
>         ...
>         "description": "This is some random description",
>         "broadestNode": {
>             "node": "value"
>         }
>     }]
> }
> 
> But I can't find how to properly code the portion under "broadestNode".
> 
> This is the SWON code I've been using for now (the values are hardcoded for 
> now):
> 
> <swon:Object>
>     <swon:Value arg:name="_id" arg:value="taxonomies"/>
>     <swon:Value arg:name="_href" arg:value="https://www.xyz.com/"/>
>     <swon:Value arg:name="_api_version" arg:value="0"/>
>     <swon:Value arg:name="_items">
>         <swon:Array>
>             <swon:Object>
>                 <swon:Value arg:name="taxonomy_name" arg:value="0"/>
>                 ...
>                 <swon:Value arg:name="description" arg:value="This is some 
> random description"/>
>                 <swon:Value arg:name="broadestNode" 
> arg:value="#&lt;swon:Value arg:name='node' 
> arg:value='http://www.xyz.com'/&gt;"/>
>             </swon:Object>
>         </swon:Array>
>     </swon:Value>
> </swon:Object>
> ... I've been trying similar variations to that one with no success.
> 
> Can someone please tell me how the proper syntax for that would be?
> 
> Thanks in advance.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to topbraid-users+unsubscr...@googlegroups.com 
> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to