[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: Mapping arbitrary JSON to XDI
Markus -Thank a lot for the tool!A few weeks ago, I mentioned that I have a hard time to get used to XDI syntax, while it seems you, guys are fluent. Let me use the tool to illustrate what I mean:So, I took example 5, RAWJSON -> XDI/JSON conversion.The tool converts"age": 25 --> "$!(+(age))/!": ["25"]I took pg. 2 of 'XDI Graph Patterns', 2012-05[31 - the page, where each $, !, +, () is given some explanation - and managed to make some sense of XDI/JSON part…Then, I looked into another line:"…."address":{ ..."city": "New York",..."converted as"…"+(address)$!(+(city))/!": ["New York"]…"And I get lost. I can not understand why the syntax is like that. Following the previous line - "age": 25 - why the address line is not converted as:a. "$!(+(address))$!(+(city))/!": ["New York"]…b. "$!(+(address))$(+(city))/!": ["New York"]…c. "$!(+(address)+(city))/!": ["New York"]…?
And what would be the difference between a,b, or c in above from the converter output?
I'm pretty sure that there is a good reason why it is so. ( And I'm apologizing if I missed something obvious… ).But I would really like to get to the bottom of it. ;)Is there any document, known practice exercise(s), etc for self-education? Suggestions?
My next question is - !39e9b4db-dd0f-4de9-b344-7978f718d1e5. Is it some kind of a new identifier? Is it some kind of a new format for XDI number?
Sorry for those newbie questions, but who else can answer them ? ;)
On 2012-12-14, at 11: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 toSelect "RAW JSON" as the input format, and try sample 5 or sample 6 or any other JSON format.Markus--
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.
--
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]