OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

xdi message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: one question about

Without cross-references, this is easy to answer.

I.e. the following:

and the following:

Are just different ways of serializing the same graph.

But I am not so sure when it comes to cross-references.

I.e. are this

and this the same graph?

With my current understanding of the graph model, I'd have to say no, they are not the same.

Generally I think the "test" whether two graphs are equals is to draw them.


On Wed, Sep 12, 2012 at 12:19 PM, Drummond Reed <drummond@connect.me> wrote:
Markus, my sense is that this question is entirely about the question of equivalence of XDI graphs with and without explicit context statements.

My gut reaction is that the TC should clearly state the rules for XDI graph equivalence on way or the other, i.e., by declaring non-essential context statements either MUST be included or MUST NOT be included in graph comparison, and that should solve the issue.

Then the serialization formats should key off those same rules.

Which way are you leaning, i.e., do you think non-essential context statements MUST or MUST NOT be considered significant?


On Tue, Sep 11, 2012 at 1:19 PM, Markus Sabadello <markus.sabadello@xdi.org> wrote:
Drummond and others,

If I put the following into the XDI Converter and try to convert to JSON:


Should the output be this?

{"@!9999!8888$msg$(!1234)$do/$add": [{
 "()/()": ["=markus"],
 "=markus/+friend": ["=animesh"]

or should it be this?

{"@!9999!8888$msg$(!1234)$do/$add": [{
"=markus/+friend": ["=animesh"]

Or are both valid conversions? Or does it depend on the "contexts" parameter?

If both outputs are valid, that would imply that both represent the same graph, which however does not seem very intuitive in the XDI DISPLAY format.

Prashant, Pankaj and I ran into this while updating the XDI/JSON implementation.

This issue reminds me of a new idea involving () arcs and inner graphs that you mentioned to me, perhaps it's time to explore this further...?


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]