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: Mapping arbitrary JSON to XDI

Markus, this is another awesome utility. Automatic JSON --> XDI mapping.

In looking through the examples I realize it works because:
  1. All JSON object key values are valid XRIs.
  2. In collections with multiple members, the members can be identified with UUIDs.
On that latter point, the mapping isn't persistent, i.e., each time you do the conversion you'll get a different UUID. So I think you might want to put this UUID value into a special context such as $temp or $rand to each of them so that an XDI processor knows it is not an i-number that it can expect to produce a persistent mapping.

This same approach, BTW, is what I was thinking for how to map RDF into XDI. That should be pretty easy for the same reason. It's going the other way (XDI --> RDF) that will be more challenging (but should be doable once we map out all the rules).


On Fri, Dec 14, 2012 at 8:20 AM, Markus Sabadello <markus.sabadello@xdi.org> wrote:
In order to be able to map non-XDI data sources such as Facebook, Google Calendar, etc. to XDI, I am thinking it would be useful to have a generic JSON->XDI mapping ability, because that's the format that most of these APIs are based on.

So I played with this a bit, you can go to

Select "RAW JSON" as the input format, and try sample 5 or sample 6 or any other JSON format.


You received this message because you are subscribed to the Google Groups "XDI2" group.
To post to this group, send email to xdi2@googlegroups.com.
To unsubscribe from this group, send email to xdi2+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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