[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [xdi] Updates to the link contract spec
On Fri, Mar 14, 2014 at 6:43 PM, Dan Blum <dan@respectnetwork.net> wrote:
On the call today we decided to do some updates to the link contract patterns, and also to perhaps add a few more examples.Since the additional examples were my suggestion, I've pulled up my notes from reading through the spec the other day for the corner cases that I then thought could use examples:We need an example where the TA is not the RA or the AA
Yes it would be interesting to have that.Explains why: Templates provided by neutral third parties make it much easier for link contracts to be standardized, promoting interoperability of XDI vocabulary and permission
We need an example of when a link contract node is an entity collection rather than a singleton
This link contract template pattern examples leave me confused – why is there no operation after the $do$if?
Because what you have here is a statement from the policy part of the link contract (the $if part), which is not the part of the link contract where operations are specified.
<--template-authority-->{$from}<--template-authority--><--template-id-->$do$if<--boolean-context-->/<--operator-->/<--condition-->
This link contract template pattern examples leave me confused – why is there no operation after the $do$if and why is only one member-id shown? Is that idea that you would do the operation to multiple <member-id>’s? and what is a member-id?
The member id identifies an (ordered / unordered) member of a collection. In this case, it's a collection of link contracts, but it's the same basic mechanism we would also use for collections of email addresses, messages, etc.
So for example it would be [$do]!:uuid:1234
<--template-authority-->{$from}<--template-authority--><--template-id-->[$do]<--member-id-->$if<--boolean-context-->/<--operator-->/<--condition-->
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]